.p63-study-dashboard {
  --p63-bg: #f6f8ff;
  --p63-card: #ffffff;
  --p63-text: #0f172a;
  --p63-muted: #64748b;
  --p63-border: #e5eaf5;
  --p63-primary: #155eef;
  --p63-primary-strong: #0f4fd4;
  --p63-soft: #eef4ff;
  --p63-green: #0f8a5f;
  --p63-gold: #a46205;
  --p63-red: #c2410c;
  margin: 0;
  background: var(--p63-bg);
  color: var(--p63-text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.p63-study-dashboard .p59u-header__cta {
  border: 1px solid #cfe0ff;
  background: #fff;
  color: var(--p63-primary);
  box-shadow: none;
}

.p63-study-dashboard *,
.p63-study-dashboard *::before,
.p63-study-dashboard *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.p63-study-dashboard [hidden] {
  display: none !important;
}

.p63sd-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.p63sd-main {
  display: flex;
  flex-direction: column;
  padding: 22px 0 72px;
}

.p63sd-intro {
  order: 0;
}

.p63sd-today {
  order: 1;
}

.p63sd-plan-section {
  order: 2;
}

.p63sd-profile-section {
  order: 3;
}

.p63sd-records-section {
  order: 4;
}

.p63sd-bottom {
  order: 5;
}

.p63-study-dashboard.is-no-plan .p63sd-plan-section {
  order: 1;
}

.p63-study-dashboard.is-no-plan .p63sd-today {
  order: 2;
}

.p63sd-intro {
  display: grid;
  gap: 18px;
}

.p63sd-alert {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid #bfd4ff;
  border-radius: 8px;
  background: #eef4ff;
  color: #17356f;
  font-size: 14px;
  line-height: 1.5;
}

.p63sd-alert strong {
  color: #0f4fd4;
}

.p63sd-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 22px;
  align-items: end;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--p63-border);
  border-radius: 12px;
  background: var(--p63-card);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.p63sd-kicker,
.p63sd-eyebrow,
.p63sd-card-label {
  margin: 0 0 10px;
  color: var(--p63-primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.p63sd-title-row h1,
.p63sd-section h2,
.p63sd-bottom h2 {
  margin: 0;
  color: var(--p63-text);
  font-weight: 800;
  line-height: 1.12;
}

.p63sd-title-row h1 {
  max-width: 720px;
  font-size: clamp(32px, 3.4vw, 42px);
}

.p63sd-title-row p,
.p63sd-section-head p,
.p63sd-bottom span,
.p63sd-next-card p,
.p63sd-plan-card p,
.p63sd-profile-summary p {
  color: var(--p63-muted);
  line-height: 1.72;
}

.p63sd-title-row > div > p:last-child {
  max-width: 680px;
  margin: 14px 0 0;
  font-size: 16px;
}

.p63sd-flow {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p63sd-flow li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dbe6ff;
  border-radius: 8px;
  background: #f8fbff;
  color: #21304a;
  font-size: 14px;
  font-weight: 700;
}

.p63sd-flow span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--p63-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.p63sd-section {
  margin-top: 28px;
}

.p63sd-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 16px;
}

.p63sd-section-head h2,
.p63sd-bottom h2 {
  font-size: clamp(24px, 2.5vw, 32px);
}

.p63sd-section-head p {
  max-width: 720px;
  margin: 8px 0 0;
}

.p63sd-card {
  border: 1px solid var(--p63-border);
  border-radius: 12px;
  background: var(--p63-card);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.p63sd-today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 16px;
}

.p63sd-progress-card,
.p63sd-next-card,
.p63sd-task-list-card,
.p63sd-plan-card,
.p63sd-profile-summary,
.p63sd-skill-card,
.p63sd-week-card,
.p63sd-record-list {
  padding: clamp(20px, 3vw, 28px);
}

.p63sd-today-day {
  min-width: 92px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.p63sd-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.p63sd-progress-top span,
.p63sd-progress-top em,
.p63sd-stat-grid dt,
.p63sd-list-head span,
.p63sd-record-row time {
  color: var(--p63-muted);
  font-size: 13px;
  font-style: normal;
}

.p63sd-progress-top strong {
  display: block;
  margin-top: 6px;
  color: var(--p63-text);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.p63sd-progress-top em {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--p63-soft);
  color: var(--p63-primary);
  font-weight: 900;
}

.p63sd-progress-bar {
  height: 10px;
  margin: 20px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef8;
}

.p63sd-progress-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--p63-primary);
  transition: width 0.2s ease;
}

.p63sd-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.p63sd-stat-grid div {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.p63sd-stat-grid dt,
.p63sd-stat-grid dd {
  margin: 0;
}

.p63sd-stat-grid dd {
  margin-top: 6px;
  color: var(--p63-text);
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.p63sd-next-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  order: -1;
  min-height: 252px;
}

.p63-study-dashboard.is-no-plan .p63sd-today-day,
.p63-study-dashboard.is-no-plan .p63sd-today-grid,
.p63sd-today.is-empty-state .p63sd-today-day,
.p63sd-today.is-empty-state .p63sd-progress-card {
  display: none;
}

.p63sd-today.is-empty-state .p63sd-today-grid {
  display: none;
}

.p63sd-next-card h3 {
  margin: 0;
  color: var(--p63-text);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
}

.p63sd-next-meta {
  margin: 12px 0 0;
  font-weight: 800;
}

.p63sd-next-card p:last-of-type {
  margin: 10px 0 0;
}

.p63sd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.p63sd-actions--right {
  justify-content: flex-end;
  margin-top: 0;
}

.p63sd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.p63sd-button--primary {
  border-color: var(--p63-primary);
  background: var(--p63-primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(21, 94, 239, 0.16);
}

.p63sd-button--primary:hover,
.p63sd-button--primary:focus-visible {
  border-color: var(--p63-primary-strong);
  background: var(--p63-primary-strong);
  color: #fff;
}

.p63sd-button--secondary,
.p63sd-button--light {
  border-color: #cfe0ff;
  background: #fff;
  color: var(--p63-primary);
}

.p63sd-button--secondary:hover,
.p63sd-button--light:hover,
.p63sd-button--secondary:focus-visible,
.p63sd-button--light:focus-visible {
  background: #f4f7fb;
  color: var(--p63-primary-strong);
}

.p63sd-button--small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.p63sd-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.p63sd-list-head h3,
.p63sd-skill-card h3 {
  margin: 0;
  color: var(--p63-text);
  font-size: 18px;
}

.p63sd-task-list {
  display: grid;
  gap: 10px;
}

.p63sd-task-row,
.p63sd-record-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e7edf7;
  border-radius: 10px;
  background: #fbfdff;
}

.p63sd-task-row.is-completed {
  background: #f5fbf8;
}

.p63sd-task-index {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--p63-soft);
  color: var(--p63-primary);
  font-size: 13px;
  font-weight: 900;
}

.p63sd-task-row.is-completed .p63sd-task-index {
  background: #e8f7f0;
  color: var(--p63-green);
}

.p63sd-task-row h4,
.p63sd-record-row h3 {
  margin: 0;
  color: var(--p63-text);
  font-size: 16px;
  line-height: 1.35;
}

.p63sd-task-row p,
.p63sd-record-row p {
  margin: 5px 0 0;
  color: var(--p63-muted);
  font-size: 13px;
  line-height: 1.5;
}

.p63sd-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.p63sd-pill,
.p63sd-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.p63sd-pill {
  background: #eef4ff;
  color: var(--p63-primary);
}

.p63sd-pill--done {
  background: #e8f7f0;
  color: var(--p63-green);
}

.p63sd-pill--synced {
  background: #eefbf5;
  color: #047857;
  border: 1px solid rgba(4, 120, 87, 0.14);
}

.p63sd-pill--pending {
  background: #fff7ed;
  color: var(--p63-red);
}

.p63sd-tag--reading,
.p63sd-tag--listening {
  background: #eef4ff;
  color: var(--p63-primary);
}

.p63sd-tag--writing {
  background: #fff1f2;
  color: #be123c;
}

.p63sd-tag--speaking {
  background: #f0fdf4;
  color: var(--p63-green);
}

.p63sd-tag--vocab {
  background: #fffbeb;
  color: var(--p63-gold);
}

.p63sd-tag--profile,
.p63sd-tag--import {
  background: #f8fafc;
  color: #475569;
}

.p63sd-task-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.p63sd-empty {
  padding: 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #fbfdff;
  color: var(--p63-muted);
  line-height: 1.7;
}

.p63sd-empty--warm {
  border-color: #bfd4ff;
  background: #f5f9ff;
}

.p63sd-empty--warm strong {
  display: block;
  margin-bottom: 6px;
  color: var(--p63-text);
  font-size: 16px;
}

.p63sd-empty--warm p {
  margin: 0;
}

.p63sd-empty--profile {
  grid-column: 1 / -1;
  border-style: solid;
  background: #f8fbff;
}

.p63sd-plan-card {
  min-height: 220px;
}

.p63sd-plan-state {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 20px;
  align-items: start;
}

.p63sd-plan-state h3 {
  margin: 0;
  color: var(--p63-text);
  font-size: clamp(22px, 2.6vw, 30px);
}

.p63sd-plan-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.p63sd-plan-day {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dbe6ff;
  border-radius: 10px;
  background: #f8fbff;
}

.p63sd-plan-day strong {
  display: block;
  color: var(--p63-primary);
  font-size: 13px;
}

.p63sd-plan-day h4 {
  margin: 8px 0;
  color: var(--p63-text);
  font-size: 16px;
  line-height: 1.4;
}

.p63sd-plan-day p {
  margin: 0;
  font-size: 13px;
}

.p63sd-profile-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.p63sd-profile-summary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.p63sd-profile-empty {
  margin: 0;
  padding: 16px;
  border: 1px solid #dbe7ff;
  border-radius: 10px;
  background: #f6f9ff;
  color: var(--p63-muted);
  font-size: 14px;
  line-height: 1.7;
}

.p63sd-profile-summary dl div {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.p63sd-profile-summary dt,
.p63sd-profile-summary dd {
  margin: 0;
}

.p63sd-profile-summary dt {
  color: var(--p63-muted);
  font-size: 13px;
}

.p63sd-profile-summary dd {
  margin-top: 6px;
  color: var(--p63-text);
  font-size: 16px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.p63sd-editor {
  margin-top: 16px;
  border-top: 1px solid #e7edf7;
  padding-top: 14px;
}

.p63sd-editor summary {
  cursor: pointer;
  color: var(--p63-primary);
  font-weight: 900;
}

.p63sd-profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.p63sd-profile-form label {
  display: grid;
  gap: 6px;
  color: var(--p63-text);
  font-size: 13px;
  font-weight: 800;
}

.p63sd-profile-form__full {
  grid-column: 1 / -1;
}

.p63sd-profile-form input,
.p63sd-profile-form select,
.p63sd-profile-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d7e0ee;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--p63-text);
  font: inherit;
}

.p63sd-profile-form textarea {
  resize: vertical;
}

.p63sd-profile-form p {
  margin: 0;
  align-self: center;
  color: var(--p63-green);
  font-size: 13px;
  font-weight: 800;
}

.p63sd-skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.p63sd-skill-item {
  padding: 14px;
  border: 1px solid #e7edf7;
  border-radius: 10px;
  background: #fbfdff;
}

.p63sd-skill-item strong {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--p63-text);
}

.p63sd-skill-item em {
  color: var(--p63-primary);
  font-style: normal;
}

.p63sd-skill-item p {
  margin: 8px 0 0;
  color: var(--p63-muted);
  font-size: 13px;
  line-height: 1.55;
}

.p63sd-week-card {
  margin-top: 16px;
}

.p63sd-week-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.p63sd-week-item {
  min-width: 0;
  padding: 12px 8px;
  border: 1px solid #e7edf7;
  border-radius: 10px;
  background: #fbfdff;
  text-align: center;
}

.p63sd-week-item.is-today {
  border-color: #bfd4ff;
  background: #eef4ff;
}

.p63sd-week-item.is-done {
  border-color: #bfe9d4;
  background: #f0fdf4;
}

.p63sd-week-item strong,
.p63sd-week-item span,
.p63sd-week-item em {
  display: block;
}

.p63sd-week-item strong {
  color: var(--p63-text);
  font-size: 13px;
}

.p63sd-week-item span {
  margin-top: 4px;
  color: var(--p63-muted);
  font-size: 12px;
}

.p63sd-week-item em {
  margin-top: 8px;
  color: var(--p63-primary);
  font-style: normal;
  font-weight: 900;
}

.p63sd-record-list {
  display: grid;
  gap: 10px;
}

.p63sd-record-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.p63sd-record-row .p63sd-button {
  min-height: 34px;
}

.p63sd-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #f6f9ff 100%);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.08);
  color: var(--p63-text);
}

.p63sd-bottom p {
  margin: 0 0 8px;
  color: var(--p63-primary);
  font-weight: 900;
}

.p63sd-bottom h2 {
  color: var(--p63-text);
}

.p63sd-bottom span {
  display: block;
  max-width: 720px;
  margin-top: 8px;
  color: var(--p63-muted);
}

.p63sd-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--p63-border);
  background: #fff;
}

.p63sd-footer .p63sd-shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.p63sd-footer strong {
  color: var(--p63-text);
}

.p63sd-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.p63sd-footer a {
  color: var(--p63-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.p63sd-footer a:hover,
.p63sd-footer a:focus-visible {
  color: var(--p63-primary);
}

.p63-legacy-banner {
  padding: 12px 0;
  background: #eef4ff;
  border-bottom: 1px solid #bfd4ff;
}

.p63-legacy-banner__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  color: #17356f;
}

.p63-legacy-banner__inner div {
  display: grid;
  gap: 3px;
}

.p63-legacy-banner__inner strong {
  color: #0f4fd4;
  font-size: 14px;
}

.p63-legacy-banner__inner p {
  margin: 0;
  color: #475569;
  font-size: 13px;
}

.p63-legacy-banner__inner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: #155eef;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .p63sd-title-row,
  .p63sd-today-grid,
  .p63sd-plan-state,
  .p63sd-profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .p63sd-section-head,
  .p63sd-bottom,
  .p63sd-footer .p63sd-shell,
  .p63-legacy-banner__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .p63sd-actions--right {
    justify-content: flex-start;
  }

  .p63sd-plan-days {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .p63sd-shell,
  .p63-legacy-banner__inner {
    width: min(100% - 24px, 1180px);
  }

  .p63sd-main {
    padding-top: 12px;
    padding-bottom: 128px;
  }

  .p63sd-intro {
    gap: 10px;
  }

  .p63sd-alert {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    padding: 8px 12px;
  }

  .p63sd-title-row {
    gap: 14px;
    padding: 12px;
  }

  .p63sd-title-row h1 {
    font-size: 24px;
  }

  .p63sd-title-row > div > p:last-child {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.55;
  }

  body.p63-study-dashboard .p70b-auth-hint,
  .p63sd-flow {
    display: none;
  }

  .p63sd-section {
    margin-top: 18px;
  }

  .p63sd-section-head {
    margin-bottom: 10px;
  }

  .p63sd-today-day {
    min-width: 74px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .p63sd-next-card {
    order: -1;
    padding: 12px;
  }

  .p63sd-next-card h3 {
    font-size: 24px;
  }

  .p63sd-next-meta {
    margin-top: 8px;
  }

  .p63sd-next-card p:last-of-type {
    margin-top: 6px;
    line-height: 1.55;
  }

  .p63-study-dashboard #xingxiaoyouWebPet.xingxiaoyou-webpet.is-site[data-state="mobile-collapsed"] {
    left: auto !important;
    right: -38px !important;
    bottom: 18px !important;
    transform: none !important;
  }

  .p63sd-stat-grid,
  .p63sd-profile-summary dl,
  .p63sd-skill-grid,
  .p63sd-week-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .p63sd-task-row,
  .p63sd-record-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .p63sd-task-actions,
  .p63sd-record-row .p63sd-button {
    justify-content: flex-start;
    width: 100%;
  }

  .p63sd-button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .p63sd-profile-form {
    grid-template-columns: minmax(0, 1fr);
  }
}
