.toefl-flash-v3 {
  --flash-ink: #17352d;
  --flash-muted: #60736d;
  --flash-green: #2f6f58;
  --flash-green-dark: #245644;
  --flash-mint: #dff1e7;
  --flash-mint-soft: #f1f8f4;
  --flash-warm: #fbfaf6;
  --flash-line: #dce5df;
  --flash-white: #ffffff;
  --flash-shadow: 0 18px 50px rgba(30, 68, 55, 0.1);
  width: min(calc(100% - 32px), 1080px);
  margin: 0 auto;
  padding: 34px 0 80px;
  color: var(--flash-ink);
}

.toefl-flash-v3 [hidden],
.toefl-flash-v3 .hidden {
  display: none !important;
}

.toefl-flash-v3 button,
.toefl-flash-v3 input,
.toefl-flash-v3 textarea {
  font: inherit;
}

.toefl-flash-v3 button {
  color: inherit;
}

.toefl-flash-v3-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.toefl-flash-v3-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.toefl-flash-v3-eyebrow,
.toefl-flash-v3-section-label {
  margin: 0 0 6px;
  color: var(--flash-green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toefl-flash-v3-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.toefl-flash-v3-intro {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--flash-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.toefl-flash-v3-product-links {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--flash-line);
  border-radius: 12px;
  background: var(--flash-white);
}

.toefl-flash-v3-product-links a {
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--flash-green);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.toefl-flash-v3-product-links a:hover {
  background: #edf5f0;
}

.toefl-flash-v3-settings-button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--flash-line);
  border-radius: 12px;
  background: var(--flash-white);
  color: var(--flash-green-dark);
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}

.toefl-flash-v3-settings-button:hover {
  border-color: #b9ccc0;
  background: #edf5f0;
}

.toefl-flash-v3-settings-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.toefl-flash-v3-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--flash-line);
  border-radius: 14px;
  background: #f4f6f2;
}

.toefl-flash-v3-tabs button {
  min-height: 40px;
  padding: 8px 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--flash-muted);
  font-weight: 750;
  cursor: pointer;
}

.toefl-flash-v3-tabs button.is-active {
  background: var(--flash-white);
  color: var(--flash-ink);
  box-shadow: 0 3px 12px rgba(35, 72, 59, 0.09);
}

.toefl-flash-v3-home {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.toefl-flash-v3-today,
.toefl-flash-v3-progress,
.toefl-flash-v3-card,
.toefl-flash-v3-complete,
.toefl-flash-v3-list-heading,
.toefl-flash-v3-saved-word {
  border: 1px solid var(--flash-line);
  border-radius: 22px;
  background: var(--flash-white);
  box-shadow: var(--flash-shadow);
}

.toefl-flash-v3-today {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(28px, 5vw, 48px);
  background:
    radial-gradient(circle at 88% 8%, rgba(191, 229, 207, 0.85), transparent 38%),
    linear-gradient(145deg, #f8fbf8, #edf6f0);
}

.toefl-flash-v3-today::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border: 34px solid rgba(47, 111, 88, 0.08);
  border-radius: 50%;
  content: '';
}

.toefl-flash-v3-today-copy,
.toefl-flash-v3-primary {
  position: relative;
  z-index: 1;
}

.toefl-flash-v3-today-number-row {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.toefl-flash-v3-today-number-row strong {
  font-size: clamp(4.5rem, 10vw, 7rem);
  font-weight: 750;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.toefl-flash-v3-today-number-row span {
  margin-bottom: 9px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--flash-green-dark);
  font-size: 0.83rem;
  font-weight: 800;
}

.toefl-flash-v3-today-copy > #toefl-flash-v3-home-copy {
  max-width: 480px;
  margin: 25px 0 0;
  color: var(--flash-muted);
  line-height: 1.55;
}

.toefl-flash-v3-active-plan {
  display: flex;
  width: min(100%, 520px);
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 15px 17px;
  border: 1px solid rgba(47, 111, 88, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.toefl-flash-v3-active-plan[hidden] {
  display: none;
}

.toefl-flash-v3-active-plan > div:first-child {
  display: grid;
  gap: 3px;
}

.toefl-flash-v3-active-plan span,
.toefl-flash-v3-active-plan small {
  color: var(--flash-muted);
  font-size: 0.74rem;
}

.toefl-flash-v3-active-plan strong {
  color: var(--flash-ink);
  font-size: 0.96rem;
}

.toefl-flash-v3-active-plan-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.toefl-flash-v3-active-plan-actions button,
.toefl-flash-v3-plan-actions > button:not(.toefl-flash-v3-primary),
.toefl-flash-v3-plan-skip,
.toefl-flash-v3-goals footer > button:first-child {
  padding: 7px 9px;
  border: 0;
  background: transparent;
  color: var(--flash-green-dark);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.toefl-flash-v3-primary {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 21px;
  border: 1px solid var(--flash-green-dark);
  border-radius: 13px;
  background: var(--flash-green);
  color: white !important;
  font-weight: 800;
  box-shadow: 0 9px 22px rgba(47, 111, 88, 0.2);
  cursor: pointer;
}

.toefl-flash-v3-primary:hover {
  background: var(--flash-green-dark);
}

.toefl-flash-v3-primary svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.toefl-flash-v3-progress {
  padding: 28px;
}

.toefl-flash-v3-progress-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.toefl-flash-v3-progress-heading h2 {
  margin: 0;
  font-size: 1.22rem;
}

.toefl-flash-v3-progress-heading > span {
  color: var(--flash-green);
  font-size: 1.1rem;
  font-weight: 850;
}

.toefl-flash-v3-progress-track {
  height: 9px;
  margin: 22px 0 24px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eeea;
}

.toefl-flash-v3-progress-track span,
.toefl-flash-v3-session-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--flash-green);
  transition: width 280ms ease-out;
}

.toefl-flash-v3-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.toefl-flash-v3-status-grid article {
  min-width: 0;
  padding: 15px;
  border: 1px solid #e7ede8;
  border-radius: 14px;
  background: var(--flash-warm);
}

.toefl-flash-v3-status-grid span {
  display: block;
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.toefl-flash-v3-status-grid p {
  margin: 4px 0 0;
  color: var(--flash-muted);
  font-size: 0.8rem;
}

.toefl-flash-v3-next-due {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding: 14px;
  border-radius: 14px;
  background: var(--flash-mint-soft);
}

.toefl-flash-v3-next-due svg {
  width: 25px;
  flex: 0 0 25px;
  fill: none;
  stroke: var(--flash-green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.toefl-flash-v3-next-due p {
  min-width: 0;
  margin: 0;
}

.toefl-flash-v3-next-due span,
.toefl-flash-v3-next-due strong {
  display: block;
}

.toefl-flash-v3-next-due span {
  color: var(--flash-muted);
  font-size: 0.75rem;
}

.toefl-flash-v3-next-due strong {
  margin-top: 2px;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
}

.toefl-flash-v3-home-message {
  grid-column: 1 / -1;
  min-height: 25px;
  color: #8a3f34;
  font-size: 0.9rem;
}

.toefl-flash-v3-home-message button,
.toefl-flash-v3-list-empty button {
  margin-left: 8px;
  border: 0;
  background: transparent;
  color: var(--flash-green-dark);
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.toefl-flash-v3-study {
  width: min(100%, 800px);
  margin: 0 auto;
  padding-bottom: 16px;
}

.toefl-flash-v3-session-heading {
  margin-bottom: 14px;
}

.toefl-flash-v3-session-heading > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: var(--flash-muted);
  font-size: 0.86rem;
}

.toefl-flash-v3-session-heading strong {
  color: var(--flash-ink);
}

.toefl-flash-v3-session-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ece8;
}

.toefl-flash-v3-card {
  position: relative;
  min-height: 460px;
  padding: clamp(28px, 5vw, 52px);
}

.toefl-flash-v3-card-front {
  min-height: 210px;
  text-align: center;
}

.toefl-flash-v3-card-front > p {
  margin: 0 0 32px;
  color: var(--flash-muted);
  font-size: 0.9rem;
}

.toefl-flash-v3-card-front h2 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

.toefl-flash-v3-card-front > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.toefl-flash-v3-card-front span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--flash-mint-soft);
  color: var(--flash-green-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.toefl-flash-v3-audio {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  margin: -8px auto 20px;
  padding: 8px 13px;
  border: 1px solid var(--flash-line);
  border-radius: 999px;
  background: var(--flash-white);
  color: var(--flash-green-dark);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.toefl-flash-v3-audio svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.toefl-flash-v3-reveal {
  display: flex;
  width: min(100%, 340px);
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto;
  border: 1px solid var(--flash-green);
  border-radius: 13px;
  background: var(--flash-green);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.toefl-flash-v3 kbd {
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 800;
}

.toefl-flash-v3-card-back {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--flash-line);
}

.toefl-flash-v3-definition {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.55;
}

.toefl-flash-v3-card-back blockquote {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--flash-green);
  border-radius: 0 10px 10px 0;
  background: var(--flash-warm);
  color: #425c53;
  font-style: normal;
  line-height: 1.6;
}

.toefl-flash-v3-use {
  color: var(--flash-muted);
  line-height: 1.6;
}

.toefl-flash-v3-prompt {
  margin-top: 22px;
  padding: 17px;
  border-radius: 14px;
  background: var(--flash-mint-soft);
}

.toefl-flash-v3-prompt span {
  color: var(--flash-green);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.toefl-flash-v3-prompt p {
  margin: 5px 0 0;
  line-height: 1.55;
}

.toefl-flash-v3-card-back details {
  margin-top: 18px;
}

.toefl-flash-v3-card-back summary {
  color: var(--flash-green-dark);
  font-weight: 800;
  cursor: pointer;
}

.toefl-flash-v3-card-back details div {
  color: var(--flash-muted);
  line-height: 1.6;
}

.toefl-flash-v3-ratings {
  position: sticky;
  z-index: 8;
  bottom: 14px;
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid var(--flash-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 45px rgba(22, 53, 44, 0.17);
  backdrop-filter: blur(14px);
}

.toefl-flash-v3-ratings legend {
  width: 100%;
  padding: 0 0 10px;
  color: var(--flash-muted);
  font-size: 0.82rem;
  text-align: center;
}

.toefl-flash-v3-ratings > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.toefl-flash-v3-ratings button {
  display: flex;
  min-height: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  border: 1px solid #d6e1da;
  border-radius: 12px;
  background: var(--flash-white);
  cursor: pointer;
}

.toefl-flash-v3-ratings button:hover {
  border-color: var(--flash-green);
  background: var(--flash-mint-soft);
}

.toefl-flash-v3-ratings button span {
  font-size: 0.8rem;
  font-weight: 800;
}

.toefl-flash-v3-ratings button strong {
  color: var(--flash-green);
  font-size: 0.76rem;
}

.toefl-flash-v3-ratings kbd {
  border-color: #d2ddd6;
  background: #f4f7f5;
  color: var(--flash-muted);
}

.toefl-flash-v3-review-message {
  min-height: 22px;
  margin: 10px 0 0;
  color: #8a3f34;
  font-size: 0.88rem;
  text-align: center;
}

.toefl-flash-v3-complete {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 58px);
  text-align: center;
}

.toefl-flash-v3-complete-mark {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--flash-mint);
  color: var(--flash-green);
}

.toefl-flash-v3-complete-mark svg {
  width: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.toefl-flash-v3-complete h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.045em;
}

.toefl-flash-v3-complete > p:not(.toefl-flash-v3-section-label) {
  margin: 14px auto 0;
  color: var(--flash-muted);
  line-height: 1.6;
}

.toefl-flash-v3-complete-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 28px 0;
}

.toefl-flash-v3-complete-grid span {
  padding: 14px 8px;
  border-radius: 12px;
  background: var(--flash-warm);
  color: var(--flash-muted);
  font-size: 0.76rem;
}

.toefl-flash-v3-complete-grid strong {
  display: block;
  margin-bottom: 3px;
  color: var(--flash-ink);
  font-size: 1.35rem;
}

.toefl-flash-v3-plan-recommendation {
  margin: 4px 0 24px;
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid rgba(47, 111, 88, 0.2);
  border-radius: 18px;
  background: linear-gradient(145deg, #f4faf6, #edf6f0);
  text-align: left;
}

.toefl-flash-v3-plan-recommendation > p:first-child {
  margin: 0 0 7px;
  color: var(--flash-green-dark);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toefl-flash-v3-plan-recommendation h3 {
  margin: 0;
  color: var(--flash-ink);
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  letter-spacing: -0.025em;
}

.toefl-flash-v3-plan-meta {
  margin-top: 8px;
  color: var(--flash-green-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.toefl-flash-v3-plan-recommendation > p:not(:first-child) {
  margin: 14px 0 0;
  color: var(--flash-muted);
  line-height: 1.55;
}

.toefl-flash-v3-plan-recommendation > strong {
  display: block;
  margin-top: 16px;
  color: var(--flash-ink);
  font-size: 0.9rem;
}

.toefl-flash-v3-plan-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.toefl-flash-v3-plan-actions .toefl-flash-v3-primary {
  min-height: 46px;
  padding: 10px 17px;
}

.toefl-flash-v3-plan-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--flash-muted);
  font-size: 0.8rem;
}

.toefl-flash-v3-plan-skip {
  margin-top: 2px;
}

.toefl-flash-v3-goals {
  width: min(calc(100% - 28px), 680px);
  max-height: min(820px, calc(100dvh - 30px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--flash-line);
  border-radius: 22px;
  background: var(--flash-white);
  box-shadow: 0 30px 80px rgba(24, 50, 40, 0.25);
}

.toefl-flash-v3-goals::backdrop {
  background: rgba(21, 35, 29, 0.56);
  backdrop-filter: blur(3px);
}

.toefl-flash-v3-goals-shell {
  max-height: min(820px, calc(100dvh - 30px));
  overflow-y: auto;
}

.toefl-flash-v3-goals header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 18px;
}

.toefl-flash-v3-goals h2 {
  margin: 3px 0 0;
  color: var(--flash-ink);
  font-size: 1.65rem;
  letter-spacing: -0.035em;
}

.toefl-flash-v3-goals header p:last-child {
  margin: 8px 0 0;
  color: var(--flash-muted);
  font-size: 0.9rem;
}

.toefl-flash-v3-goals header > button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--flash-line);
  border-radius: 50%;
  background: var(--flash-white);
  color: var(--flash-ink);
  cursor: pointer;
}

.toefl-flash-v3-goals header svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.toefl-flash-v3-goal-options {
  display: grid;
  gap: 9px;
  padding: 0 28px;
}

.toefl-flash-v3-goal-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--flash-line);
  border-radius: 14px;
  background: var(--flash-white);
  color: var(--flash-ink);
  text-align: left;
  cursor: pointer;
}

.toefl-flash-v3-goal-option:hover:not(:disabled),
.toefl-flash-v3-goal-option.is-selected {
  border-color: var(--flash-green);
  background: #f4faf6;
}

.toefl-flash-v3-goal-check {
  width: 18px;
  height: 18px;
  border: 2px solid #a9bdb3;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px white;
}

.toefl-flash-v3-goal-option.is-selected .toefl-flash-v3-goal-check {
  border-color: var(--flash-green);
  background: var(--flash-green);
}

.toefl-flash-v3-goal-option > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.toefl-flash-v3-goal-option small {
  color: var(--flash-muted);
  font-size: 0.76rem;
}

.toefl-flash-v3-goal-option em {
  padding: 4px 7px;
  border-radius: 999px;
  background: #f2ebdc;
  color: #765f2a;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 850;
}

.toefl-flash-v3-goal-option.is-locked {
  cursor: not-allowed;
  opacity: 0.62;
}

.toefl-flash-v3-goals > .toefl-flash-v3-plan-status,
.toefl-flash-v3-goals-shell > .toefl-flash-v3-plan-status {
  padding: 0 28px;
}

.toefl-flash-v3-goals footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 28px 26px;
}

.toefl-flash-v3-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
}

.toefl-flash-v3-list-heading h2 {
  margin: 0;
  font-size: 1.55rem;
}

.toefl-flash-v3-list-heading > div > p:last-child {
  margin: 7px 0 0;
  color: var(--flash-muted);
}

.toefl-flash-v3-list-heading form {
  display: flex;
  gap: 7px;
}

.toefl-flash-v3-source-filter {
  display: grid;
  gap: 5px;
  color: var(--flash-muted);
  font-size: .76rem;
  font-weight: 750;
}

.toefl-flash-v3-source-filter select {
  min-height: 42px;
  padding: 8px 34px 8px 11px;
  border: 1px solid var(--flash-line);
  border-radius: 10px;
  color: var(--flash-ink);
  background: var(--flash-white);
  font: inherit;
}

.toefl-flash-v3-list-heading input,
.toefl-flash-v3-list-heading button,
.toefl-flash-v3-pagination button,
.toefl-flash-v3-saved-actions button {
  min-height: 42px;
  border: 1px solid var(--flash-line);
  border-radius: 10px;
  background: var(--flash-white);
}

.toefl-flash-v3-list-heading input {
  width: min(260px, 42vw);
  padding: 8px 12px;
}

.toefl-flash-v3-list-heading button,
.toefl-flash-v3-pagination button,
.toefl-flash-v3-saved-actions button {
  padding: 8px 13px;
  color: var(--flash-green-dark);
  font-weight: 800;
  cursor: pointer;
}

.toefl-flash-v3-list-state {
  margin: 18px 2px 10px;
  color: var(--flash-muted);
  font-size: 0.88rem;
}

.toefl-flash-v3-list {
  display: grid;
  gap: 12px;
}

.toefl-flash-v3-saved-word {
  padding: 22px;
  box-shadow: 0 8px 25px rgba(30, 68, 55, 0.06);
}

.toefl-flash-v3-saved-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.toefl-flash-v3-saved-heading h3 {
  margin: 0;
  font-size: 1.25rem;
}

.toefl-flash-v3-saved-heading p {
  margin: 5px 0 0;
  color: var(--flash-green);
  font-size: 0.78rem;
  font-weight: 700;
}

.toefl-flash-v3-saved-word > p {
  color: var(--flash-muted);
  line-height: 1.55;
}

.toefl-flash-v3-star {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid var(--flash-line);
  border-radius: 10px;
  background: white;
  cursor: pointer;
}

.toefl-flash-v3-star svg {
  width: 20px;
  fill: none;
  stroke: var(--flash-green);
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.toefl-flash-v3-star[aria-pressed='true'] svg {
  fill: #f2c84b;
  stroke: #a87700;
}

.toefl-flash-v3-saved-word label {
  display: grid;
  gap: 7px;
  color: var(--flash-muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.toefl-flash-v3-saved-word textarea {
  width: 100%;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid var(--flash-line);
  border-radius: 10px;
  color: var(--flash-ink);
  font-weight: 400;
}

.toefl-flash-v3-saved-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  color: var(--flash-muted);
  font-size: 0.82rem;
}

.toefl-flash-v3-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.toefl-flash-v3-settings {
  width: min(calc(100% - 28px), 820px);
  max-height: min(880px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--flash-line);
  border-radius: 24px;
  background: var(--flash-white);
  color: var(--flash-ink);
  box-shadow: 0 28px 90px rgba(14, 42, 33, .28);
}

.toefl-flash-v3-settings::backdrop {
  background: rgba(11, 28, 22, .58);
  backdrop-filter: blur(3px);
}

.toefl-flash-v3-settings-shell {
  max-height: min(880px, calc(100dvh - 32px));
  overflow-y: auto;
}

.toefl-flash-v3-settings-shell > header {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--flash-line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.toefl-flash-v3-settings-shell h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  letter-spacing: -.025em;
}

.toefl-flash-v3-settings-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f0f3f1;
  cursor: pointer;
}

.toefl-flash-v3-settings-close svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.toefl-flash-v3-settings form {
  padding: 24px 26px 28px;
}

.toefl-flash-v3-algorithms {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.toefl-flash-v3-algorithm {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  align-items: start;
  gap: 15px;
  min-width: 0;
  padding: 19px;
  border: 1px solid #dbe3de;
  border-radius: 17px;
  background: var(--flash-white);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.toefl-flash-v3-algorithm:hover {
  border-color: #a9c1b3;
  background: #fafcfb;
}

.toefl-flash-v3-algorithm:has(input:checked) {
  border-color: var(--flash-green);
  background: var(--flash-mint-soft);
  box-shadow: inset 0 0 0 1px var(--flash-green);
}

.toefl-flash-v3-algorithm > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toefl-flash-v3-algorithm-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  color: var(--flash-green);
  background: var(--flash-mint);
}

.toefl-flash-v3-algorithm-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.toefl-flash-v3-algorithm-copy {
  min-width: 0;
}

.toefl-flash-v3-algorithm-copy > span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.toefl-flash-v3-algorithm-copy strong {
  font-size: 1.02rem;
}

.toefl-flash-v3-algorithm-copy em {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--flash-green);
  color: white;
  font-size: .67rem;
  font-style: normal;
  font-weight: 850;
}

.toefl-flash-v3-algorithm-copy em.is-soft {
  background: #e3f0e8;
  color: var(--flash-green-dark);
}

.toefl-flash-v3-algorithm-copy small {
  display: block;
  margin-top: 8px;
  color: var(--flash-muted);
  font-size: .86rem;
  line-height: 1.5;
}

.toefl-flash-v3-algorithm-check {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 2px solid #cad5ce;
  border-radius: 8px;
  color: transparent;
  background: white;
}

.toefl-flash-v3-algorithm:has(input:checked) .toefl-flash-v3-algorithm-check {
  border-color: var(--flash-green);
  color: white;
  background: var(--flash-green);
}

.toefl-flash-v3-algorithm-check svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.toefl-flash-v3-session-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px 18px;
  margin-top: 22px;
  padding: 20px;
  border-radius: 17px;
  background: var(--flash-warm);
}

.toefl-flash-v3-session-settings > div {
  grid-column: 1 / -1;
}

.toefl-flash-v3-session-settings h3,
.toefl-flash-v3-session-settings p {
  margin: 0;
}

.toefl-flash-v3-session-settings p {
  margin-top: 5px;
  color: var(--flash-muted);
  font-size: .82rem;
  line-height: 1.5;
}

.toefl-flash-v3-session-settings > label:not(.toefl-flash-v3-shuffle) {
  display: contents;
}

.toefl-flash-v3-session-settings > label > span {
  align-self: center;
  font-size: .88rem;
  font-weight: 750;
}

.toefl-flash-v3-session-settings input[type='number'] {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--flash-line);
  border-radius: 10px;
  background: white;
  color: var(--flash-ink);
}

.toefl-flash-v3-shuffle {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--flash-line);
}

.toefl-flash-v3-shuffle span,
.toefl-flash-v3-shuffle strong,
.toefl-flash-v3-shuffle small {
  display: block;
}

.toefl-flash-v3-shuffle small {
  margin-top: 3px;
  color: var(--flash-muted);
  font-size: .74rem;
  font-weight: 400;
}

.toefl-flash-v3-shuffle input {
  width: 48px;
  height: 27px;
  flex: 0 0 48px;
  appearance: none;
  border: 1px solid #aebbb3;
  border-radius: 999px;
  background: #dce3df;
  cursor: pointer;
  transition: background 180ms ease;
}

.toefl-flash-v3-shuffle input::before {
  display: block;
  width: 21px;
  height: 21px;
  margin: 2px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 5px rgba(23, 53, 45, .24);
  content: '';
  transition: transform 180ms ease;
}

.toefl-flash-v3-shuffle input:checked {
  border-color: var(--flash-green);
  background: var(--flash-green);
}

.toefl-flash-v3-shuffle input:checked::before {
  transform: translateX(21px);
}

.toefl-flash-v3-settings-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: #8a3f34;
  font-size: .84rem;
}

.toefl-flash-v3-settings footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.toefl-flash-v3-settings footer .toefl-flash-v3-primary {
  min-height: 46px;
  padding: 10px 18px;
}

.toefl-flash-v3-settings-cancel {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--flash-line);
  border-radius: 12px;
  background: white;
  color: var(--flash-green-dark);
  font-weight: 800;
  cursor: pointer;
}

.toefl-flash-v3-list-empty {
  padding: 28px;
  border: 1px dashed var(--flash-line);
  border-radius: 16px;
  background: var(--flash-warm);
  color: var(--flash-muted);
  text-align: center;
}

.toefl-flash-v3-list-empty h3 {
  margin: 0;
  color: var(--flash-ink);
}

.toefl-flash-v3-list-empty p {
  margin: 8px 0 0;
}

.toefl-flash-v3 button:focus,
.toefl-flash-v3 button:focus-visible,
.toefl-flash-v3 input:focus,
.toefl-flash-v3 input:focus-visible,
.toefl-flash-v3 textarea:focus,
.toefl-flash-v3 textarea:focus-visible,
.toefl-flash-v3 select:focus,
.toefl-flash-v3 select:focus-visible,
.toefl-flash-v3-algorithm:has(input:focus),
.toefl-flash-v3-algorithm:has(input:focus-visible),
.toefl-flash-v3-settings :is(button, input):focus,
.toefl-flash-v3-settings :is(button, input):focus-visible,
.toefl-flash-v3 summary:focus,
.toefl-flash-v3 summary:focus-visible,
.toefl-flash-v3 [tabindex='-1']:focus {
  outline: 3px solid rgba(47, 111, 88, 0.38);
  outline-offset: 3px;
}

.toefl-flash-v3 button:disabled {
  cursor: wait;
  opacity: 0.62;
}

@media (max-width: 780px) {
  .toefl-flash-v3 {
    width: min(calc(100% - 24px), 680px);
    padding-top: 24px;
  }

  .toefl-flash-v3-home {
    grid-template-columns: 1fr;
  }

  .toefl-flash-v3-today {
    min-height: 310px;
  }

  .toefl-flash-v3-list-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .toefl-flash-v3-list-heading form,
  .toefl-flash-v3-list-heading input {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .toefl-flash-v3 {
    width: min(calc(100% - 20px), 470px);
    padding-bottom: 110px;
  }

  .toefl-flash-v3-header h1 {
    font-size: 2.25rem;
  }

  .toefl-flash-v3-header {
    align-items: stretch;
    flex-direction: column;
  }

  .toefl-flash-v3-header-actions {
    justify-content: flex-start;
  }

  .toefl-flash-v3-product-links {
    width: 100%;
  }

  .toefl-flash-v3-product-links a {
    flex: 1 1 0;
    text-align: center;
  }

  .toefl-flash-v3-intro {
    font-size: 0.92rem;
  }

  .toefl-flash-v3-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .toefl-flash-v3-today {
    min-height: 290px;
    padding: 26px 22px;
  }

  .toefl-flash-v3-today-number-row strong {
    font-size: 5rem;
  }

  .toefl-flash-v3-primary {
    width: 100%;
  }

  .toefl-flash-v3-active-plan {
    align-items: flex-start;
    flex-direction: column;
  }

  .toefl-flash-v3-active-plan-actions {
    justify-content: flex-start;
  }

  .toefl-flash-v3-progress,
  .toefl-flash-v3-list-heading,
  .toefl-flash-v3-saved-word {
    padding: 21px;
    border-radius: 18px;
  }

  .toefl-flash-v3-card {
    min-height: 420px;
    padding: 30px 20px;
    border-radius: 18px;
  }

  .toefl-flash-v3-card-front {
    min-height: 190px;
  }

  .toefl-flash-v3-card-front h2 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .toefl-flash-v3-ratings {
    position: fixed;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    margin: 0;
    padding: 10px;
    border-radius: 16px;
  }

  .toefl-flash-v3-ratings legend {
    padding-bottom: 7px;
  }

  .toefl-flash-v3-ratings > div {
    gap: 5px;
  }

  .toefl-flash-v3-ratings button {
    min-width: 0;
    min-height: 56px;
    padding: 6px 2px;
  }

  .toefl-flash-v3-ratings button span {
    font-size: 0.72rem;
  }

  .toefl-flash-v3-ratings kbd {
    display: none;
  }

  .toefl-flash-v3-complete-grid {
    grid-template-columns: 1fr 1fr;
  }

  .toefl-flash-v3-plan-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .toefl-flash-v3-goals {
    width: min(calc(100% - 16px), 680px);
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  .toefl-flash-v3-goals-shell {
    max-height: calc(100dvh - 16px);
  }

  .toefl-flash-v3-goals header,
  .toefl-flash-v3-goal-options,
  .toefl-flash-v3-goals footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .toefl-flash-v3-goal-option {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    padding: 13px;
  }

  .toefl-flash-v3-settings {
    width: min(calc(100% - 16px), 820px);
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  .toefl-flash-v3-settings-shell {
    max-height: calc(100dvh - 16px);
  }

  .toefl-flash-v3-settings-shell > header,
  .toefl-flash-v3-settings form {
    padding-right: 18px;
    padding-left: 18px;
  }

  .toefl-flash-v3-algorithm {
    grid-template-columns: 42px minmax(0, 1fr) 25px;
    gap: 11px;
    padding: 15px;
  }

  .toefl-flash-v3-algorithm-icon {
    width: 42px;
    height: 42px;
  }

  .toefl-flash-v3-algorithm-icon svg {
    width: 25px;
    height: 25px;
  }

  .toefl-flash-v3-session-settings {
    grid-template-columns: minmax(0, 1fr) 100px;
    padding: 16px;
  }

  .toefl-flash-v3-list-heading form {
    display: grid;
    grid-template-columns: 1fr auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toefl-flash-v3 *,
  .toefl-flash-v3 *::before,
  .toefl-flash-v3 *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
