.wsp {
  --wsp-ink: #22343c;
  --wsp-muted: #5e727d;
  --wsp-line: #d8e1e5;
  --wsp-bg: #f4f7f8;
  --wsp-panel: #ffffff;
  --wsp-accent: #3b6571;
  --wsp-accent-dark: #2f515b;
  --wsp-blue: #688da2;
  --wsp-warm: #b0542d;
  --wsp-warm-light: #d17f50;
  --wsp-shadow: 0 18px 45px rgba(34, 52, 60, 0.1);
  color: var(--wsp-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 36px auto;
  max-width: 1180px;
  text-align: left;
}

.wsp *,
.wsp *::before,
.wsp *::after {
  box-sizing: border-box;
}

.wsp [hidden] {
  display: none !important;
}

.wsp__intro {
  margin-bottom: 22px;
  max-width: 760px;
}

.wsp__eyebrow {
  color: var(--wsp-warm);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.wsp h2,
.wsp h3,
.wsp h4,
.wsp p {
  letter-spacing: 0;
  text-align: left;
  margin-top: 0;
}

.wsp h2 {
  color: var(--wsp-ink);
  font-size: clamp(32px, 4.6vw, 50px);
  font-weight: 850;
  line-height: 1.08;
  margin-bottom: 12px;
}

.wsp__intro p:last-child {
  color: var(--wsp-muted);
  font-size: 17px;
  margin-bottom: 0;
}

.wsp__shell {
  background:
    linear-gradient(180deg, rgba(244, 247, 248, 0.9), #ffffff 45%),
    var(--wsp-bg);
  border: 1px solid var(--wsp-line);
  border-radius: 8px;
  box-shadow: var(--wsp-shadow);
  padding: 24px;
}

.wsp-score-report {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

.wsp-score-report__intro,
.wsp-score-report__upload,
.wsp-score-report__analysis {
  background: #ffffff;
  border: 1px solid var(--wsp-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(34, 52, 60, 0.06);
  padding: clamp(20px, 4vw, 30px);
}

.wsp-score-report__upload {
  max-height: none;
  overflow: visible;
  position: relative;
}

.wsp-upload-close {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--wsp-line);
  border-radius: 999px;
  color: var(--wsp-ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  font-weight: 700;
  gap: 5px;
  justify-content: center;
  line-height: 1;
  min-height: 40px;
  min-width: 40px;
  padding: 6px 10px;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 5;
}

.wsp-upload-close span {
  font-size: 12px;
}

.wsp-score-report__upload .wsp-card-heading {
  padding-right: 74px;
}

.wsp-score-report__intro {
  align-items: center;
  background: linear-gradient(135deg, #f8fafb, #eef5f6);
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.wsp-score-report__intro h3,
.wsp-report-result-header h3 {
  color: var(--wsp-ink);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 850;
  line-height: 1.15;
  margin-bottom: 10px;
}

.wsp-score-report__intro p,
.wsp-report-result-header p {
  color: var(--wsp-muted);
  margin-bottom: 8px;
  max-width: 820px;
}

.wsp-score-report__zh {
  font-size: 14px;
}

.wsp-upload-drop {
  align-items: center;
  background: #f8fafb;
  border: 2px dashed #b9cbd1;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 6px;
  justify-items: center;
  margin: 12px 0;
  padding: 28px 18px;
  text-align: center;
}

.wsp-upload-drop:hover {
  border-color: var(--wsp-accent);
}

.wsp-upload-drop input {
  max-width: 100%;
}

.wsp-upload-drop strong {
  color: var(--wsp-ink);
  font-size: 17px;
}

.wsp-upload-drop span {
  color: var(--wsp-muted);
  font-size: 13px;
}

.wsp-upload-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.wsp-upload-list > span {
  background: #eef4f6;
  border-radius: 999px;
  color: var(--wsp-accent-dark);
  font-size: 13px;
  font-weight: 750;
  padding: 7px 11px;
}

.wsp-upload-list small {
  color: var(--wsp-muted);
}

.wsp-report-score-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(105px, 1fr));
  margin: 20px 0 26px;
}

.wsp-report-score-grid > div {
  align-items: center;
  background: #f8fafb;
  border: 1px solid var(--wsp-line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 13px;
}

.wsp-report-score-grid span,
.wsp-report-score-grid small {
  color: var(--wsp-muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.wsp-report-score-grid strong {
  color: var(--wsp-ink);
  font-size: 24px;
}

.wsp-report-section-title {
  color: var(--wsp-ink);
  font-size: 20px;
  margin-bottom: 14px;
}

.wsp-profile-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wsp-profile-card {
  border: 1px solid var(--wsp-line);
  border-left: 5px solid var(--wsp-blue);
  border-radius: 8px;
  padding: 16px;
}

.wsp-profile-card--priority {
  border-left-color: #b42318;
}

.wsp-profile-card--attention {
  border-left-color: #d17f50;
}

.wsp-profile-card--strong {
  border-left-color: #14806e;
}

.wsp-profile-card__heading {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.wsp-profile-card__heading h4 {
  color: var(--wsp-ink);
  font-size: 16px;
  margin-bottom: 3px;
}

.wsp-profile-card__heading p,
.wsp-profile-card__types,
.wsp-profile-card__status {
  color: var(--wsp-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.wsp-profile-card__heading > strong {
  color: var(--wsp-accent-dark);
  flex: 0 0 auto;
  font-size: 20px;
}

.wsp-profile-meter {
  background: #dfe8eb;
  border-radius: 999px;
  height: 9px;
  margin: 11px 0;
  overflow: hidden;
}

.wsp-profile-meter span {
  background: linear-gradient(90deg, var(--wsp-accent), #5ec6b8);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.wsp-profile-card__status {
  color: var(--wsp-ink);
  font-weight: 800;
  margin-bottom: 0;
}

.wsp-report-disclaimer,
.wsp-report-no-weak {
  background: #fff8ef;
  border: 1px solid #f1d3ae;
  border-radius: 8px;
  color: #79502e;
  font-size: 13px;
  margin: 16px 0;
  padding: 12px 14px;
}

.wsp-report-confirm {
  border-top: 1px solid var(--wsp-line);
  margin-top: 22px;
  padding-top: 20px;
}

.wsp-report-confirm > p {
  color: var(--wsp-muted);
  font-size: 14px;
}

.wsp-report-confirm .wsp__options {
  margin-bottom: 16px;
}

.wsp-report-notes {
  color: var(--wsp-muted);
  font-size: 13px;
}

.wsp__form,
.wsp__result {
  background: var(--wsp-panel);
  border: 1px solid var(--wsp-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(34, 52, 60, 0.06);
  padding: clamp(22px, 4vw, 34px);
}

.wsp__progress {
  margin-bottom: 22px;
}

.wsp__progress span {
  color: var(--wsp-accent-dark);
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: left;
}

.wsp__progress-track {
  background: #e8eef1;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.wsp__progress-track span {
  background: linear-gradient(90deg, var(--wsp-accent), var(--wsp-blue));
  display: block;
  height: 100%;
  margin: 0;
  transition: width 180ms ease;
  width: 20%;
}

.wsp__step {
  border: 0;
  display: none;
  margin: 0;
  min-height: 235px;
  padding: 0;
}

.wsp__step.is-active {
  display: block;
}

.wsp .wsp__form .wsp__step > legend {
  color: var(--wsp-ink);
  display: block;
  font-size: clamp(24px, 3vw, 34px) !important;
  font-weight: 850;
  line-height: 1.18;
  margin-bottom: 10px;
  padding: 0;
  text-align: left;
}

.wsp .wsp__form .wsp__step > legend span {
  color: var(--wsp-accent-dark);
  display: block;
  font-size: 0.52em;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 6px;
}

.wsp__hint {
  color: var(--wsp-muted);
  font-size: 15px;
  margin-bottom: 18px;
  text-align: left;
}

.wsp__date-label {
  display: grid;
  gap: 8px;
  max-width: 360px;
}

.wsp__date-label span {
  color: var(--wsp-muted);
  font-size: 14px;
  font-weight: 700;
}

.wsp input[type="date"],
.wsp input[type="number"] {
  border: 1px solid var(--wsp-line);
  border-radius: 6px;
  color: var(--wsp-ink);
  font: inherit;
  min-height: 48px;
  padding: 10px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.wsp input:disabled {
  background: #f1f5f9;
  color: #8a99a8;
  cursor: not-allowed;
}

.wsp__check-row {
  align-items: center;
  color: var(--wsp-ink);
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 12px;
  border: 1px solid var(--wsp-line);
  border-radius: 6px;
  background: #f8fafb;
}

.wsp__check-row input {
  accent-color: var(--wsp-accent);
  height: 18px;
  width: 18px;
}

.wsp-score-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.wsp-score-grid label {
  display: grid;
  gap: 7px;
}

.wsp-score-grid span {
  color: var(--wsp-muted);
  font-size: 13px;
  font-weight: 700;
}

.wsp__options {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.wsp__options--stacked {
  grid-template-columns: 1fr;
}

.wsp__options--chips {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.wsp__options label {
  cursor: pointer;
  display: block;
}

.wsp__options input {
  opacity: 0;
  position: absolute;
}

.wsp__options span {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--wsp-line);
  border-radius: 6px;
  color: var(--wsp-ink);
  display: grid;
  gap: 3px;
  justify-content: flex-start;
  line-height: 1.28;
  min-height: 78px;
  padding: 14px 15px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.wsp__options span strong {
  color: var(--wsp-ink);
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.wsp__options small {
  color: var(--wsp-muted);
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 0;
  overflow-wrap: anywhere;
}

.wsp__options--stacked span {
  min-height: 72px;
}

.wsp__option-wide {
  grid-column: span 2;
}

.wsp__options input:checked + span {
  background: #f4f8f9;
  border-color: var(--wsp-accent);
  box-shadow: inset 0 0 0 1px var(--wsp-accent), 0 10px 22px rgba(59, 101, 113, 0.08);
}

.wsp__options label:hover span {
  border-color: rgba(59, 101, 113, 0.55);
  box-shadow: 0 10px 20px rgba(34, 52, 60, 0.06);
  transform: translateY(-1px);
}

.wsp__options input:focus-visible + span,
.wsp input[type="date"]:focus-visible,
.wsp input[type="number"]:focus-visible,
.wsp input[type="range"]:focus-visible,
.wsp__button:focus-visible {
  outline: 3px solid rgba(0, 140, 122, 0.25);
  outline-offset: 2px;
}

.wsp-range-control {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.wsp-range-control__value {
  align-items: baseline;
  display: flex;
  gap: 12px;
}

.wsp-range-control__value span {
  color: var(--wsp-accent-dark);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1;
}

.wsp-range-control__value small {
  color: var(--wsp-muted);
  font-size: 14px;
  font-weight: 700;
}

.wsp input[type="range"] {
  accent-color: var(--wsp-accent);
  cursor: pointer;
  width: 100%;
}

.wsp-range-control__ticks {
  color: var(--wsp-muted);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
}

.wsp__error {
  color: #b42318;
  font-size: 14px;
  min-height: 22px;
}

.wsp__actions,
.wsp-cta-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wsp__button {
  align-items: center;
  background: var(--wsp-warm);
  border: 1px solid var(--wsp-warm);
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

/* Keep button labels readable when the active theme applies its own link colour. */
.wsp a.wsp__button,
.wsp button.wsp__button {
  color: #ffffff !important;
}

.wsp__button--small {
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}

.wsp__button:hover {
  background: #df542d;
  border-color: #df542d;
  box-shadow: 0 12px 24px rgba(176, 84, 45, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}

.wsp__button--ghost {
  background: #ffffff;
  border-color: var(--wsp-line);
  color: var(--wsp-accent-dark) !important;
}

.wsp__button--ghost:hover {
  background: #f8fafc;
  border-color: var(--wsp-accent);
  box-shadow: none;
  color: var(--wsp-accent-dark);
}

.wsp-result-card {
  background: #ffffff;
  border: 1px solid var(--wsp-line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(34, 52, 60, 0.05);
  padding: 20px;
}

.wsp-result-card--hero {
  background:
    linear-gradient(135deg, rgba(34, 52, 60, 0.92), rgba(59, 101, 113, 0.9)),
    linear-gradient(135deg, #3b6571, #688da2);
  border-color: transparent;
  color: #ffffff;
  margin-bottom: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.wsp-result-card--hero h3 {
  color: #ffffff;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 850;
  line-height: 1.14;
  margin-bottom: 8px;
}

.wsp-result-card--hero .wsp__eyebrow {
  color: #f0c1a4 !important;
}

.wsp-result-card--hero p {
  color: rgba(255, 255, 255, 0.9) !important;
  max-width: 1040px;
}

.wsp-result-card--hero strong {
  color: #ffffff !important;
}

.wsp-result-card--hero .wsp-result-card__zh {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 12px;
}

.wsp-result-card h4 {
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.wsp-result-card p,
.wsp-result-card li {
  color: var(--wsp-muted);
  font-size: 15px;
  line-height: 1.58;
  text-align: left;
}

.wsp-result-card strong {
  color: var(--wsp-ink);
}

.wsp-bilingual-list {
  display: grid;
  gap: 10px;
}

.wsp-bilingual-list li span,
.wsp-bilingual-list li small {
  display: block;
}

.wsp-bilingual-list li small {
  color: var(--wsp-muted);
  font-size: 13px;
  line-height: 1.48;
  margin-top: 4px;
}

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

.wsp-result-card--wide {
  grid-column: 1 / -1;
}

.wsp-result-card ul,
.wsp-result-card ol {
  margin: 0;
  padding-left: 20px;
}

.wsp-card-heading {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.wsp-card-heading h4 {
  margin-bottom: 5px;
}

.wsp-card-heading p {
  color: var(--wsp-muted);
  font-size: 14px;
  margin: 0;
}

.wsp-table-wrap {
  border: 1px solid var(--wsp-line);
  border-radius: 8px;
  overflow-x: auto;
}

.wsp-plan-table {
  border-collapse: collapse;
  font-size: 14px;
  min-width: 920px;
  width: 100%;
}

.wsp-plan-table th,
.wsp-plan-table td {
  border-bottom: 1px solid var(--wsp-line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

.wsp-plan-table th {
  background: #f8fafc;
  color: var(--wsp-ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.wsp-plan-table td {
  color: var(--wsp-muted);
  line-height: 1.45;
}

.wsp-plan-table th small,
.wsp-plan-table td small {
  color: var(--wsp-muted);
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  margin-top: 4px;
  text-transform: none;
}

.wsp-plan-table tbody tr:last-child td {
  border-bottom: 0;
}

.wsp-table-links {
  min-width: 170px;
}

.wsp-table-links a,
.wsp-table-links span {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 6px;
}

.wsp-table-links a {
  color: var(--wsp-accent-dark) !important;
  font-weight: 750;
  text-decoration: underline !important;
  text-decoration-color: var(--wsp-warm) !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px;
}

.wsp-table-links a::after {
  content: " \2192";
  color: var(--wsp-warm);
  font-weight: 850;
  text-decoration: none;
}

.wsp-table-links a:hover,
.wsp-table-links a:focus-visible {
  color: var(--wsp-warm) !important;
  text-decoration-color: var(--wsp-accent-dark) !important;
}

.wsp-table-note {
  color: var(--wsp-muted);
  font-size: 13px !important;
  margin: 10px 0 0;
}

.wsp-course-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  list-style: none;
  padding-left: 0 !important;
}

.wsp-course-list li {
  min-width: 0;
}

.wsp-course-card {
  background: #ffffff;
  border: 1px solid var(--wsp-line);
  border-radius: 8px;
  color: var(--wsp-ink);
  display: grid;
  grid-template-rows: 130px 1fr;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.wsp-course-card:hover {
  border-color: var(--wsp-accent);
  box-shadow: 0 14px 28px rgba(34, 52, 60, 0.12);
  color: var(--wsp-ink);
  transform: translateY(-1px);
}

.wsp-course-card img,
.wsp-course-card__placeholder {
  background: #eef4f6;
  display: block;
  height: 130px;
  object-fit: cover;
  width: 100%;
}

.wsp-course-card__placeholder {
  align-items: center;
  color: var(--wsp-accent-dark);
  display: flex;
  font-weight: 800;
  justify-content: center;
  padding: 14px;
  text-align: center;
}

.wsp-course-card__body {
  display: grid !important;
  gap: 6px;
  padding: 13px;
}

.wsp-course-card__body strong {
  color: var(--wsp-ink);
  font-size: 15px;
  line-height: 1.35;
}

.wsp-course-card__body small {
  color: var(--wsp-muted);
  font-size: 13px;
  line-height: 1.45;
}

.wsp-cta-row {
  border-top: 1px solid var(--wsp-line);
  margin-top: 18px;
  padding-top: 18px;
}

.wsp-next-steps {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wsp-next-steps a,
.wsp-next-steps div {
  background: #f8fafb;
  border: 1px solid var(--wsp-line);
  border-radius: 8px;
  color: var(--wsp-ink);
  display: grid;
  gap: 6px;
  padding: 14px;
  text-decoration: none;
}

.wsp-next-steps a:hover {
  border-color: var(--wsp-accent);
  color: var(--wsp-ink);
}

.wsp-next-steps strong {
  color: var(--wsp-ink);
  font-size: 15px;
  line-height: 1.35;
}

.wsp-next-steps span {
  color: var(--wsp-muted);
  font-size: 13px;
  line-height: 1.45;
}

.wsp-next-steps small {
  color: var(--wsp-muted);
  display: block;
  font-size: 12px;
  line-height: 1.45;
}

.wsp-restart-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.wsp-save-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.wsp-save-status {
  color: var(--wsp-muted);
  font-size: 14px;
  font-weight: 700;
}

.wsp-result-card--hero .wsp-save-status {
  color: #ffffff !important;
}

.wsp__button--restart {
  background: var(--wsp-accent);
  border-color: var(--wsp-accent);
  color: #ffffff;
  font-size: 16px;
  min-height: 50px;
  min-width: 220px;
}

.wsp__button--restart:hover {
  background: var(--wsp-accent-dark);
  border-color: var(--wsp-accent-dark);
  color: #ffffff;
}

.wsp-profile-plan {
  --wsp-ink: #22343c;
  --wsp-muted: #5e727d;
  --wsp-line: #d8e1e5;
  --wsp-accent: #3b6571;
  --wsp-accent-dark: #2f515b;
  --wsp-warm: #b0542d;
  color: var(--wsp-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  display: grid;
  gap: 18px;
  margin: 0;
}

.wsp-profile-plan *,
.wsp-profile-plan *::before,
.wsp-profile-plan *::after {
  box-sizing: border-box;
}

.wsp-profile-plan--empty {
  background: #f4f7f8;
  border: 1px solid var(--wsp-line);
  border-radius: 8px;
  padding: 24px;
}

.wsp-profile-plan__header {
  align-items: center;
  background: linear-gradient(135deg, rgba(59, 101, 113, 0.98), rgba(104, 141, 162, 0.92));
  border: 1px solid transparent;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 20px;
}

.wsp-profile-plan__header h3 {
  color: #ffffff !important;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 6px;
}

.wsp-profile-plan__header p {
  color: rgba(255, 255, 255, 0.94) !important;
  margin: 0;
}

.wsp-profile-plan__header .wsp__eyebrow {
  color: #ffffff !important;
}

.wsp-profile-plan__progress {
  align-items: baseline;
  display: flex;
  gap: 5px;
  white-space: nowrap;
}

.wsp-profile-plan__progress strong {
  color: #ffffff;
  font-size: 36px;
  line-height: 1;
}

.wsp-profile-plan__progress span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 700;
}

.wsp-profile-cycle-nav {
  align-items: center;
  background: #f4f7f8;
  border: 1px solid var(--wsp-line);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 16px;
}

.wsp-profile-cycle-nav strong,
.wsp-profile-cycle-nav span {
  display: block;
}

.wsp-profile-cycle-nav span {
  color: var(--wsp-muted);
  font-size: 13px;
  margin-top: 3px;
}

.wsp-profile-cycle-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.wsp-profile-cycle-nav__links a {
  background: #ffffff;
  border: 1px solid var(--wsp-line);
  border-radius: 6px;
  color: var(--wsp-accent-dark);
  font-size: 13px;
  font-weight: 750;
  padding: 8px 10px;
  text-decoration: none;
}

.wsp-profile-cycle-nav__links a:hover {
  border-color: var(--wsp-accent);
}

.wsp-profile-task-list {
  display: grid;
  gap: 12px;
}

.wsp-profile-task {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--wsp-line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: 92px 1fr;
  padding: 16px;
}

.wsp-profile-task.is-complete {
  background: #f8fafb;
  border-color: rgba(59, 101, 113, 0.28);
}

.wsp-profile-task__check {
  align-items: center;
  color: var(--wsp-ink);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  line-height: 1.2;
  min-height: 34px;
}

.wsp-profile-task__check input {
  accent-color: var(--wsp-accent);
  height: 18px;
  width: 18px;
}

.wsp-profile-task__body {
  min-width: 0;
}

.wsp-profile-task__body h4 {
  color: var(--wsp-ink);
  font-size: 18px;
  line-height: 1.28;
  margin: 0 0 8px;
}

.wsp-profile-task__body p {
  color: var(--wsp-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 10px;
}

.wsp-profile-task__day {
  color: var(--wsp-accent-dark) !important;
  font-size: 12px !important;
  font-weight: 800;
  margin-bottom: 4px !important;
  text-transform: uppercase;
}

.wsp-profile-task__time {
  color: var(--wsp-ink) !important;
  font-weight: 700;
}

.wsp-profile-task__courses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.wsp-profile-course {
  align-items: center;
  border: 1px solid var(--wsp-line);
  border-radius: 6px;
  color: var(--wsp-ink);
  display: inline-flex;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  text-decoration: none;
}

.wsp-profile-course span {
  font-size: 13px;
  font-weight: 700;
}

.wsp-profile-course strong {
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  padding: 5px 7px;
}

.wsp-profile-course.is-enrolled {
  border-color: rgba(59, 101, 113, 0.42);
}

.wsp-profile-course.is-enrolled strong {
  background: #eef4f6;
  color: var(--wsp-accent-dark);
}

.wsp-profile-course.is-recommended strong {
  background: #fff0e8;
  color: var(--wsp-warm);
}

.wsp-profile-empty-link {
  color: var(--wsp-muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .wsp {
    margin: 24px auto;
  }

  .wsp__shell,
  .wsp__form,
  .wsp__result {
    padding: 16px;
  }

  .wsp__step {
    min-height: 280px;
  }

  .wsp__options,
  .wsp-score-grid,
  .wsp-report-score-grid,
  .wsp-profile-grid,
  .wsp-next-steps,
  .wsp-result-grid {
    grid-template-columns: 1fr;
  }

  .wsp__actions,
  .wsp-cta-row,
  .wsp-card-heading,
  .wsp-profile-plan__header {
    align-items: stretch;
    flex-direction: column;
  }

  .wsp-profile-cycle-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .wsp-profile-cycle-nav__links {
    justify-content: flex-start;
  }

  .wsp-score-report__intro {
    align-items: stretch;
    flex-direction: column;
  }

  .wsp-score-report__upload,
  .wsp-score-report__analysis {
    border-radius: 6px;
    padding: 16px;
  }

  .wsp-score-report__upload .wsp-card-heading {
    padding-right: 48px;
  }

  .wsp-upload-close {
    position: sticky;
    float: right;
    right: 0;
    top: 8px;
    margin: -4px -4px 4px 8px;
  }

  .wsp-upload-drop {
    margin-top: 8px;
    padding: 18px 12px;
  }

  .wsp__button {
    width: 100%;
  }

  .wsp__option-wide {
    grid-column: auto;
  }

  .wsp-profile-task {
    grid-template-columns: 1fr;
  }

  .wsp-profile-task__courses {
    align-items: stretch;
    flex-direction: column;
  }

  .wsp-profile-course {
    justify-content: space-between;
  }
}

.wsp-profile-plan__teacher-update { display: grid; gap: 6px; margin-bottom: 20px; padding: 16px 18px; border-left: 4px solid #7a5433; border-radius: 8px; background: #fff8ed; }
.wsp-profile-plan__teacher-update p { margin: 0; }
.wsp-menu-students-icon { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; color: #c9783e; }
.wsp-menu-students-icon svg { width: 21px; height: 21px; fill: currentColor; }
.wsp-my-students-icon { position: relative; display: inline-block; width: 22px; height: 22px; color: #c9783e; font-size: 0; }
.wsp-my-students-icon::before { content: "" !important; position: absolute; top: 1px; left: 7px; width: 7px; height: 7px; border: 2px solid currentColor; border-radius: 50%; background: transparent; }
.wsp-my-students-icon::after { content: ""; position: absolute; left: 3px; bottom: 1px; width: 15px; height: 9px; border: 2px solid currentColor; border-bottom: 0; border-radius: 10px 10px 0 0; }
.wsp-manage-link { color: #6f472d !important; text-decoration: underline !important; text-decoration-thickness: 1px !important; text-underline-offset: 3px; }
.wsp-manage-link:hover { color: #a85f2d !important; text-decoration-thickness: 2px !important; }
.wsp-profile-task__teacher-note { margin: 12px 0; padding: 10px 12px; border-radius: 6px; background: #f5f1eb; }
.wsp-profile-task__teacher-note p { margin: 4px 0 0; }
.wsp-admin-table-wrap { overflow-x: auto; }
.wsp-admin-table { width: 100%; border-collapse: collapse; }
.wsp-admin-table th, .wsp-admin-table td { padding: 10px; border-bottom: 1px solid #ddd; text-align: left; }
.wsp-teacher-form { display: grid; gap: 14px; margin: 20px 0 28px; }
.wsp-teacher-form label { display: grid; gap: 6px; font-weight: 600; }
.wsp-teacher-form input, .wsp-teacher-form select, .wsp-teacher-form textarea { width: 100%; padding: 9px; font: inherit; }
.wsp-teacher-form__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wsp-task-editor { display: grid; gap: 16px; }
.wsp-task-editor__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.wsp-task-editor__heading h4, .wsp-task-editor__heading p { margin: 0 0 6px; }
.wsp-task-editor__row { margin-bottom: 16px; padding: 18px; border: 1px solid #ddd6ce; border-radius: 10px; background: #fff; }
.wsp-task-editor__row > header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.wsp-task-editor__row > header span { color: #6c6c6c; font-size: 13px; }
.wsp-task-editor__row.is-completed { background: #f7f7f7; opacity: .82; }
.wsp-task-editor__grid { display: grid; grid-template-columns: minmax(120px, .35fr) minmax(160px, .65fr); gap: 12px; }
.wsp-task-editor__wide, .wsp-task-editor__remove { grid-column: 1 / -1; }
.wsp-task-editor__remove { display: flex !important; grid-template-columns: auto 1fr !important; align-items: center; justify-content: flex-start; }
.wsp-task-editor__remove input { width: auto; }
.wsp-task-course-picker { display: grid; gap: 8px; }
.wsp-task-course-picker__search { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 8px; align-items: end; }
.wsp-task-course-picker__selected { display: flex; flex-wrap: wrap; gap: 7px; }
.wsp-task-course-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px 6px 10px; border: 1px solid #d8c5b4; border-radius: 999px; background: #fff8ef; font-weight: 600; }
.wsp-task-course-chip input { display: none; }
.wsp-task-course-chip button { display: inline-grid; width: 22px; height: 22px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #ead8c8; color: #67452f; cursor: pointer; font-size: 18px; line-height: 1; }
.wsp-course-builder { margin: 20px 0 28px; border: 1px solid #d8cec3; border-radius: 12px; background: #fffaf5; }
.wsp-course-builder > summary { display: grid; gap: 4px; padding: 18px; cursor: pointer; }
.wsp-course-builder > summary strong { font-size: 18px; }
.wsp-course-builder > summary span { color: #666; font-size: 14px; }
.wsp-course-builder > form { display: grid; gap: 18px; padding: 0 18px 20px; }
.wsp-course-builder__settings { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; }
.wsp-course-builder__settings label, .wsp-course-builder > form > label { display: grid; gap: 6px; font-weight: 600; }
.wsp-course-builder__settings input, .wsp-course-builder__settings select, .wsp-course-builder textarea { width: 100%; padding: 9px; font: inherit; }
.wsp-course-builder__filters { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(170px, .45fr); gap: 10px; }
.wsp-course-builder__filters input, .wsp-course-builder__filters select { width: 100%; }
.wsp-course-builder__stage-filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; }
.wsp-course-builder__stage-filters button, .wsp-course-builder__actions button { padding: 7px 11px; border: 1px solid #cbb9a8; border-radius: 999px; background: #fff; cursor: pointer; }
.wsp-course-builder__stage-filters button.is-active { border-color: #8a5633; background: #8a5633; color: #fff; }
.wsp-course-builder__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.wsp-course-builder__actions strong { margin-left: auto; }
.wsp-course-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-height: 430px; overflow: auto; padding: 4px; }
.wsp-course-picker > label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid #e1d8d0; border-radius: 8px; background: #fff; cursor: pointer; }
.wsp-course-picker > label[hidden] { display: none; }
.wsp-course-picker input { width: auto; margin-top: 4px; }
.wsp-course-picker span { display: grid; gap: 3px; }
.wsp-course-picker small { color: #766b63; }
.wsp-course-builder__warning { padding: 12px 14px; border-left: 4px solid #b7682e; background: #fff0df; }
.wsp-plan-history { display: grid; gap: 8px; padding-left: 20px; }
.wsp-admin-cards { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 16px; margin: 20px 0; }
.wsp-admin-cards > div { display: grid; gap: 4px; padding: 18px; background: #fff; border: 1px solid #dcdcde; border-radius: 8px; }
.wsp-admin-cards strong { font-size: 28px; }
.wsp-admin-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; }
.wsp-assignment-form { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr) auto; align-items: end; gap: 12px; max-width: 980px; margin: 18px 0; }
.wsp-assignment-form label { display: grid; gap: 6px; font-weight: 600; }
.wsp-assignment-form select, .wsp-assignment-form input[type="search"] { width: 100%; max-width: none; }

@media (max-width: 720px) {
  .wsp-teacher-form__grid, .wsp-task-editor__grid, .wsp-course-builder__settings, .wsp-course-builder__filters, .wsp-course-picker, .wsp-admin-cards, .wsp-assignment-form { grid-template-columns: 1fr; }
  .wsp-task-editor__heading { align-items: stretch; flex-direction: column; }
  .wsp-task-course-picker__search { grid-template-columns: 1fr; }
}
