.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-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-usage {
  box-sizing: border-box;
  display: grid;
  width: fit-content;
  max-width: 100%;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 12px 0 20px;
  padding: 10px 12px;
  border: 1px solid rgba(47, 111, 88, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--flash-green-dark);
}

.toefl-flash-v3-usage > svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.toefl-flash-v3-usage > span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.toefl-flash-v3-usage strong {
  font-size: 0.83rem;
  line-height: 1.3;
}

.toefl-flash-v3-usage small {
  color: var(--flash-muted);
  font-size: 0.73rem;
}

.toefl-flash-v3-usage > button {
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  background: var(--flash-green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 850;
  cursor: pointer;
}

.toefl-flash-v3-usage.is-depleted {
  border-color: #e6c784;
  background: #fff9e9;
  color: #765817;
}

.toefl-flash-v3-usage.is-unlimited {
  border-color: rgba(47, 111, 88, 0.2);
  background: var(--flash-mint-soft);
}

.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: grid;
  width: min(100%, 600px);
  gap: 14px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(47, 111, 88, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
}

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

.toefl-flash-v3-active-plan-copy {
  display: grid;
  gap: 4px;
}

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

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

.toefl-flash-v3-active-plan-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.toefl-flash-v3-active-plan-facts span {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(237, 246, 240, 0.88);
  color: var(--flash-muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.toefl-flash-v3-active-plan-facts strong {
  display: block;
  overflow: hidden;
  margin-bottom: 2px;
  color: var(--flash-ink);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.toefl-flash-v3-active-plan-actions button,
.toefl-flash-v3-active-plan-actions a,
.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-decks {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--flash-line);
  border-radius: 22px;
  background: var(--flash-white);
  box-shadow: var(--flash-shadow);
}

.toefl-flash-v3-decks-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

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

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

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

.toefl-flash-v3-deck-action-primary,
.toefl-flash-v3-deck-action-secondary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--flash-line);
  border-radius: 11px;
  background: var(--flash-white);
  color: var(--flash-green-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.toefl-flash-v3-deck-action-primary {
  border-color: var(--flash-green);
  background: var(--flash-green);
  color: white;
}

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

.toefl-flash-v3-deck-action-secondary:hover {
  border-color: #b9ccc0;
  background: var(--flash-mint-soft);
}

.toefl-flash-v3-deck-action-primary svg,
.toefl-flash-v3-deck-action-secondary svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.toefl-flash-v3-import-menu-wrap {
  position: relative;
}

.toefl-flash-v3-import-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: min(300px, calc(100vw - 40px));
  overflow: hidden;
  border: 1px solid var(--flash-line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 18px 44px rgba(23, 53, 45, 0.18);
}

.toefl-flash-v3-import-menu a,
.toefl-flash-v3-import-menu button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  color: var(--flash-ink);
  text-align: left;
  text-decoration: none;
  background: white;
  cursor: pointer;
}

.toefl-flash-v3-import-menu > * + * {
  border-top: 1px solid var(--flash-line);
}

.toefl-flash-v3-import-menu a:hover,
.toefl-flash-v3-import-menu button:hover {
  background: var(--flash-mint-soft);
}

.toefl-flash-v3-import-menu svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.toefl-flash-v3-import-menu span {
  display: grid;
  gap: 2px;
}

.toefl-flash-v3-import-menu small {
  color: var(--flash-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.toefl-flash-v3-decks-state {
  min-height: 22px;
  margin-bottom: 10px;
  color: var(--flash-muted);
  font-size: 0.82rem;
}

.toefl-flash-v3-deck-list {
  overflow: hidden;
  border: 1px solid var(--flash-line);
  border-radius: 16px;
}

.toefl-flash-v3-deck-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.42fr) 24px;
  align-items: center;
  gap: 20px;
  min-height: 88px;
  padding: 16px 20px;
  color: inherit;
  text-decoration: none;
}

.toefl-flash-v3-deck-row + .toefl-flash-v3-deck-row {
  border-top: 1px solid var(--flash-line);
}

.toefl-flash-v3-deck-row:hover {
  background: var(--flash-mint-soft);
}

.toefl-flash-v3-deck-row-copy,
.toefl-flash-v3-deck-row-progress {
  min-width: 0;
}

.toefl-flash-v3-deck-row-copy strong {
  display: block;
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toefl-flash-v3-deck-row-copy span,
.toefl-flash-v3-deck-row-progress small {
  display: block;
  margin-top: 5px;
  color: var(--flash-muted);
  font-size: 0.78rem;
}

.toefl-flash-v3-deck-row-progress > span {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eee9;
}

.toefl-flash-v3-deck-row-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--flash-green);
}

.toefl-flash-v3-deck-row > svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--flash-green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

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

.toefl-flash-v3-deck-pagination button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--flash-line);
  border-radius: 10px;
  background: white;
  color: var(--flash-green-dark);
  font-weight: 800;
  cursor: pointer;
}

.toefl-flash-v3-deck-pagination span {
  color: var(--flash-muted);
  font-size: 0.8rem;
}

.toefl-flash-v3-deck-empty {
  padding: 34px 20px;
  text-align: center;
}

.toefl-flash-v3-deck-empty h3 {
  margin: 0;
}

.toefl-flash-v3-deck-empty p {
  margin: 8px 0 0;
  color: var(--flash-muted);
}

.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-usage.is-session {
  margin: 0 0 12px auto;
  background: #fff;
}

.toefl-flash-v3-shortened-notice {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #e7cf96;
  border-radius: 13px;
  background: #fff9e9;
  color: #684f19;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.45;
}

.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-rich-face {
  width: 100%;
  color: #17352b;
  font-size: 1.02rem;
  line-height: 1.62;
  text-align: left;
  word-break: break-word;
}

.toefl-flash-v3-rich-face > :first-child {
  margin-top: 0;
}

.toefl-flash-v3-rich-face > :last-child {
  margin-bottom: 0;
}

.toefl-flash-v3-rich-face ul,
.toefl-flash-v3-rich-face ol {
  margin-block: .6em;
  padding-left: 1.75em;
  list-style-position: outside;
}

.toefl-flash-v3-rich-face ul { list-style-type: disc; }
.toefl-flash-v3-rich-face ol { list-style-type: decimal; }

.toefl-flash-v3-rich-face li {
  margin-block: .2em;
  padding-left: .15em;
}

.toefl-flash-v3-rich-face h2,
.toefl-flash-v3-rich-face h3 {
  color: #17352b;
  text-align: left;
}

.toefl-flash-v3-rich-face a {
  color: #5d7d00;
  font-weight: 750;
  text-decoration-color: #ccff00;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.toefl-flash-v3-rich-face pre,
.toefl-flash-v3-rich-face code {
  border-radius: 8px;
  color: #d7ff5a;
  background: #15362b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.toefl-flash-v3-rich-face pre {
  overflow: auto;
  padding: 14px;
}

.toefl-flash-v3-rich-face figure {
  width: min(520px, 100%);
  margin: 14px auto;
}

.toefl-flash-v3-rich-face figure img {
  display: block;
  width: 100%;
  max-height: 330px;
  border-radius: 14px;
  object-fit: cover;
}

.toefl-flash-v3-rich-face figcaption {
  margin-top: 5px;
  color: #6d7772;
  font-size: .72rem;
  text-align: left;
}

.toefl-flash-v3-inline-speech {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: 6px;
  border: 0;
  border-radius: 8px;
  color: #17352b;
  vertical-align: middle;
  background: #ccff00;
}

.toefl-flash-v3-inline-speech svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.toefl-flash-v3-cloze-answer {
  min-width: 86px;
  min-height: 30px;
  border: 1px dashed #769800;
  border-radius: 7px;
  padding: 3px 9px;
  color: #4d6500;
  font-size: .8rem;
  font-weight: 800;
  vertical-align: baseline;
  background: #edffc2;
}

.toefl-flash-v3-cloze-revealed {
  border-radius: 5px;
  padding: 1px 4px;
  background: #edffc2;
  box-shadow: inset 0 -2px 0 #ccff00;
}

.toefl-flash-v3-rich-face .toefl-flash-latex {
  display: inline-block;
  border-radius: 8px;
  padding: 3px 8px;
  color: #17352b;
  background: linear-gradient(135deg, #f0edff, #dff8ff);
  font-family: ui-serif, Georgia, serif;
}

.toefl-flash-v3-rich-face .toefl-rich-text-color-lime { color: #638400; }
.toefl-flash-v3-rich-face .toefl-rich-text-color-ink { color: #17352b; }
.toefl-flash-v3-rich-face .toefl-rich-text-color-green { color: #1f8f35; }
.toefl-flash-v3-rich-face .toefl-rich-text-color-rose { color: #d92d52; }
.toefl-flash-v3-rich-face .toefl-rich-text-color-orange { color: #c96100; }
.toefl-flash-v3-rich-face .toefl-rich-text-color-purple { color: #5a42cb; }
.toefl-flash-v3-rich-face .toefl-rich-highlight-lime { background: #e9ffc2; }
.toefl-flash-v3-rich-face .toefl-rich-highlight-rose { background: #ffe0e7; }
.toefl-flash-v3-rich-face .toefl-rich-highlight-sky { background: #dff5ff; }
.toefl-flash-v3-rich-face .toefl-rich-highlight-violet { background: #ece8ff; }

.toefl-flash-v3-occlusion-figure {
  position: relative;
}

.toefl-flash-v3-occlusion-mask {
  position: absolute;
  border: 2px solid #769800;
  border-radius: 5px;
  padding: 0;
  background: #ccff00;
  box-shadow: 0 3px 10px rgba(23, 53, 43, .28);
  cursor: pointer;
  transition: opacity .16s ease;
}

.toefl-flash-v3-occlusion-mask.is-revealed {
  opacity: 0;
  pointer-events: none;
}

.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-paywall {
  box-sizing: border-box;
  width: min(calc(100% - 28px), 590px);
  padding: clamp(28px, 6vw, 48px);
  overflow: visible;
  border: 1px solid var(--flash-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(211, 238, 222, 0.9), transparent 35%),
    #fff;
  color: var(--flash-ink);
  text-align: center;
  box-shadow: 0 30px 80px rgba(24, 50, 40, 0.28);
}

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

.toefl-flash-v3-paywall-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--flash-green-dark);
  cursor: pointer;
}

.toefl-flash-v3-paywall-close svg,
.toefl-flash-v3-paywall-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

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

.toefl-flash-v3-paywall-mark svg {
  width: 34px;
  height: 34px;
}

.toefl-flash-v3-paywall h2 {
  margin: 7px auto 0;
  max-width: 470px;
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.toefl-flash-v3-paywall > p:not(.toefl-flash-v3-section-label) {
  max-width: 470px;
  margin: 16px auto 0;
  color: var(--flash-muted);
  line-height: 1.6;
}

.toefl-flash-v3-paywall .toefl-flash-v3-paywall-reset {
  color: var(--flash-green-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.toefl-flash-v3-paywall-actions {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.toefl-flash-v3-paywall-actions a,
.toefl-flash-v3-paywall-actions button {
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}

.toefl-flash-v3-paywall-actions > a:not(.toefl-flash-v3-primary),
.toefl-flash-v3-paywall-actions > button {
  display: inline-flex;
  border: 1px solid var(--flash-line);
  background: #fff;
  color: var(--flash-green-dark);
}

.toefl-flash-v3-paywall-actions > button {
  min-height: 36px;
  border-color: transparent;
  background: transparent;
  color: var(--flash-muted);
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.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-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-create-deck {
  width: min(calc(100% - 32px), 560px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: white;
  color: var(--flash-ink);
  box-shadow: 0 28px 90px rgba(18, 49, 39, 0.28);
}

.toefl-flash-v3-create-deck::backdrop {
  background: rgba(14, 31, 26, 0.58);
}

.toefl-flash-v3-create-deck form {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.toefl-flash-v3-create-deck header,
.toefl-flash-v3-create-deck footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toefl-flash-v3-create-deck h2 {
  margin: 0;
  font-size: 1.4rem;
}

.toefl-flash-v3-create-deck header > button {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--flash-mint-soft);
  cursor: pointer;
}

.toefl-flash-v3-create-deck header svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.toefl-flash-v3-create-deck label {
  display: grid;
  gap: 7px;
  color: var(--flash-ink);
  font-size: 0.85rem;
  font-weight: 800;
}

.toefl-flash-v3-create-deck label > span {
  color: var(--flash-muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.toefl-flash-v3-create-deck input,
.toefl-flash-v3-create-deck textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--flash-line);
  border-radius: 12px;
  background: #f8faf8;
  color: var(--flash-ink);
  resize: vertical;
}

.toefl-flash-v3-create-deck form > p {
  min-height: 20px;
  margin: 0;
  color: #8a352f;
  font-size: 0.82rem;
}

.toefl-flash-v3-create-deck footer {
  justify-content: flex-end;
}

.toefl-flash-v3-create-deck footer > button:first-child {
  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 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 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-decks-heading {
    flex-direction: column;
  }

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

  .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-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-usage {
    width: 100%;
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .toefl-flash-v3-usage > button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .toefl-flash-v3-usage.is-session {
    margin-left: 0;
  }

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

  .toefl-flash-v3-active-plan {
    padding: 15px;
  }

  .toefl-flash-v3-active-plan-facts {
    grid-template-columns: 1fr;
  }

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

  .toefl-flash-v3-deck-actions,
  .toefl-flash-v3-deck-action-primary,
  .toefl-flash-v3-deck-action-secondary,
  .toefl-flash-v3-import-menu-wrap {
    width: 100%;
  }

  .toefl-flash-v3-import-menu {
    right: auto;
    left: 0;
    width: 100%;
  }

  .toefl-flash-v3-deck-row {
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 12px;
    min-height: 80px;
    padding: 15px;
  }

  .toefl-flash-v3-deck-row-progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .toefl-flash-v3-deck-row > svg {
    grid-column: 2;
    grid-row: 1;
  }

  .toefl-flash-v3-create-deck form {
    padding: 20px;
  }

  .toefl-flash-v3-create-deck footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .toefl-flash-v3-create-deck footer > button {
    width: 100%;
  }

  .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-paywall {
    width: min(calc(100% - 16px), 590px);
    max-height: calc(100dvh - 16px);
    padding: 52px 20px 24px;
    overflow-y: auto;
    border-radius: 18px;
  }

  .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-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;
  }
}

/* Deck organization */
.toefl-flash-v3-header-library {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid var(--flash-line);
  border-radius: 12px;
  background: var(--flash-white);
  color: var(--flash-green-dark);
  font-weight: 800;
  text-decoration: none;
}

.toefl-flash-v3-header-library:hover { background: var(--flash-mint-soft); }
.toefl-flash-v3-header-library svg,
.toefl-flash-v3-organize-actions svg,
.toefl-flash-v3-manage-bar svg,
.toefl-flash-v3-row-actions svg,
.toefl-flash-v3-folder-toggle svg,
.toefl-flash-v3-move-options svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.toefl-flash-v3 .toefl-flash-v3-deck-action-primary { color: #fff; }

.toefl-flash-v3-organize-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toefl-flash-v3-organize-actions > a,
.toefl-flash-v3-organize-actions > button {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--flash-mint-soft);
  color: var(--flash-green-dark);
  cursor: pointer;
}

.toefl-flash-v3-organize-actions > :is(a, button):hover,
.toefl-flash-v3-organize-actions > .is-active {
  border-color: #b9ccc0;
  background: var(--flash-mint);
}

.toefl-flash-v3-manage-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--flash-mint-soft);
}

.toefl-flash-v3-manage-bar > span { margin-right: auto; font-size: .84rem; font-weight: 800; }
.toefl-flash-v3-manage-bar button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--flash-line);
  border-radius: 10px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.toefl-flash-v3-manage-bar .is-done { background: var(--flash-green); color: #fff; }

.toefl-flash-v3-deck-row-wrap {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  border-top: 1px solid var(--flash-line);
  background: #fff;
}
.toefl-flash-v3-deck-list > .toefl-flash-v3-deck-row-wrap:first-child,
.toefl-flash-v3-folder-content > .toefl-flash-v3-deck-row-wrap:first-child { border-top: 0; }
.toefl-flash-v3-deck-row-wrap.is-nested { padding-left: 28px; background: #fbfcfb; }
.toefl-flash-v3-deck-row-wrap.is-nested::before {
  position: absolute;
  left: 19px;
  width: 12px;
  height: 18px;
  border-bottom: 1px solid #b9ccc0;
  border-left: 1px solid #b9ccc0;
  content: '';
}
.toefl-flash-v3-deck-row-wrap.is-dragging { opacity: .42; }
.toefl-flash-v3-deck-row-wrap.is-drop-target { box-shadow: inset 0 3px 0 var(--flash-green); }
.toefl-flash-v3-deck-row-wrap > .toefl-flash-v3-deck-row { flex: 1 1 auto; }

.toefl-flash-v3-deck-select { display: inline-flex; padding-left: 16px; }
.toefl-flash-v3-deck-select input { width: 20px; height: 20px; accent-color: var(--flash-green); }
.toefl-flash-v3-deck-grip {
  display: grid;
  width: 28px;
  grid-template-columns: repeat(2, 4px);
  gap: 3px;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: grab;
}
.toefl-flash-v3-deck-grip span { width: 4px; height: 4px; border-radius: 50%; background: #91a39c; }

.toefl-flash-v3-row-actions {
  position: absolute;
  z-index: 3;
  right: 47px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--flash-mint-soft);
  box-shadow: 0 5px 20px rgba(23, 53, 45, .1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity .15s ease, transform .15s ease;
}
.toefl-flash-v3-deck-row-wrap:hover .toefl-flash-v3-row-actions,
.toefl-flash-v3-deck-row-wrap:focus-within .toefl-flash-v3-row-actions { opacity: 1; pointer-events: auto; transform: none; }
.toefl-flash-v3-row-actions button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.toefl-flash-v3-row-actions .is-danger { color: #ba3f4f; }
.toefl-flash-v3-deck-row-wrap:hover .toefl-flash-v3-deck-row-progress { opacity: .12; }

.toefl-flash-v3-folder { border-top: 10px solid #f5f7f5; background: #fff; }
.toefl-flash-v3-folder-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; background: #edf7fb; }
.toefl-flash-v3-folder-toggle {
  display: grid;
  width: 100%;
  min-height: 74px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 13px;
  padding: 12px 18px;
  border: 0;
  background: #edf7fb;
  color: var(--flash-green-dark);
  text-align: left;
  cursor: pointer;
}
.toefl-flash-v3-folder-toggle:hover { filter: brightness(.985); }
.toefl-flash-v3-folder-toggle:focus-visible { outline: 3px solid rgba(47, 124, 99, .28); outline-offset: -3px; }
.toefl-flash-v3-folder-emoji {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 0 0 1px rgba(23, 53, 45, .06);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 1.55rem;
}
.toefl-flash-v3-folder-name { overflow: hidden; font-size: 1rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.toefl-flash-v3-folder-count { color: var(--flash-muted); font-size: .78rem; font-weight: 750; }
.toefl-flash-v3-folder-chevron { transition: transform .16s ease; }
.toefl-flash-v3-folder-toggle[aria-expanded="true"] .toefl-flash-v3-folder-chevron { transform: rotate(90deg); }
.toefl-flash-v3-folder.is-lavender > .toefl-flash-v3-folder-header,.toefl-flash-v3-folder.is-lavender .toefl-flash-v3-folder-toggle { background: #f0effd; }
.toefl-flash-v3-folder.is-sand > .toefl-flash-v3-folder-header,.toefl-flash-v3-folder.is-sand .toefl-flash-v3-folder-toggle { background: #fff5d9; }
.toefl-flash-v3-folder.is-rose > .toefl-flash-v3-folder-header,.toefl-flash-v3-folder.is-rose .toefl-flash-v3-folder-toggle { background: #fdebed; }
.toefl-flash-v3-folder.is-lime > .toefl-flash-v3-folder-header,.toefl-flash-v3-folder.is-lime .toefl-flash-v3-folder-toggle { background: #effbdc; }
.toefl-flash-v3-folder-actions { display: flex; align-items: center; gap: 5px; padding-right: 14px; }
.toefl-flash-v3-folder-actions button { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.72); color: var(--flash-green-dark); cursor: pointer; }
.toefl-flash-v3-folder-actions button:hover { background: #fff; box-shadow: 0 4px 12px rgba(18,58,49,.12); }
.toefl-flash-v3-folder-actions button.is-danger { color: #b23b4d; }
.toefl-flash-v3-folder-actions svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.toefl-flash-v3-folder-content[hidden] { display: none; }
.toefl-flash-v3-folder-empty {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 16px 80px;
  border-top: 1px solid var(--flash-line);
  color: var(--flash-muted);
}
.toefl-flash-v3-folder-empty strong { color: var(--flash-green-dark); }

.toefl-flash-v3-folder-appearance > span { display: block; margin-bottom: 10px; font-size: .85rem; font-weight: 800; }
.toefl-flash-v3-folder-appearance > div { display: flex; align-items: center; gap: 14px; }
.toefl-flash-v3-folder-emoji-open {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--flash-line);
  border-radius: 14px;
  background: var(--flash-mint-soft);
  cursor: pointer;
}
.toefl-flash-v3-folder-emoji-open:hover { border-color: var(--flash-green); }
.toefl-flash-v3-folder-emoji-open > span:first-child { font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 1.45rem; }
.toefl-flash-v3-folder-colors { display: flex; gap: 12px; padding: 0; border: 0; }
.toefl-flash-v3-folder-colors label { display: block; }
.toefl-flash-v3-folder-colors input {
  width: 42px;
  height: 42px;
  margin: 0;
  border: 3px solid transparent;
  border-radius: 50%;
  appearance: none;
  cursor: pointer;
}
.toefl-flash-v3-folder-colors input:checked { border-color: var(--flash-green); box-shadow: inset 0 0 0 3px #fff; }
.toefl-flash-v3-folder-colors .is-sky input { background: #d9eff8; }
.toefl-flash-v3-folder-colors .is-lavender input { background: #dfdcfb; }
.toefl-flash-v3-folder-colors .is-sand input { background: #ffedb9; }
.toefl-flash-v3-folder-colors .is-rose input { background: #f8dadd; }
.toefl-flash-v3-folder-colors .is-lime input { background: #dff8b5; }

.toefl-flash-v3-folder-emoji-dialog {
  width: min(calc(100% - 32px), 570px);
  max-height: min(720px, calc(100vh - 40px));
  padding: 0 18px 20px;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  color: var(--flash-green-dark);
  box-shadow: 0 28px 80px rgba(7, 31, 23, .24);
}
.toefl-flash-v3-folder-emoji-dialog::backdrop { background: rgba(13, 35, 29, .62); }
.toefl-flash-v3-folder-emoji-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 2px 15px;
  border-bottom: 1px solid var(--flash-line);
}
.toefl-flash-v3-folder-emoji-dialog h2 { margin: 0; font-size: 1.15rem; }
.toefl-flash-v3-folder-emoji-dialog header button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--flash-mint-soft);
  cursor: pointer;
}
.toefl-flash-v3-folder-emoji-dialog header svg,
.toefl-flash-v3-folder-emoji-search svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}
.toefl-flash-v3-folder-emoji-search {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0;
  padding: 0 13px;
  border: 1px solid var(--flash-line);
  border-radius: 14px;
  background: #f5f7f5;
  color: var(--flash-muted);
}
.toefl-flash-v3-folder-emoji-search input {
  width: 100%;
  min-height: 46px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--flash-green-dark);
  font: inherit;
}
.toefl-flash-v3-folder-emoji-grid {
  display: grid;
  max-height: min(500px, calc(100vh - 210px));
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  overflow: auto;
  padding: 2px 3px 10px;
}
.toefl-flash-v3-folder-emoji-grid button {
  display: grid;
  aspect-ratio: 1;
  min-width: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 13px;
  background: #f7f8f7;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 1.65rem;
  cursor: pointer;
}
.toefl-flash-v3-folder-emoji-grid button:hover,
.toefl-flash-v3-folder-emoji-grid button[aria-pressed="true"] { border-color: var(--flash-green); background: var(--flash-mint); }
.toefl-flash-v3-folder-emoji-empty { padding: 28px 12px; color: var(--flash-muted); text-align: center; }

.toefl-flash-v3-folder-action-dialog { width: min(calc(100% - 32px), 600px); padding: 0; border: 0; border-radius: 24px; color: var(--flash-green-dark); box-shadow: 0 28px 80px rgba(7,31,23,.25); }
.toefl-flash-v3-folder-action-dialog::backdrop { background: rgba(13,35,29,.62); backdrop-filter: blur(3px); }
.toefl-flash-v3-folder-action-dialog>header { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--flash-line); }
.toefl-flash-v3-folder-action-dialog h2 { margin: 3px 0 0; font-size: 1.45rem; }
.toefl-flash-v3-folder-action-dialog>header>button { display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: var(--flash-mint-soft); }
.toefl-flash-v3-folder-action-dialog>header svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.toefl-flash-v3-folder-action-options { padding: 10px 0; }
.toefl-flash-v3-folder-action-options>button { display: grid; width: 100%; min-height: 78px; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 13px 24px; border: 0; border-bottom: 1px solid var(--flash-line); background: #fff; color: var(--flash-green-dark); text-align: left; cursor: pointer; }
.toefl-flash-v3-folder-action-options>button:hover:not(:disabled) { background: #f6faf8; }
.toefl-flash-v3-folder-action-options>button:disabled { opacity: .45; cursor: not-allowed; }
.toefl-flash-v3-folder-action-options>button>svg { width: 27px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.toefl-flash-v3-folder-action-options>button>span { display: grid; gap: 4px; }
.toefl-flash-v3-folder-action-options>button small { color: var(--flash-muted); font-size: .78rem; }
.toefl-flash-v3-folder-action-options>button>b { font-size: 1.5rem; color: #80958e; }
.toefl-flash-v3-folder-action-options>.toefl-flash-v3-folder-action-back { min-height: 48px; grid-template-columns: 1fr; color: var(--flash-green); font-weight: 800; }
.toefl-flash-v3-folder-action-dialog>p { min-height: 22px; margin: 0; padding: 0 24px 18px; color: var(--flash-muted); }

@media (max-width: 620px) {
  .toefl-flash-v3-folder-toggle { grid-template-columns: auto minmax(0, 1fr) auto; }
  .toefl-flash-v3-folder-count { display: none; }
  .toefl-flash-v3-folder-empty { padding: 16px 24px; }
  .toefl-flash-v3-folder-emoji-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .toefl-flash-v3-folder-header { grid-template-columns: 1fr; }
  .toefl-flash-v3-folder-actions { justify-content: flex-end; padding: 0 14px 10px; }
}

.toefl-flash-v3-move-dialog { width: min(calc(100% - 32px), 620px); }
.toefl-flash-v3-location-emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 1.15rem; }
.toefl-flash-v3-move-options { max-height: 52vh; overflow: auto; border: 1px solid var(--flash-line); border-radius: 14px; }
.toefl-flash-v3-move-options label {
  display: grid;
  grid-template-columns: 20px 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 13px;
  border-top: 1px solid var(--flash-line);
  cursor: pointer;
}
.toefl-flash-v3-move-options label:first-child { border-top: 0; }
.toefl-flash-v3-move-options label:has(input:checked) { background: var(--flash-mint-soft); }
.toefl-flash-v3-move-options input { width: 18px; height: 18px; accent-color: var(--flash-green); }
.toefl-flash-v3-move-options span { color: var(--flash-green); }
.toefl-flash-v3-confirm-dialog { text-align: center; }
.toefl-flash-v3-confirm-dialog header { justify-content: center; }
.toefl-flash-v3-confirm-dialog form > p { color: var(--flash-muted); }
.toefl-flash-v3-confirm-dialog .is-danger { border-color: #bd4050; background: #bd4050; color: #fff; }

@media (max-width: 780px) {
  .toefl-flash-v3-header { align-items: flex-start; flex-direction: column; }
  .toefl-flash-v3-deck-actions { justify-content: flex-start; }
  .toefl-flash-v3-organize-actions { width: 100%; }
  .toefl-flash-v3-deck-action-secondary,
  .toefl-flash-v3-deck-action-primary { width: auto; }
  .toefl-flash-v3-row-actions { right: 38px; }
  .toefl-flash-v3-deck-row-progress { display: none; }
  .toefl-flash-v3-deck-row { grid-template-columns: minmax(0, 1fr) 22px; }
  .toefl-flash-v3-manage-bar { align-items: stretch; flex-wrap: wrap; }
  .toefl-flash-v3-manage-bar > span { width: 100%; }
}

.toefl-flash-collection { width: min(calc(100% - 32px), 1120px); }
.toefl-flash-collection-breadcrumb { display: flex; align-items: center; gap: 7px; margin-bottom: 24px; color: var(--flash-muted); }
.toefl-flash-collection-breadcrumb > a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  border-radius: 50%;
  background: #fff;
  color: var(--flash-ink);
}
.toefl-flash-collection-breadcrumb ol { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.toefl-flash-collection-breadcrumb ol li { display: inline-flex; align-items: center; gap: 7px; }
.toefl-flash-collection-breadcrumb ol li + li::before { content: "/"; color: #91a099; font-weight: 500; }
.toefl-flash-collection-breadcrumb ol a { color: var(--flash-muted); text-decoration: none; text-underline-offset: 3px; }
.toefl-flash-collection-breadcrumb ol a:hover,
.toefl-flash-collection-breadcrumb ol a:focus-visible { color: var(--flash-ink); text-decoration: underline; }
.toefl-flash-collection-breadcrumb ol [aria-current="page"] { color: var(--flash-ink); font-weight: 800; }
.toefl-flash-collection-breadcrumb svg,
.toefl-flash-collection-card svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.toefl-flash-collection-header h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.toefl-flash-collection-header p { margin: 8px 0 22px; color: var(--flash-muted); }
.toefl-flash-collection-card { min-height: 420px; padding: 28px; border: 1px solid var(--flash-line); border-radius: 22px; background: #fff; box-shadow: var(--flash-shadow); }
.toefl-flash-collection-notice { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--flash-muted); }
#toefl-flash-collection-status { color: var(--flash-muted); font-size: .84rem; }
#toefl-flash-collection-list > article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: center; padding: 22px 12px; border-top: 1px solid var(--flash-line); }
#toefl-flash-collection-list h2 { margin: 0; font-size: 1.15rem; }
#toefl-flash-collection-list p { margin: 5px 0 0; color: var(--flash-muted); }
#toefl-flash-collection-list [data-status] { grid-column: 1 / -1; min-height: 0; color: #9e3543; }
.toefl-flash-collection-actions { display: flex; gap: 8px; }
.toefl-flash-collection-actions button { display: inline-flex; min-height: 40px; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--flash-line); border-radius: 10px; background: #fff; color: var(--flash-green-dark); font-weight: 800; cursor: pointer; }
.toefl-flash-collection-actions .is-danger { color: #b33b4a; }
.toefl-flash-collection-empty { padding: 80px 20px; text-align: center; }
.toefl-flash-collection-empty h2 { margin: 0; }
@media (max-width: 620px) {
  #toefl-flash-collection-list > article { grid-template-columns: 1fr; }
  .toefl-flash-collection-actions { margin-top: 8px; }
}

.toefl-flash-settings { width: min(calc(100% - 32px), 960px); }
.toefl-flash-settings > header { margin: 0 0 20px; }
.toefl-flash-settings > header h1 { margin: 0; font-size: 1.85rem; }
.toefl-flash-settings > header p { min-height: 20px; margin: 6px 0 0; color: var(--flash-muted); }
.toefl-flash-settings-list { display: grid; gap: 10px; }
.toefl-flash-settings-list > div { overflow: hidden; border: 1px solid var(--flash-line); border-radius: 18px; background: #fff; }
.toefl-flash-settings-list > button,
.toefl-flash-settings-list > div > button {
  display: grid;
  width: 100%;
  min-height: 70px;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid var(--flash-line);
  border-radius: 18px;
  background: #fff;
  color: var(--flash-ink);
  text-align: left;
  cursor: pointer;
}
.toefl-flash-settings-list > div > button { border: 0; border-radius: 0; }
.toefl-flash-settings-list > div > button + button { border-top: 1px solid var(--flash-line); }
.toefl-flash-settings-list button:hover { background: var(--flash-mint-soft); }
.toefl-flash-settings-icon { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; color: var(--flash-green-dark); }
.toefl-flash-settings-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.toefl-flash-settings-icon.is-multi svg { fill: var(--flash-green-dark); stroke-width: 1.3; }
.toefl-flash-settings-list button > strong { display: grid; gap: 3px; font-size: .98rem; }
.toefl-flash-settings-list button small { color: #5f7f2e; font-size: .78rem; font-weight: 700; }
.toefl-flash-settings-chevron { width: 20px; height: 20px; fill: none; stroke: #9aaba4; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toefl-flash-settings-list button b { padding: 3px 7px; border-radius: 7px; background: var(--flash-green); color: #fff; font-size: .7rem; }
.toefl-flash-settings-list button.is-danger { color: #b33b4a; }
.toefl-flash-settings-list button.is-danger .toefl-flash-settings-icon { color: #b33b4a; }
.toefl-flash-settings-choice { grid-template-columns: 22px 1fr !important; align-items: flex-start; padding: 12px; border: 1px solid var(--flash-line); border-radius: 12px; }
.toefl-flash-settings-choice input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--flash-green); }
.toefl-flash-settings-choice span { display: grid; gap: 3px; }
.toefl-flash-settings-choice small { color: var(--flash-muted); font-weight: 600; }
.toefl-flash-settings-destinations { display: grid; gap: 10px; }
.toefl-flash-settings-destinations button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--flash-line);
  border-radius: 13px;
  background: #fff;
  color: var(--flash-ink);
  text-align: left;
  cursor: pointer;
}
.toefl-flash-settings-destinations button:hover { border-color: var(--flash-green); background: #f3f8f5; }
.toefl-flash-settings-destinations small { color: var(--flash-muted); font-weight: 650; }
#toefl-flash-settings-dialog-body { display: grid; gap: 10px; }
#toefl-flash-settings-dialog-body > p { margin: 0; color: var(--flash-muted); line-height: 1.6; }
#toefl-flash-settings-save.is-danger { border-color: #b33b4a; background: #b33b4a; color: #fff; }
.toefl-flash-settings-pro {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: #7c3aed;
  font-size: .7rem;
  font-weight: 800;
}

.toefl-flash-settings-upgrade {
  display: inline-flex;
  justify-content: center;
  padding: .75rem 1rem;
  border-radius: 10px;
  color: #fff;
  background: #6d28d9;
  font-weight: 750;
  text-decoration: none;
}
