.writing-study-mode-page {
  background:
    radial-gradient(circle at 92% 10%, rgba(45, 212, 191, .09), transparent 0 20%, transparent 21%),
    #f4f7fb;
}

.wsm-page {
  --wsm-ink: #15233c;
  --wsm-copy: #475873;
  --wsm-muted: #748197;
  --wsm-line: #dce5ef;
  --wsm-soft: #f4f8fb;
  --wsm-green: #118d70;
  --wsm-green-dark: #08715a;
  --wsm-blue: #3e6fd8;
  --wsm-purple: #6852cc;
  margin-bottom: 36px;
  color: var(--wsm-ink);
}

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

.wsm-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 270px);
  gap: clamp(22px, 5vw, 62px);
  align-items: end;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 87% 12%, rgba(125, 249, 215, .38), transparent 0 11%, transparent 12%),
    radial-gradient(circle at 82% 32%, rgba(71, 126, 255, .28), transparent 0 19%, transparent 20%),
    linear-gradient(133deg, #12243d 0%, #163b52 52%, #0f775f 100%);
  box-shadow: 0 25px 55px rgba(19, 43, 68, .22);
  isolation: isolate;
}

.wsm-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255, 255, 255, .24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .24) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent, #000);
  content: "";
}

.wsm-hero__copy {
  max-width: 720px;
}

.wsm-eyebrow,
.wsm-section-kicker {
  margin: 0;
  color: var(--wsm-green);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.wsm-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a9f3dd;
}

.wsm-eyebrow span {
  width: 25px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.wsm-hero h1 {
  max-width: 700px;
  margin: 13px 0 12px;
  color: #fff;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 950;
  line-height: .94;
  letter-spacing: -.065em;
}

.wsm-hero__copy > p:not(.wsm-eyebrow) {
  max-width: 660px;
  margin: 0;
  color: #d9e8ef;
  font-size: clamp(13px, 1.65vw, 17px);
  font-weight: 620;
  line-height: 1.7;
}

.wsm-hero__flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
}

.wsm-hero__flow span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 11px 0 7px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  color: #eef9f6;
  background: rgba(255, 255, 255, .08);
  font-size: 10px;
  font-weight: 850;
}

.wsm-hero__flow b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #0a5948;
  background: #a9f3dd;
  font-size: 9px;
}

.wsm-hero__flow i {
  color: rgba(255, 255, 255, .46);
  font-style: normal;
}

.wsm-hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wsm-hero__stats div {
  min-height: 118px;
  padding: 19px 15px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 21px;
  background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(10px);
}

.wsm-hero__stats strong {
  display: block;
  color: #fff;
  font-size: 35px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.05em;
}

.wsm-hero__stats span {
  display: block;
  margin-top: 8px;
  color: #bcd8d6;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.wsm-task-section,
.wsm-module {
  margin-top: 24px;
  padding: clamp(19px, 3vw, 30px);
  border: 1px solid rgba(21, 35, 60, .08);
  border-radius: 27px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 16px 38px rgba(26, 46, 76, .075);
}

.wsm-section-heading,
.wsm-module__head,
.wsm-builder__head,
.wsm-study-card__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.wsm-section-heading h2,
.wsm-module__head h2 {
  margin: 5px 0 0;
  color: var(--wsm-ink);
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 950;
  line-height: 1.06;
  letter-spacing: -.045em;
}

.wsm-section-heading > p,
.wsm-module__head > div > p:last-child {
  max-width: 380px;
  margin: 0;
  color: var(--wsm-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.wsm-task-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 19px;
}

.wsm-task-card {
  position: relative;
  display: flex;
  min-height: 180px;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--wsm-line);
  border-radius: 21px;
  color: var(--wsm-ink);
  background: #fff;
  text-align: left;
}

button.wsm-task-card {
  cursor: pointer;
  font: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.wsm-task-card:is(a, button) {
  text-decoration: none;
}

.wsm-task-card:is(a, button):hover {
  transform: translateY(-3px);
  border-color: rgba(17, 141, 112, .32);
  box-shadow: 0 15px 28px rgba(17, 141, 112, .11);
}

.wsm-task-card.is-ready {
  color: #fff;
  border-color: transparent;
  background:
    radial-gradient(circle at 94% 5%, rgba(255, 255, 255, .25), transparent 0 15%, transparent 16%),
    linear-gradient(140deg, #0d6f59, #18a180 58%, #36bea0);
  box-shadow: 0 14px 27px rgba(13, 111, 89, .20);
}

.wsm-task-card--units {
  grid-column: 1 / -1;
  min-height: 0;
}

.wsm-unit-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.wsm-unit-option {
  position: relative;
  display: grid;
  min-height: 112px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 4px 12px;
  padding: 14px 46px 14px 15px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 17px;
  color: #fff;
  background: rgba(5, 70, 56, .28);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.wsm-unit-option:hover {
  border-color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .16);
  transform: translateY(-2px);
}

.wsm-unit-option.is-new {
  background: rgba(12, 71, 99, .30);
}

.wsm-unit-option__top {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1;
  gap: 6px;
  align-items: center;
}

.wsm-unit-option__top b,
.wsm-unit-option__top em {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.wsm-unit-option__top b {
  color: #083f35;
  background: #baf7e5;
}

.wsm-unit-option__top em {
  color: #e7fff8;
  background: rgba(255, 255, 255, .13);
}

.wsm-unit-option > strong {
  display: block;
  grid-column: 1;
  margin-top: 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -.02em;
}

.wsm-unit-option > small {
  display: block;
  grid-column: 1;
  color: #d9f6ee;
  font-size: 9px;
  font-weight: 720;
}

.wsm-unit-option > i {
  position: absolute;
  top: 50%;
  right: 16px;
  color: #fff;
  font-size: 22px;
  font-style: normal;
  transform: translateY(-50%);
}

.wsm-task-card.is-coming {
  border-style: dashed;
  background: #f7f9fc;
}

.wsm-task-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.wsm-task-card__top b {
  display: grid;
  min-width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  color: var(--wsm-green);
  background: #e7f7f2;
  font-size: 16px;
  font-weight: 950;
}

.wsm-task-card.is-ready .wsm-task-card__top b {
  color: #fff;
  background: rgba(255, 255, 255, .15);
}

.wsm-task-card__top em {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--wsm-muted);
  background: #eef2f6;
  font-size: 8px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.wsm-task-card.is-ready .wsm-task-card__top em {
  color: #dbfff5;
  background: rgba(255, 255, 255, .13);
}

.wsm-task-card > strong {
  display: block;
  margin-top: 19px;
  font-size: 19px;
  font-weight: 950;
  letter-spacing: -.03em;
}

.wsm-task-card > small {
  display: block;
  margin-top: 4px;
  color: var(--wsm-muted);
  font-size: 10px;
  font-weight: 700;
}

.wsm-task-card.is-ready > small {
  color: #d5f4eb;
}

.wsm-task-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 15px;
  color: var(--wsm-muted);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.wsm-task-card.is-ready .wsm-task-card__action {
  color: #fff;
}

.wsm-task-card__action i {
  font-size: 16px;
  font-style: normal;
}

.wsm-module {
  border-top: 4px solid var(--wsm-green);
}

.wsm-hub-page .wsm-task-section {
  margin-bottom: 28px;
}

.wsm-task-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  overflow: hidden;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 8%, rgba(94, 234, 197, .24), transparent 0 18%, transparent 19%),
    linear-gradient(135deg, #12253f, #173c52 58%, #0d725b);
  box-shadow: 0 22px 45px rgba(19, 43, 68, .18);
}

.wsm-task-hero h1 {
  max-width: 760px;
  margin: 10px 0 8px;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.06em;
}

.wsm-task-hero > div:first-child > p:last-child {
  max-width: 720px;
  margin: 0;
  color: #d8e9ee;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.7;
}

.wsm-task-hero__route {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
}

.wsm-task-hero__route span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 11px 0 7px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  color: #bfd2db;
  background: rgba(255, 255, 255, .07);
  font-size: 9px;
  font-weight: 900;
}

.wsm-task-hero__route span.is-current {
  color: #083f35;
  background: #a9f3dd;
}

.wsm-task-hero__route b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: inherit;
  background: rgba(255, 255, 255, .12);
  font-size: 8px;
}

.wsm-task-hero__route i {
  color: rgba(255, 255, 255, .36);
  font-size: 10px;
  font-style: normal;
}

.wsm-module__badge,
.wsm-study-card__label {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--wsm-green-dark);
  background: #e8f7f3;
  font-size: 8.5px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.wsm-sample-bridge {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 17px;
  align-items: center;
  margin-top: 21px;
  padding: 17px;
  border: 1px solid #dce6f6;
  border-radius: 21px;
  background: linear-gradient(135deg, #f5f8ff, #f8fbff);
}

.wsm-sample-bridge__step {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #0f8267, #27aa88);
  box-shadow: 0 10px 18px rgba(17, 141, 112, .20);
  font-size: 14px;
  font-weight: 950;
}

.wsm-sample-gate {
  margin-top: 21px;
  padding: clamp(17px, 3vw, 25px);
  border: 1px solid #d5e2ec;
  border-radius: 23px;
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 199, 168, .09), transparent 0 22%, transparent 23%),
    #f8fbfd;
}

.wsm-sample-gate.is-read {
  border-color: rgba(17, 141, 112, .32);
}

.wsm-sample-gate__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.wsm-sample-gate__head h3 {
  margin: 4px 0 0;
  color: var(--wsm-ink);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -.025em;
}

.wsm-sample-gate__head > span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--wsm-green-dark);
  background: #e6f6f1;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.wsm-sample-layout {
  display: grid;
  grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr);
  gap: 12px;
  margin-top: 16px;
}

.wsm-task-prompt,
.wsm-sample-answer {
  padding: clamp(15px, 2.5vw, 21px);
  border: 1px solid #dbe5ee;
  border-radius: 19px;
  background: #fff;
}

.wsm-task-prompt > p:not(.wsm-section-kicker) {
  margin: 10px 0 0;
  color: var(--wsm-copy);
  font-size: 10.5px;
  font-weight: 720;
  line-height: 1.6;
}

.wsm-task-prompt ul {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.wsm-task-prompt li {
  position: relative;
  padding-left: 18px;
  color: #41556f;
  font-size: 10px;
  font-weight: 720;
  line-height: 1.45;
}

.wsm-task-prompt li::before {
  position: absolute;
  top: 5px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48bea0;
  box-shadow: 0 0 0 3px rgba(72, 190, 160, .12);
  content: "";
}

.wsm-task-prompt > strong {
  color: var(--wsm-green-dark);
  font-size: 10px;
  font-weight: 950;
}

.wsm-sample-answer > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.wsm-sample-answer > div:first-child > span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #355e83;
  background: #edf4fb;
  font-size: 8px;
  font-weight: 950;
  text-transform: uppercase;
}

.wsm-sample-answer > p {
  margin: 0 0 10px;
  color: #263d58;
  font-size: 11.5px;
  font-weight: 680;
  line-height: 1.75;
}

.wsm-sample-answer > p:last-child {
  margin-bottom: 0;
}

.wsm-sample-answer mark {
  padding: 1px 3px;
  border-radius: 4px;
  color: #075f4d;
  background: #dff7ef;
  font-weight: 900;
}

.wsm-sample-takeaway {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 13px;
  padding: 14px;
  border: 1px solid rgba(17, 141, 112, .18);
  border-radius: 16px;
  background: #eef9f5;
}

.wsm-sample-takeaway span {
  display: block;
  color: var(--wsm-muted);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.wsm-sample-takeaway strong {
  display: block;
  margin-top: 4px;
  color: #116c58;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.45;
}

.wsm-sample-takeaway .wsm-button {
  min-width: 225px;
}

.wsm-practice-area {
  margin-top: 15px;
}

.wsm-sample-bridge h3 {
  margin: 4px 0 5px;
  color: var(--wsm-ink);
  font-size: 16px;
  font-weight: 950;
}

.wsm-sample-bridge blockquote {
  margin: 0;
  color: #354a6b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.wsm-sample-bridge__copy > p:last-child {
  margin: 5px 0 0;
  color: var(--wsm-muted);
  font-size: 9.5px;
  font-weight: 650;
  line-height: 1.5;
}

.wsm-secondary-link {
  display: inline-flex;
  min-height: 37px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #ccd9ed;
  border-radius: 11px;
  color: #3d5da9;
  background: #fff;
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.wsm-progress-card {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(160px, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 13px;
  padding: 14px 16px;
  border: 1px solid var(--wsm-line);
  border-radius: 18px;
  background: #fff;
}

.wsm-progress-card__copy span,
.wsm-progress-card__learned span {
  display: block;
  color: var(--wsm-muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.wsm-progress-card__copy strong {
  display: block;
  margin-top: 3px;
  color: var(--wsm-ink);
  font-size: 13px;
  font-weight: 950;
}

.wsm-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf3;
}

.wsm-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #159273, #4fc7a8);
  transition: width .3s ease;
}

.wsm-progress-card__learned {
  min-width: 70px;
  text-align: right;
}

.wsm-progress-card__learned strong {
  color: var(--wsm-green);
  font-size: 22px;
  font-weight: 950;
}

.wsm-builder,
.wsm-study-card,
.wsm-finish {
  margin-top: 13px;
  padding: clamp(18px, 3vw, 29px);
  border: 1px solid var(--wsm-line);
  border-radius: 24px;
  background: #fff;
}

.wsm-builder__head,
.wsm-study-card__head {
  align-items: flex-start;
}

.wsm-builder__head h3,
.wsm-study-card__head h3,
.wsm-finish h3 {
  margin: 5px 0 0;
  color: var(--wsm-ink);
  font-size: clamp(19px, 2.5vw, 26px);
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.wsm-builder__number {
  color: #dce4ee;
  font-size: 43px;
  font-weight: 950;
  line-height: .9;
  letter-spacing: -.07em;
}

.wsm-builder__prompt {
  margin: 18px 0 9px;
  color: var(--wsm-copy);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.55;
}

.wsm-answer-zone {
  min-height: 92px;
  padding: 15px;
  border: 2px dashed #cfdbe8;
  border-radius: 17px;
  background: #f8fafc;
  transition: border-color .18s ease, background .18s ease;
}

.wsm-answer-zone.has-pieces {
  border-color: rgba(17, 141, 112, .34);
  background: #f3fbf8;
}

.wsm-answer-zone.is-wrong {
  border-color: rgba(210, 73, 92, .5);
  background: #fff7f8;
}

.wsm-answer-zone > p {
  margin: 18px 0;
  color: #91a0b3;
  font-size: 10px;
  font-weight: 750;
  text-align: center;
}

.wsm-answer-pieces,
.wsm-word-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wsm-piece {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #ced9e6;
  border-radius: 11px;
  color: #2e4664;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  box-shadow: 0 5px 11px rgba(28, 48, 77, .06);
  transition: transform .14s ease, border-color .14s ease, opacity .14s ease;
}

.wsm-piece:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 141, 112, .42);
}

.wsm-answer-pieces .wsm-piece {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #158e71, #28a889);
  box-shadow: none;
}

.wsm-word-bank {
  min-height: 60px;
  margin-top: 13px;
  padding: 13px;
  border-radius: 16px;
  background: #edf2f7;
}

.wsm-piece[disabled] {
  display: none;
}

.wsm-feedback {
  min-height: 21px;
  margin: 10px 0 0;
  color: var(--wsm-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.55;
}

.wsm-feedback.is-error {
  color: #bd4255;
}

.wsm-feedback.is-success {
  color: var(--wsm-green-dark);
}

.wsm-builder__actions,
.wsm-finish__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.wsm-button {
  display: inline-flex;
  min-height: 41px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 950;
  text-decoration: none;
}

.wsm-button.is-quiet {
  color: #52647e;
  border-color: #d8e1eb;
  background: #fff;
}

.wsm-button.is-primary,
.wsm-button.is-next {
  color: #fff;
  background: linear-gradient(135deg, #0f8267, #1ba282);
  box-shadow: 0 10px 19px rgba(17, 141, 112, .19);
}

.wsm-button.is-next {
  width: 100%;
  margin-top: 17px;
}

.wsm-button:disabled {
  cursor: not-allowed;
  opacity: .45;
  box-shadow: none;
}

.wsm-study-card {
  border-color: rgba(17, 141, 112, .23);
  background:
    radial-gradient(circle at 96% 0%, rgba(79, 199, 168, .14), transparent 0 21%, transparent 22%),
    #f8fffc;
}

.wsm-study-card__head {
  align-items: center;
}

.wsm-study-card__head h3 {
  margin-top: 4px;
  color: var(--wsm-muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.wsm-study-card__success {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
  padding: 0 10px 0 6px;
  border-radius: 999px;
  color: #08715a;
  background: #def5ed;
  font-size: 9px;
  font-weight: 950;
}

.wsm-study-card__success span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--wsm-green);
}

.wsm-example {
  margin-top: 12px;
}

.wsm-example > span {
  display: block;
  margin: 0 0 6px 2px;
  color: var(--wsm-muted);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.wsm-complete-sentence {
  margin: 0;
  padding: 13px 15px;
  border-left: 4px solid var(--wsm-green);
  border-radius: 4px 15px 15px 4px;
  color: #1e3b4e;
  background: #fff;
  font-size: clamp(11px, 1.45vw, 14px);
  font-weight: 780;
  line-height: 1.65;
}

.wsm-collocation-list {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.wsm-collocation-list.is-multiple {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.wsm-collocation {
  overflow: hidden;
  padding: clamp(18px, 3vw, 25px);
  border: 1px solid rgba(17, 141, 112, .23);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(79, 199, 168, .11), transparent 58%),
    #fff;
}

.wsm-collocation__phrase strong {
  display: block;
  color: var(--wsm-green-dark);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -.03em;
}

.wsm-collocation__phrase span {
  display: block;
  margin-top: 9px;
  color: #445d74;
  font-size: clamp(11px, 1.6vw, 14px);
  font-weight: 850;
}

.wsm-collocation__use {
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid rgba(17, 141, 112, .15);
}

.wsm-collocation__use span,
.wsm-study-grid span {
  display: block;
  color: var(--wsm-muted);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wsm-collocation__use p {
  margin: 5px 0 0;
  color: var(--wsm-copy);
  font-size: 11px;
  font-weight: 680;
  line-height: 1.6;
}

.wsm-collocation-list.is-multiple .wsm-collocation__phrase strong {
  font-size: clamp(23px, 3vw, 32px);
}

.wsm-study-grid {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: 10px;
  margin-top: 10px;
}

.wsm-study-grid article {
  padding: 14px;
  border: 1px solid rgba(62, 111, 216, .15);
  border-radius: 16px;
  background: #f5f8ff;
}

.wsm-study-grid strong {
  display: block;
  margin-top: 6px;
  color: #304c83;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.55;
}

.wsm-triple-note {
  margin-top: 12px;
  padding: 17px;
  border: 1px solid rgba(104, 82, 204, .19);
  border-radius: 18px;
  background: #f7f5ff;
}

.wsm-triple-note h4 {
  margin: 5px 0 9px;
  color: #43338f;
  font-size: 17px;
  font-weight: 950;
}

.wsm-triple-note code {
  display: block;
  padding: 11px;
  border-radius: 11px;
  color: #4d3ca4;
  background: #fff;
  font-size: 10px;
  font-weight: 850;
  white-space: normal;
}

.wsm-triple-note > div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 11px;
  background: #fff0f2;
}

.wsm-triple-note > div.is-good {
  background: #eaf9f3;
}

.wsm-triple-note > div span {
  color: #b04455;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.wsm-triple-note > div.is-good span {
  color: var(--wsm-green-dark);
}

.wsm-triple-note > div p {
  margin: 0;
  color: var(--wsm-copy);
  font-size: 9.5px;
  font-weight: 750;
  line-height: 1.5;
}

.wsm-finish {
  padding-block: clamp(29px, 5vw, 52px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 199, 168, .14), transparent 0 32%, transparent 33%),
    #fff;
}

.wsm-finish__icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #0e8367, #39b794);
  box-shadow: 0 15px 28px rgba(17, 141, 112, .23);
  font-size: 27px;
  font-weight: 950;
}

.wsm-finish > p:not(.wsm-section-kicker) {
  max-width: 600px;
  margin: 9px auto 0;
  color: var(--wsm-copy);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.65;
}

.wsm-finish__stats {
  display: grid;
  max-width: 500px;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 20px auto 0;
}

.wsm-finish__stats div {
  padding: 14px 10px;
  border: 1px solid var(--wsm-line);
  border-radius: 15px;
  background: #f8fafc;
}

.wsm-finish__stats strong {
  display: block;
  color: var(--wsm-green);
  font-size: 20px;
  font-weight: 950;
}

.wsm-finish__stats span {
  display: block;
  margin-top: 3px;
  color: var(--wsm-muted);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.wsm-finish__actions {
  justify-content: center;
  margin-top: 18px;
}

.wsm-page [hidden] {
  display: none !important;
}

.wsm-page button:focus-visible,
.wsm-page a:focus-visible {
  outline: 3px solid rgba(62, 111, 216, .35);
  outline-offset: 3px;
}

body.writing-display-dark.writing-study-mode-page {
  background: #0b1425 !important;
}

body.writing-display-dark .wsm-page {
  --wsm-ink: #edf4ff;
  --wsm-copy: #c2d0e2;
  --wsm-muted: #98aac0;
  --wsm-line: #334a67;
  --wsm-soft: #13233b;
}

body.writing-display-dark :is(.wsm-task-section, .wsm-module, .wsm-builder, .wsm-finish) {
  border-color: #304962 !important;
  background: #12243a !important;
  box-shadow: none !important;
}

body.writing-display-dark :is(.wsm-task-card.is-coming, .wsm-progress-card, .wsm-answer-zone, .wsm-word-bank, .wsm-piece, .wsm-sample-bridge, .wsm-secondary-link, .wsm-collocation, .wsm-study-grid article, .wsm-complete-sentence, .wsm-triple-note code, .wsm-triple-note > div, .wsm-finish__stats div, .wsm-sample-gate, .wsm-task-prompt, .wsm-sample-answer) {
  color: #e8f0fb !important;
  border-color: #37536f !important;
  background: #172d47 !important;
}

body.writing-display-dark .wsm-study-card {
  border-color: #2b7666 !important;
  background: #103036 !important;
}

body.writing-display-dark :is(.wsm-section-heading h2, .wsm-module__head h2, .wsm-builder__head h3, .wsm-study-card__head h3, .wsm-finish h3, .wsm-task-card > strong, .wsm-sample-bridge h3, .wsm-progress-card__copy strong, .wsm-sample-gate__head h3) {
  color: #f2f7ff !important;
}

body.writing-display-dark :is(.wsm-task-card > small, .wsm-section-heading > p, .wsm-module__head > div > p:last-child, .wsm-sample-bridge__copy > p:last-child, .wsm-builder__prompt, .wsm-feedback, .wsm-collocation__use p, .wsm-finish > p:not(.wsm-section-kicker), .wsm-task-prompt > p:not(.wsm-section-kicker), .wsm-task-prompt li, .wsm-sample-answer > p) {
  color: #c1cede !important;
}

body.writing-display-dark .wsm-section-kicker {
  color: #67d8ba !important;
}

body.writing-display-dark :is(.wsm-module__badge, .wsm-study-card__label, .wsm-sample-gate__head > span) {
  color: #a9f3dd !important;
  background: #164a44 !important;
}

body.writing-display-dark .wsm-task-card.is-coming .wsm-task-card__top b {
  color: #77d9bd !important;
  background: #183d45 !important;
}

body.writing-display-dark .wsm-task-card.is-coming .wsm-task-card__top em {
  color: #aebed0 !important;
  background: #263a51 !important;
}

body.writing-display-dark .wsm-task-hero__route span.is-current,
body.writing-display-dark .wsm-task-hero__route span.is-current b {
  color: #083f35 !important;
  -webkit-text-fill-color: #083f35 !important;
  background: #a9f3dd !important;
}

body.writing-display-dark.wsm-task-page .back-btn {
  color: #e7eff9 !important;
  -webkit-text-fill-color: #e7eff9 !important;
  border-color: #3c5874 !important;
  background: #162a42 !important;
  box-shadow: none !important;
}

body.writing-display-dark .wsm-sample-answer > div:first-child > span {
  color: #b9d8f2 !important;
  background: #243e59 !important;
}

body.writing-display-dark .wsm-sample-answer mark {
  color: #a9f3dd !important;
  background: #174e46 !important;
}

body.writing-display-dark .wsm-sample-takeaway {
  border-color: #2f665d !important;
  background: #143a3b !important;
}

body.writing-display-dark .wsm-sample-takeaway span {
  color: #9fb4c7 !important;
}

body.writing-display-dark .wsm-sample-takeaway strong {
  color: #baf5e5 !important;
}

body.writing-display-dark .wsm-progress-track {
  background: #263d55 !important;
}

body.writing-display-dark .wsm-answer-zone > p {
  color: #9aadc2 !important;
}

body.writing-display-dark .wsm-word-bank .wsm-piece {
  color: #dfe9f5 !important;
  border-color: #47627f !important;
  background: #1a314d !important;
}

body.writing-display-dark .wsm-answer-pieces .wsm-piece {
  color: #fff !important;
  border-color: transparent !important;
  background: #118d70 !important;
}

body.writing-display-dark .wsm-button.is-quiet {
  color: #d4dfec !important;
  border-color: #48617c !important;
  background: #192f49 !important;
}

body.writing-display-dark :is(.wsm-button.is-primary, .wsm-button.is-next) {
  color: #fff !important;
  background: #118d70 !important;
}

body.writing-display-dark .wsm-button:disabled {
  color: #8799ae !important;
  border-color: #334a64 !important;
  background: #21364f !important;
  opacity: .62 !important;
}

body.writing-display-dark .wsm-builder__number {
  color: #627790 !important;
}

body.writing-display-dark main .wsm-collocation__phrase strong {
  color: #82e0c5 !important;
  -webkit-text-fill-color: #82e0c5 !important;
}

body.writing-display-dark main .wsm-collocation__phrase span {
  color: #c5d2e0 !important;
  -webkit-text-fill-color: #c5d2e0 !important;
}

body.writing-display-dark main .wsm-study-card__head h3,
body.writing-display-dark main .wsm-example > span {
  color: #9fb4c7 !important;
  -webkit-text-fill-color: #9fb4c7 !important;
}

body.writing-display-dark .wsm-study-grid strong {
  color: #d6e3f4 !important;
}

body.writing-display-dark .wsm-triple-note {
  border-color: #4a6178 !important;
  background: #162c46 !important;
}

body.writing-display-dark .wsm-triple-note h4 {
  color: #dce7f5 !important;
}

body.writing-display-dark .wsm-triple-note > div {
  background: #3a2835 !important;
}

body.writing-display-dark .wsm-triple-note > div.is-good {
  background: #153e38 !important;
}

@media (max-width: 900px) {
  .wsm-hero,
  .wsm-task-hero {
    grid-template-columns: 1fr;
  }

  .wsm-hero__stats {
    max-width: 440px;
  }

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

  .wsm-task-card.is-ready {
    grid-column: 1 / -1;
  }

  .wsm-task-hero__route {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .wsm-page {
    margin-top: 4px;
  }

  .wsm-hero {
    padding: 25px 20px;
    border-radius: 25px;
  }

  .wsm-task-hero {
    padding: 23px 19px;
    border-radius: 23px;
  }

  .wsm-task-hero h1 {
    font-size: 39px;
  }

  .wsm-hero h1 {
    font-size: 42px;
  }

  .wsm-hero__flow i {
    display: none;
  }

  .wsm-task-section,
  .wsm-module {
    padding: 15px;
    border-radius: 21px;
  }

  .wsm-section-heading,
  .wsm-module__head,
  .wsm-builder__head,
  .wsm-study-card__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

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

  .wsm-task-card.is-ready {
    grid-column: auto;
  }

  .wsm-task-card--units {
    grid-column: auto;
  }

  .wsm-unit-picker {
    grid-template-columns: 1fr;
  }

  .wsm-task-card {
    min-height: 156px;
  }

  .wsm-sample-bridge {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .wsm-sample-bridge .wsm-secondary-link {
    grid-column: 1 / -1;
  }

  .wsm-sample-gate__head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .wsm-sample-gate__head > span {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .wsm-sample-layout {
    grid-template-columns: 1fr;
  }

  .wsm-sample-takeaway {
    align-items: stretch;
    flex-direction: column;
  }

  .wsm-sample-takeaway .wsm-button {
    width: 100%;
    min-width: 0;
  }

  .wsm-progress-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .wsm-progress-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .wsm-progress-card__learned {
    grid-column: 2;
    grid-row: 1;
  }

  .wsm-collocation,
  .wsm-study-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .wsm-builder__actions .wsm-button {
    flex: 1 1 42%;
  }

  .wsm-builder__actions .wsm-button.is-primary {
    flex-basis: 100%;
  }
}

@media (max-width: 420px) {
  .wsm-hero h1 {
    font-size: 37px;
  }

  .wsm-hero__stats div {
    min-height: 100px;
    padding: 16px 12px;
  }

  .wsm-hero__stats strong {
    font-size: 29px;
  }

  .wsm-hero__flow span {
    min-height: 31px;
    font-size: 9px;
  }

  .wsm-builder,
  .wsm-study-card,
  .wsm-finish {
    padding: 15px;
    border-radius: 19px;
  }

  .wsm-piece {
    min-height: 36px;
    padding: 0 10px;
    font-size: 9px;
  }

  .wsm-finish__stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wsm-task-card,
  .wsm-piece,
  .wsm-progress-track span {
    transition: none;
  }
}
