:root {
  --toefl-flash-ink: #17352b;
  --toefl-flash-muted: #637069;
  --toefl-flash-green: #2d5f4d;
  --toefl-flash-green-dark: #1f493a;
  --toefl-flash-lime: #c8ef65;
  --toefl-flash-mastered: #1598e6;
  --toefl-flash-frozen: #ff3d63;
  --toefl-flash-not-studied: #e9ecea;
  --toefl-flash-cream: #f7f5ef;
  --toefl-flash-line: #dfe5df;
  --toefl-flash-white: #fff;
}

.toefl-flash-library,
.toefl-flash-library * {
  box-sizing: border-box;
}

.toefl-flash-library {
  width: min(1180px, calc(100% - 40px));
  min-width: 0;
  margin: 0 auto;
  padding: 42px 0 88px;
  color: var(--toefl-flash-ink);
}

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

.toefl-flash-library-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.toefl-flash-library-header > div {
  min-width: 0;
  max-width: 720px;
}

.toefl-flash-library-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  color: var(--toefl-flash-green);
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
}

.toefl-flash-library-back svg,
.toefl-flash-library-card-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.toefl-flash-library-eyebrow,
.toefl-flash-library-quality {
  margin: 0 0 8px;
  color: var(--toefl-flash-green);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.toefl-flash-library-header h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.4rem);
  font-weight: 780;
  letter-spacing: -.055em;
  line-height: .98;
}

.toefl-flash-library-header p:not(.toefl-flash-library-eyebrow) {
  max-width: 650px;
  margin: 15px 0 0;
  color: var(--toefl-flash-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.toefl-flash-library-header nav {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--toefl-flash-line);
  border-radius: 14px;
  background: var(--toefl-flash-white);
}

.toefl-flash-library-header nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--toefl-flash-muted);
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none;
}

.toefl-flash-library-header nav a[aria-current="page"] {
  color: var(--toefl-flash-white);
  background: var(--toefl-flash-green);
}

.toefl-flash-library-search {
  max-width: 720px;
  margin-bottom: 22px;
}

.toefl-flash-library-create-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px 22px;
  border: 1px solid var(--toefl-flash-line);
  border-radius: 16px;
  background: var(--toefl-flash-cream);
}

.toefl-flash-library-create-row h2 {
  margin: 0;
  font-size: 1.25rem;
}

.toefl-flash-library-create-row > div:last-child {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.toefl-flash-library-create-row > div:last-child a {
  flex: 0 0 auto;
  padding: 10px 15px;
  border-radius: 10px;
  color: var(--toefl-flash-white);
  font-weight: 800;
  text-decoration: none;
  background: var(--toefl-flash-green);
}

.toefl-flash-deck-list-card a {
  color: var(--toefl-flash-green);
  font-weight: 750;
}

.toefl-flash-library-search label {
  display: block;
  margin-bottom: 9px;
  font-size: .82rem;
  font-weight: 800;
}

.toefl-flash-library-search > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 7px 7px 7px 16px;
  border: 1px solid var(--toefl-flash-line);
  border-radius: 16px;
  background: var(--toefl-flash-white);
  box-shadow: 0 8px 30px rgba(23, 53, 43, .05);
}

.toefl-flash-library-search svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #7d8b83;
  stroke-width: 2;
}

.toefl-flash-library-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--toefl-flash-ink);
  background: transparent;
  font: inherit;
}

.toefl-flash-library-search button,
.toefl-flash-library-empty button,
.toefl-flash-library-empty a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 11px;
  color: var(--toefl-flash-white);
  background: var(--toefl-flash-green);
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.toefl-flash-library-categories,
.toefl-flash-deck-controls > div {
  display: flex;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 2px 2px 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.toefl-flash-library-categories button,
.toefl-flash-deck-controls button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--toefl-flash-line);
  border-radius: 999px;
  color: var(--toefl-flash-muted);
  background: var(--toefl-flash-white);
  font: inherit;
  font-size: .82rem;
  font-weight: 750;
  cursor: pointer;
}

.toefl-flash-library-categories button.is-active,
.toefl-flash-deck-controls button.is-active {
  border-color: var(--toefl-flash-green);
  color: var(--toefl-flash-white);
  background: var(--toefl-flash-green);
}

.toefl-flash-library-state {
  min-height: 24px;
  margin: 8px 0 18px;
  color: var(--toefl-flash-muted);
  font-size: .88rem;
}

.toefl-flash-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.toefl-flash-library-card {
  display: flex;
  min-width: 0;
  min-height: 330px;
  padding: 22px;
  flex-direction: column;
  gap: 20px;
  border: 1px solid var(--toefl-flash-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 0, rgba(200, 239, 101, .18), transparent 36%),
    var(--toefl-flash-white);
  box-shadow: 0 10px 35px rgba(23, 53, 43, .045);
}

.toefl-flash-library-card-topline,
.toefl-flash-library-card-facts,
.toefl-flash-library-card-link,
.toefl-flash-deck-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toefl-flash-library-card-topline {
  justify-content: space-between;
  color: var(--toefl-flash-muted);
  font-size: .7rem;
  font-weight: 800;
}

.toefl-flash-library-card-topline > span:last-child,
.toefl-flash-deck-badges span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eff5f0;
}

.toefl-flash-library-card-topline .is-locked,
.toefl-flash-deck-badges .is-pro {
  color: #684c0d;
  background: #fff2bf;
}

.toefl-flash-library-card-topline svg,
.toefl-flash-deck-badges svg,
.toefl-flash-deck-preview-locked > svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.toefl-flash-library-card h2 {
  margin: 3px 0 10px;
  font-size: 1.38rem;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.toefl-flash-library-card h2 a {
  color: inherit;
  text-decoration: none;
}

.toefl-flash-library-card > div > p:not(.toefl-flash-library-quality) {
  margin: 0;
  color: var(--toefl-flash-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.toefl-flash-library-card-facts {
  align-items: stretch;
  margin-top: auto;
}

.toefl-flash-library-card-facts span {
  min-width: 0;
  color: var(--toefl-flash-muted);
  font-size: .67rem;
  line-height: 1.25;
}

.toefl-flash-library-card-facts strong {
  display: block;
  color: var(--toefl-flash-ink);
  font-size: .78rem;
}

.toefl-flash-library-card-progress > span,
.toefl-flash-deck-progress-track {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ece8;
}

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

.toefl-flash-library-card-progress small {
  display: block;
  margin-top: 5px;
  color: var(--toefl-flash-muted);
}

.toefl-flash-library-card-link {
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid var(--toefl-flash-line);
  color: var(--toefl-flash-green);
  font-size: .85rem;
  font-weight: 850;
  text-decoration: none;
}

.toefl-flash-library-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid var(--toefl-flash-line);
}

.toefl-flash-library-card-actions .toefl-flash-library-card-link,
.toefl-flash-library-card-actions button {
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--toefl-flash-line);
  border-radius: 11px;
  font: inherit;
  font-size: .8rem;
  font-weight: 850;
  cursor: pointer;
}

.toefl-flash-library-card-actions .toefl-flash-library-card-link {
  padding-top: 0;
}

.toefl-flash-library-card-actions button {
  border-color: var(--toefl-flash-green);
  color: var(--toefl-flash-white);
  background: var(--toefl-flash-green);
}

.toefl-flash-library-card-actions button:disabled {
  opacity: .6;
  cursor: wait;
}

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

.toefl-flash-library-pagination button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--toefl-flash-line);
  border-radius: 10px;
  color: var(--toefl-flash-green);
  background: var(--toefl-flash-white);
  font: inherit;
  font-size: .84rem;
  font-weight: 800;
  cursor: pointer;
}

.toefl-flash-library-pagination button:disabled {
  opacity: .45;
  cursor: default;
}

.toefl-flash-library-pagination span {
  color: var(--toefl-flash-muted);
  font-size: .82rem;
}

.toefl-flash-library-empty,
.toefl-flash-deck-preview-locked {
  width: 100%;
  padding: 36px 24px;
  border: 1px dashed #cbd5cc;
  border-radius: 18px;
  text-align: center;
  background: var(--toefl-flash-cream);
}

.toefl-flash-library-empty h2,
.toefl-flash-library-empty h3,
.toefl-flash-deck-preview-locked h3 {
  margin: 0 0 8px;
}

.toefl-flash-library-empty p,
.toefl-flash-deck-preview-locked p {
  margin: 0 0 18px;
  color: var(--toefl-flash-muted);
}

.toefl-flash-library-empty a + a,
.toefl-flash-library-empty button + a {
  margin-left: 8px;
}

.toefl-flash-deck-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 26px 34px;
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--toefl-flash-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 96% 0, rgba(200, 239, 101, .25), transparent 42%),
    var(--toefl-flash-white);
  box-shadow: 0 15px 45px rgba(23, 53, 43, .05);
}

.toefl-flash-deck-hero-main,
.toefl-flash-deck-facts,
.toefl-flash-deck-actions {
  min-width: 0;
}

.toefl-flash-deck-badges {
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--toefl-flash-green);
  font-size: .7rem;
  font-weight: 850;
}

.toefl-flash-deck-hero h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -.045em;
  line-height: 1.03;
}

.toefl-flash-deck-hero-main > p {
  max-width: 680px;
  margin: 14px 0;
  color: var(--toefl-flash-muted);
  line-height: 1.62;
}

.toefl-flash-deck-hero-main ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: #42554c;
  font-size: .9rem;
  line-height: 1.7;
}

.toefl-flash-deck-facts {
  display: grid;
  align-self: start;
  border: 1px solid var(--toefl-flash-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
}

.toefl-flash-deck-facts span {
  padding: 14px 16px;
  color: var(--toefl-flash-muted);
  font-size: .72rem;
}

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

.toefl-flash-deck-facts strong {
  display: block;
  color: var(--toefl-flash-ink);
  font-size: 1.05rem;
}

.toefl-flash-deck-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--toefl-flash-line);
}

.toefl-flash-deck-primary,
.toefl-flash-deck-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 13px;
  font: inherit;
  font-size: .9rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.toefl-flash-deck-primary {
  border: 1px solid var(--toefl-flash-green);
  color: var(--toefl-flash-white);
  background: var(--toefl-flash-green);
}

.toefl-flash-deck-secondary {
  border: 1px solid var(--toefl-flash-line);
  color: var(--toefl-flash-green);
  background: var(--toefl-flash-white);
}

.toefl-flash-deck-actions p {
  margin: 0;
  color: var(--toefl-flash-muted);
  font-size: .8rem;
}

.toefl-flash-deck-preview,
.toefl-flash-deck-progress,
.toefl-flash-deck-cards {
  min-width: 0;
  margin-top: 26px;
  padding: 28px;
  border: 1px solid var(--toefl-flash-line);
  border-radius: 22px;
  background: var(--toefl-flash-white);
}

.toefl-flash-deck-preview h2,
.toefl-flash-deck-progress h2,
.toefl-flash-deck-cards h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -.025em;
}

.toefl-flash-deck-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
  margin-top: 20px;
}

.toefl-flash-deck-preview-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--toefl-flash-line);
  border-radius: 16px;
  background: var(--toefl-flash-cream);
}

.toefl-flash-deck-preview-card h3,
.toefl-flash-deck-list-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.toefl-flash-deck-preview-card > div p,
.toefl-flash-card-term p {
  margin: 4px 0 0;
  color: var(--toefl-flash-green);
  font-size: .75rem;
  font-weight: 750;
}

.toefl-flash-deck-preview-card > p {
  margin: 16px 0 0;
  line-height: 1.55;
}

.toefl-flash-deck-preview-card blockquote {
  margin: 15px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--toefl-flash-lime);
  color: var(--toefl-flash-muted);
  font-size: .84rem;
  line-height: 1.5;
}

.toefl-flash-deck-preview-locked {
  grid-column: 1 / -1;
}

.toefl-flash-deck-preview-locked > svg {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
}

.toefl-flash-deck-progress-heading,
.toefl-flash-deck-cards-heading,
.toefl-flash-deck-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.toefl-flash-deck-progress-heading > strong {
  font-size: 1.35rem;
}

.toefl-flash-deck-progress-track {
  height: 10px;
  margin-top: 20px;
}

.toefl-flash-deck-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.toefl-flash-deck-progress-grid span {
  padding: 14px;
  border-radius: 13px;
  color: var(--toefl-flash-muted);
  background: var(--toefl-flash-cream);
  font-size: .75rem;
}

.toefl-flash-deck-progress-grid strong {
  display: block;
  color: var(--toefl-flash-ink);
  font-size: 1.2rem;
}

.toefl-flash-deck-controls {
  align-items: center;
  margin-top: 18px;
}

.toefl-flash-deck-controls > div {
  padding-bottom: 4px;
}

.toefl-flash-deck-controls > label {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: var(--toefl-flash-muted);
  font-size: .78rem;
  font-weight: 750;
}

.toefl-flash-deck-controls select {
  min-height: 38px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--toefl-flash-line);
  border-radius: 9px;
  color: var(--toefl-flash-ink);
  background: var(--toefl-flash-white);
}

.toefl-flash-deck-card-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.toefl-flash-deck-list-card {
  display: grid;
  grid-template-columns: auto minmax(150px, .7fr) minmax(0, 1.5fr) auto;
  align-items: center;
  gap: 20px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--toefl-flash-line);
  border-radius: 14px;
  background: var(--toefl-flash-white);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.toefl-flash-deck-list-card:hover,
.toefl-flash-deck-list-card:focus-within {
  border-color: #bfcfc5;
  box-shadow: 0 8px 26px rgba(23, 53, 43, .06);
}

.toefl-flash-deck-list-card.is-selected {
  border-color: var(--toefl-flash-green);
  background: #f3f8f4;
}

.toefl-flash-deck-list-card.is-frozen {
  border-color: #e1e4e1;
  background: #f7f7f6;
  box-shadow: none;
}

.toefl-flash-deck-list-card.is-frozen:hover,
.toefl-flash-deck-list-card.is-frozen:focus-within {
  border-color: #d4d8d5;
  background: #f4f5f4;
  box-shadow: none;
}

.toefl-flash-card-frozen-state {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--toefl-flash-frozen);
  font-size: .86rem;
  font-weight: 760;
}

.toefl-flash-card-frozen-state svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.toefl-flash-deck-list-card.is-frozen .toefl-flash-card-term h3 {
  color: #38413d;
}

.toefl-flash-deck-list-card.is-frozen .toefl-flash-card-term p,
.toefl-flash-deck-list-card.is-frozen .toefl-flash-card-definition {
  color: #949a97;
}

.toefl-flash-card-definition {
  min-width: 0;
  margin: 0;
  color: var(--toefl-flash-muted);
  font-size: .86rem;
  line-height: 1.5;
}

.toefl-flash-card-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
  position: relative;
}

.toefl-flash-card-meta > span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--toefl-flash-green);
  background: #edf4ef;
  font-size: .7rem;
  font-weight: 800;
}

.toefl-flash-card-meta > span[data-status='frozen'] {
  color: #a43d4b;
  background: #fae9ec;
}

.toefl-flash-deck-list-card small {
  color: var(--toefl-flash-muted);
  font-size: .68rem;
}

.toefl-flash-card-reversed {
  color: var(--toefl-flash-green) !important;
  font-weight: 750;
}

.toefl-flash-card-select {
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.toefl-flash-deck-card-list.is-selection-mode .toefl-flash-card-select,
.toefl-flash-deck-list-card.is-selected .toefl-flash-card-select {
  display: inline-flex;
}

.toefl-flash-card-select input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toefl-flash-card-select span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid #aebbb4;
  border-radius: 50%;
  color: transparent;
  background: #fff;
}

.toefl-flash-card-select input:checked + span {
  border-color: var(--toefl-flash-green);
  color: #fff;
  background: var(--toefl-flash-green);
}

.toefl-flash-card-select input:focus-visible + span {
  outline: 3px solid rgba(45, 95, 77, .22);
  outline-offset: 2px;
}

.toefl-flash-card-select svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.toefl-flash-card-menu-wrap {
  position: relative;
  margin-top: 3px;
}

.toefl-flash-card-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--toefl-flash-ink);
  background: transparent;
  cursor: pointer;
}

.toefl-flash-card-menu-toggle:hover,
.toefl-flash-card-menu-toggle[aria-expanded="true"] {
  background: #edf2ee;
}

.toefl-flash-card-menu-toggle svg,
.toefl-flash-card-menu button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.toefl-flash-card-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  width: 238px;
  overflow: hidden;
  border: 1px solid var(--toefl-flash-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(16, 39, 30, .2);
}

.toefl-flash-card-menu[hidden] {
  display: none;
}

.toefl-flash-card-menu button {
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 15px;
  border: 0;
  border-bottom: 1px solid #edf0ed;
  color: #273b33;
  background: #fff;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.toefl-flash-card-menu button:last-child {
  border-bottom: 0;
}

.toefl-flash-card-menu button:hover,
.toefl-flash-card-menu button:focus-visible {
  background: #f4f7f4;
  outline: 0;
}

.toefl-flash-card-menu button.is-danger {
  color: #c73545;
}

.toefl-flash-card-selection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 11px 14px;
  border: 1px solid #b9cfc1;
  border-radius: 12px;
  background: #edf4ef;
  font-size: .82rem;
}

.toefl-flash-card-selection-toolbar button {
  border: 0;
  color: var(--toefl-flash-green);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.toefl-flash-card-selection-toolbar > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toefl-flash-card-selection-toolbar button {
  padding: 7px 9px;
  border-radius: 8px;
}

.toefl-flash-card-selection-toolbar button:hover,
.toefl-flash-card-selection-toolbar button:focus-visible {
  background: rgba(255, 255, 255, .75);
  outline: 0;
}

.toefl-flash-card-selection-toolbar button.is-danger {
  color: #c73545;
}

.toefl-flash-card-move-dialog form,
.toefl-flash-card-delete-dialog > div {
  padding: 22px 26px 26px;
}

.toefl-flash-card-move-dialog form > p:first-child,
.toefl-flash-card-delete-dialog > div > p:first-child {
  margin: 0 0 18px;
  color: var(--toefl-flash-muted);
  line-height: 1.55;
}

.toefl-flash-card-move-dialog label {
  display: block;
  margin-bottom: 8px;
  font-size: .78rem;
  font-weight: 800;
}

.toefl-flash-card-move-dialog select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--toefl-flash-line);
  border-radius: 11px;
  color: var(--toefl-flash-ink);
  background: #fff;
  font: inherit;
}

.toefl-flash-card-move-dialog form > button,
.toefl-flash-card-delete-dialog footer button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--toefl-flash-green);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.toefl-flash-card-move-dialog form > button {
  width: 100%;
}

.toefl-flash-card-move-dialog form > button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.toefl-flash-card-action-status {
  min-height: 20px;
  margin: 10px 0;
  color: #a12b38;
  font-size: .78rem;
}

.toefl-flash-card-delete-dialog footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.toefl-flash-card-delete-dialog footer button:first-child {
  color: var(--toefl-flash-ink);
  background: #edf0ed;
}

.toefl-flash-card-delete-dialog footer button.is-danger {
  background: #d53c4d;
}

.toefl-flash-deck-hero.is-workspace {
  grid-template-columns: minmax(0, 1fr);
  padding: 24px 28px;
  background: var(--toefl-flash-white);
}

.toefl-flash-deck-hero.is-workspace .toefl-flash-deck-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.toefl-flash-deck-hero.is-workspace .toefl-flash-deck-badges span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf4ef;
}

.toefl-flash-deck-hero.is-workspace h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.toefl-flash-deck-hero.is-workspace .toefl-flash-deck-actions:empty {
  display: none;
}

.toefl-flash-deck-algorithm-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.toefl-flash-deck-algorithm-row button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0;
  border: 0;
  color: var(--toefl-flash-green);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.toefl-flash-deck-algorithm-row button svg,
.toefl-flash-deck-card-heading-actions svg,
.toefl-flash-deck-status-dialog header svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.toefl-flash-deck-algorithm-row > span {
  color: var(--toefl-flash-muted);
  font-size: .76rem;
}

.toefl-flash-deck-algorithm-row > span strong {
  display: block;
  color: var(--toefl-flash-ink);
  font-size: 1.2rem;
}

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

.toefl-flash-deck-today > strong {
  display: block;
  font-size: clamp(4rem, 10vw, 6rem);
  font-weight: 760;
  line-height: .95;
  letter-spacing: -.07em;
}

.toefl-flash-deck-today h2 {
  margin-top: 8px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.toefl-flash-deck-today p {
  margin: 10px auto 0;
  color: var(--toefl-flash-muted);
  font-size: .85rem;
  line-height: 1.5;
}

.toefl-flash-deck-progress .toefl-flash-deck-progress-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.toefl-flash-deck-progress .toefl-flash-deck-progress-track {
  max-width: 700px;
  margin-right: auto;
  margin-left: auto;
}

.toefl-flash-deck-study {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  max-width: 700px;
  margin: 22px auto 0;
  border-radius: 13px;
  background: var(--toefl-flash-green);
  color: white;
  font-weight: 850;
  text-decoration: none;
}

.toefl-flash-deck-study:hover {
  background: #205a42;
}

.toefl-flash-deck-card-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toefl-flash-deck-card-heading-actions button {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--toefl-flash-line);
  border-radius: 50%;
  background: white;
  color: var(--toefl-flash-muted);
  cursor: pointer;
}

.toefl-flash-deck-card-heading-actions a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 11px;
  background: var(--toefl-flash-green);
  color: white;
  font-size: .82rem;
  font-weight: 850;
  text-decoration: none;
}

.toefl-flash-deck-status-dialog {
  width: min(calc(100% - 32px), 620px);
  max-height: calc(100dvh - 40px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 22px;
  background: white;
  color: var(--toefl-flash-ink);
  box-shadow: 0 28px 90px rgba(18, 49, 39, .3);
}

.toefl-flash-deck-status-dialog::backdrop {
  background: rgba(14, 31, 26, .6);
}

.toefl-flash-deck-status-dialog header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--toefl-flash-line);
}

.toefl-flash-deck-status-dialog h2 {
  margin: 0;
}

.toefl-flash-deck-status-dialog 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(--toefl-flash-cream);
  cursor: pointer;
}

.toefl-flash-deck-status-dialog dl {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 10px 26px 24px;
}

.toefl-flash-deck-status-dialog dl > div {
  padding: 17px 0;
}

.toefl-flash-deck-status-dialog dl > div + div {
  border-top: 1px solid var(--toefl-flash-line);
}

.toefl-flash-deck-status-dialog dt {
  font-weight: 850;
}

.toefl-flash-deck-status-dialog dd {
  margin: 4px 0 0;
  color: var(--toefl-flash-muted);
  line-height: 1.45;
}

.toefl-flash-library :is(a, button, input, select):focus,
.toefl-flash-library :is(a, button, input, select):focus-visible {
  outline: 2px solid var(--toefl-flash-lime);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .toefl-flash-library-card {
    transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
  }

  .toefl-flash-library-card:hover {
    transform: translateY(-3px);
    border-color: #b8cabd;
    box-shadow: 0 16px 42px rgba(23, 53, 43, .09);
  }
}

/* Deck workspace controls */
.toefl-flash-library[data-view='deck_detail'] .toefl-flash-library-header {
  align-items: flex-start;
  margin-bottom: 18px;
}
.toefl-flash-library[data-view='deck_detail'] .toefl-flash-library-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.08;
}
.toefl-flash-deck-top-actions { display: flex; flex: 0 0 auto; gap: 7px; padding-top: 42px; }
.toefl-flash-deck-top-actions :is(a, button) {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--toefl-flash-white);
  color: var(--toefl-flash-ink);
  cursor: pointer;
}
.toefl-flash-deck-top-actions :is(a, button):hover { border-color: var(--toefl-flash-line); background: #edf4ef; }
.toefl-flash-deck-top-actions svg,
.toefl-flash-deck-card-search svg,
.toefl-flash-deck-sort-label svg,
.toefl-flash-deck-filter-wrap svg,
.toefl-flash-deck-progress-grid svg,
.toefl-flash-deck-status-dialog dl svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.toefl-flash-deck-progress-grid span { display: grid; grid-template-columns: 28px 1fr; align-items: center; }
.toefl-flash-deck-progress-grid strong { grid-column: 2; }
.toefl-flash-deck-progress-grid svg { grid-row: 1 / span 2; }
.toefl-flash-deck-progress-grid .is-new { color: #82938d; }
.toefl-flash-deck-progress-grid .is-learning { color: #91bf20; }
.toefl-flash-deck-progress-grid .is-mastered { color: var(--toefl-flash-mastered); }

.toefl-flash-deck-list-progress {
  display: flex;
  gap: 4px;
  height: 10px;
  margin-top: 20px;
  overflow: visible;
  background: transparent;
}
.toefl-flash-deck-list-progress span {
  flex: 0 1 0;
  min-width: 8px;
  border-radius: 999px;
  transition: flex-grow .24s ease, opacity .18s ease;
}
#toefl-flash-deck-list-progress-new { background: var(--toefl-flash-not-studied); }
#toefl-flash-deck-list-progress-learning { background: var(--toefl-flash-lime); }
#toefl-flash-deck-list-progress-mastered { background: var(--toefl-flash-mastered); }
#toefl-flash-deck-list-progress-frozen { background: var(--toefl-flash-frozen); }
.toefl-flash-deck-list-legend { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 11px; color: var(--toefl-flash-muted); font-size: .78rem; }
.toefl-flash-deck-list-legend span { display: inline-flex; align-items: center; gap: 5px; }
.toefl-flash-deck-list-legend i { width: 10px; height: 10px; border-radius: 4px; background: var(--toefl-flash-not-studied); }
.toefl-flash-deck-list-legend i.is-learning { background: var(--toefl-flash-lime); }
.toefl-flash-deck-list-legend i.is-mastered { background: var(--toefl-flash-mastered); }
.toefl-flash-deck-list-legend i.is-frozen { background: var(--toefl-flash-frozen); }

.toefl-flash-deck-card-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 0 8px 0 14px;
  border: 1px solid var(--toefl-flash-line);
  border-radius: 999px;
  background: #f6f8f6;
  color: #7c8b84;
}
.toefl-flash-deck-card-search input { min-width: 0; min-height: 46px; border: 0; outline: 0; background: transparent; color: var(--toefl-flash-ink); }
.toefl-flash-deck-card-search button { min-height: 34px; padding: 6px 13px; border: 0; border-radius: 999px; background: var(--toefl-flash-green); color: #fff; font-weight: 800; cursor: pointer; }

.toefl-flash-deck-controls { position: relative; align-items: center; }
.toefl-flash-deck-sort-label { margin-right: auto; }
.toefl-flash-deck-sort-label svg { color: #84928c; }
.toefl-flash-deck-filter-wrap { position: relative; padding: 0 !important; }
.toefl-flash-deck-filter-wrap > button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--toefl-flash-line);
  border-radius: 999px;
  background: #f6f7f6;
  font-weight: 800;
  cursor: pointer;
}
.toefl-flash-deck-filter-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 48px));
  padding: 20px;
  border: 1px solid var(--toefl-flash-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(23, 53, 43, .2);
}
.toefl-flash-deck-filter-popover header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toefl-flash-deck-filter-popover h3,
.toefl-flash-deck-filter-popover p { margin: 0; }
.toefl-flash-deck-filter-popover p { margin-bottom: 8px; color: var(--toefl-flash-muted); font-size: .8rem; font-weight: 800; }
.toefl-flash-deck-filter-popover header button { min-height: 34px; padding: 6px 10px; border: 0; border-radius: 999px; background: #edf0ed; cursor: pointer; }
.toefl-flash-deck-filter-popover .toefl-flash-deck-filter-options { display: grid; gap: 8px; padding: 0; }
.toefl-flash-deck-filter-popover .toefl-flash-deck-filter-options + p { margin-top: 16px; }
.toefl-flash-deck-filter-popover .toefl-flash-deck-filter-options button { min-height: 46px; padding: 10px 13px; border: 1px solid var(--toefl-flash-line); border-radius: 11px; background: #fff; text-align: left; }
.toefl-flash-deck-filter-popover .toefl-flash-deck-filter-options button.is-active { border-color: var(--toefl-flash-green); background: #edf4ef; color: var(--toefl-flash-green); }

.toefl-flash-deck-card-heading-actions a { min-height: 44px; padding: 0 18px; }
.toefl-flash-deck-status-dialog dl > div { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 12px; }
.toefl-flash-deck-status-dialog dl svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--toefl-flash-cream); }
.toefl-flash-deck-status-dialog dl .is-new { color: #84928c; }
.toefl-flash-deck-status-dialog dl .is-learning { color: #58a843; }
.toefl-flash-deck-status-dialog dl .is-mastered { color: #2e87bb; }
.toefl-flash-deck-status-dialog dl .is-frozen { color: #bb5260; }
.toefl-flash-deck-tool-dialog > p { margin: 0; padding: 24px 26px 30px; color: var(--toefl-flash-muted); line-height: 1.6; }

@media (max-width: 680px) {
  .toefl-flash-deck-top-actions { padding-top: 0; }
  .toefl-flash-library[data-view='deck_detail'] .toefl-flash-library-header { flex-direction: column; }
  .toefl-flash-deck-card-search { grid-template-columns: 22px minmax(0, 1fr); padding-right: 14px; }
  .toefl-flash-deck-card-search button { grid-column: 1 / -1; margin: 0 -6px 8px; }
  .toefl-flash-deck-list-legend { gap: 8px; }
}

@media (max-width: 920px) {
  .toefl-flash-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toefl-flash-deck-hero {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .toefl-flash-deck-list-card {
    grid-template-columns: auto minmax(130px, .7fr) minmax(0, 1.4fr);
  }

  .toefl-flash-card-meta {
    grid-column: 2 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 680px) {
  .toefl-flash-library {
    width: min(100% - 28px, 1180px);
    padding-top: 28px;
  }

  .toefl-flash-library-header {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }

  .toefl-flash-library-header nav {
    align-self: flex-start;
    flex-wrap: wrap;
  }

  .toefl-flash-library-create-row {
    align-items: stretch;
    flex-direction: column;
  }

  .toefl-flash-library-create-row > div:last-child,
  .toefl-flash-library-create-row > div:last-child a {
    width: 100%;
    text-align: center;
  }

  .toefl-flash-library-grid,
  .toefl-flash-deck-preview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .toefl-flash-library-card {
    min-height: 0;
  }

  .toefl-flash-deck-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
  }

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

  .toefl-flash-deck-primary,
  .toefl-flash-deck-secondary {
    width: 100%;
  }

  .toefl-flash-deck-preview,
  .toefl-flash-deck-progress,
  .toefl-flash-deck-cards {
    padding: 20px;
  }

  .toefl-flash-deck-progress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toefl-flash-deck-progress .toefl-flash-deck-progress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toefl-flash-deck-progress .toefl-flash-deck-progress-grid > span:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 5px);
    justify-self: center;
  }

  .toefl-flash-deck-algorithm-row {
    align-items: stretch;
    flex-direction: column;
  }

  .toefl-flash-deck-algorithm-row > span {
    align-self: flex-start;
  }

  .toefl-flash-deck-cards-heading,
  .toefl-flash-deck-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .toefl-flash-deck-card-heading-actions,
  .toefl-flash-deck-card-heading-actions a {
    width: 100%;
  }

  .toefl-flash-deck-card-heading-actions button {
    flex: 0 0 40px;
  }

  .toefl-flash-deck-controls > label {
    justify-content: space-between;
  }

  .toefl-flash-deck-list-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
  }

  .toefl-flash-card-term {
    grid-column: 2;
  }

  .toefl-flash-card-definition {
    grid-column: 2 / -1;
  }

  .toefl-flash-card-meta {
    grid-column: 3;
    grid-row: 1;
    display: grid;
    justify-items: end;
  }

  .toefl-flash-deck-list-card.is-frozen .toefl-flash-card-meta {
    grid-row: 2;
  }

  .toefl-flash-card-meta > span,
  .toefl-flash-card-meta > small {
    display: none;
  }

  .toefl-flash-card-menu {
    position: fixed;
    top: auto;
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
  }

  .toefl-flash-deck-status-dialog header,
  .toefl-flash-deck-status-dialog dl {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 420px) {
  .toefl-flash-library {
    width: calc(100% - 24px);
    overflow-x: clip;
  }

  .toefl-flash-library-header h1 {
    font-size: 2.15rem;
  }

  .toefl-flash-library-header nav {
    width: 100%;
  }

  .toefl-flash-library-header nav a {
    flex: 1 1 0;
    text-align: center;
  }

  .toefl-flash-library-search > div {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .toefl-flash-library-search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .toefl-flash-library-card,
  .toefl-flash-deck-hero,
  .toefl-flash-deck-preview,
  .toefl-flash-deck-progress,
  .toefl-flash-deck-cards {
    border-radius: 18px;
  }

  .toefl-flash-library-card-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .toefl-flash-library-empty a,
  .toefl-flash-library-empty button {
    width: 100%;
  }

  .toefl-flash-library-empty a + a,
  .toefl-flash-library-empty button + a {
    margin: 8px 0 0;
  }

  .toefl-flash-deck-progress .toefl-flash-deck-progress-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .toefl-flash-deck-progress .toefl-flash-deck-progress-grid > span:last-child {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toefl-flash-library *,
  .toefl-flash-library *::before,
  .toefl-flash-library *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.toefl-flash-deck-tool-dialog{width:min(calc(100% - 30px),720px)}.toefl-flash-deck-tool-dialog>div{padding:0 22px 24px}.toefl-flash-embed-off{text-align:center;padding:16px 0 2px}.toefl-flash-embed-off>span{display:grid;place-items:center;width:64px;height:64px;margin:0 auto;border-radius:20px;background:#eef5f1;color:#397860}.toefl-flash-embed-off svg{width:32px;fill:none;stroke:currentColor;stroke-width:1.8}.toefl-flash-embed-off h3{font-size:1.55rem;margin:18px 0 6px}.toefl-flash-embed-off p{color:#72867f}.toefl-flash-embed-off>div{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:24px}.toefl-flash-embed-off button,.toefl-flash-embed-copy{border:0;border-radius:14px;padding:14px;font-weight:800}.toefl-flash-embed-off button:first-child{background:#edf1ef;color:#365e52}.toefl-flash-embed-off button:last-child,.toefl-flash-embed-copy{background:#307a62;color:#fff}.toefl-flash-embed-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#edf1ef;border-radius:13px}.toefl-flash-embed-tabs button{border:0;border-radius:10px;padding:11px;background:transparent;color:#657a74;font-weight:800}.toefl-flash-embed-tabs button.is-active{background:#fff;color:#163f35;box-shadow:0 3px 10px rgba(18,58,49,.08)}.toefl-flash-embed-settings{border:1px solid #dce6e2;border-radius:16px;overflow:hidden}.toefl-flash-embed-settings label{display:flex;justify-content:space-between;align-items:center;padding:15px;border-bottom:1px solid #e3ebe8}.toefl-flash-embed-settings label:last-child{border-bottom:0}.toefl-flash-embed-settings input{width:46px;height:25px;accent-color:#307a62}.toefl-flash-embed-code{display:grid;gap:8px;margin-top:16px;font-weight:800}.toefl-flash-embed-code textarea{min-height:94px;border:1px solid #dce6e2;border-radius:13px;padding:11px;resize:none;color:#60756f;background:#f7f9f8}.toefl-flash-embed-copy{width:100%;margin-top:16px}.toefl-flash-embed-preview{height:480px;margin-top:14px;border:1px solid #dce6e2;border-radius:16px;overflow:hidden;background:#f5f8f7}.toefl-flash-embed-preview iframe{width:100%;height:100%;border:0}@media(max-width:560px){.toefl-flash-embed-off>div{grid-template-columns:1fr}.toefl-flash-embed-preview{height:430px}}

.toefl-flash-deck-cards { padding-bottom: 32px; }
.toefl-flash-deck-sticky-add {
  position: sticky;
  z-index: 8;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  margin: 28px 0 4px;
  pointer-events: none;
}
.toefl-flash-deck-sticky-add[hidden] { display: none; }
.toefl-flash-deck-sticky-add button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--toefl-flash-green);
  color: #fff;
  box-shadow: 0 12px 30px rgba(29, 86, 67, .28);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  pointer-events: auto;
}
.toefl-flash-deck-sticky-add button:focus-visible { outline: 3px solid rgba(47, 111, 88, .38); outline-offset: 4px; }

.toefl-flash-deck-empty-state {
  display: grid;
  min-height: calc(100dvh - 260px);
  place-items: center;
  padding: 48px 20px 140px;
}
.toefl-flash-deck-empty-state .toefl-flash-empty-deck {
  width: min(100%, 430px);
  padding: 0;
  border: 0;
  background: transparent;
}
.toefl-flash-empty-deck-illustration {
  width: 62px;
  margin-bottom: 14px;
  fill: none;
  stroke: #85918c;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}
.toefl-flash-deck-empty-state .toefl-flash-empty-deck h3 {
  margin-bottom: 26px;
  color: var(--toefl-flash-muted);
  font-size: 1.15rem;
  font-weight: 750;
}
.toefl-flash-empty-deck-actions { display: grid; gap: 12px; margin-top: 0; }
.toefl-flash-library-empty .toefl-flash-empty-deck-actions button { margin: 0; }
.toefl-flash-deck-empty-state .toefl-flash-empty-deck-actions button {
  width: 100%;
  min-height: 58px;
  gap: 10px;
  border: 1px solid var(--toefl-flash-line);
  border-radius: 999px;
  background: var(--toefl-flash-white);
  color: var(--toefl-flash-ink);
  font-size: 1rem;
}
.toefl-flash-deck-empty-state .toefl-flash-empty-deck-actions button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.toefl-flash-empty-deck-actions .is-primary { border-color: var(--toefl-flash-green); background: var(--toefl-flash-green); color: #fff; }
.toefl-flash-empty-deck-actions .is-petra { border-color: #91b83e; background: #f7ffd9; color: #3f641f; }
.toefl-flash-deck-empty-state .toefl-flash-empty-deck-actions .is-primary {
  border-color: var(--toefl-flash-green);
  background: var(--toefl-flash-green);
  color: #fff;
}
.toefl-flash-deck-empty-state .toefl-flash-empty-deck-actions .is-petra {
  border-color: #91b83e;
  background: #f7ffd9;
  color: #3f641f;
}

.toefl-flash-library[data-empty-deck='true'] :is(
  #toefl-flash-deck-progress,
  #toefl-flash-deck-activity,
  #toefl-flash-deck-cards
) {
  display: none !important;
}

.toefl-flash-destination-choice { display: grid; gap: 10px; }
.toefl-flash-destination-choice > p { margin: 0 0 8px; color: var(--toefl-flash-muted); line-height: 1.55; }
.toefl-flash-destination-choice > button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--toefl-flash-line);
  border-radius: 13px;
  background: #fff;
  color: var(--toefl-flash-ink);
  text-align: left;
  cursor: pointer;
}
.toefl-flash-destination-choice > button:hover { border-color: var(--toefl-flash-green); background: #f2f8f4; }
.toefl-flash-destination-choice > button.is-primary { border-color: var(--toefl-flash-green); background: var(--toefl-flash-green); color: #fff; text-align: center; }
.toefl-flash-destination-choice small { color: var(--toefl-flash-muted); font-weight: 650; }
.toefl-flash-destination-choice label { display: grid; gap: 7px; font-weight: 800; }
.toefl-flash-destination-choice input { min-height: 48px; padding: 10px 12px; border: 1px solid var(--toefl-flash-line); border-radius: 11px; font: inherit; }
.toefl-flash-destination-status { min-height: 22px; color: #8a352f !important; }

@media (max-width: 680px) {
  .toefl-flash-deck-cards { padding-bottom: 92px; }
  .toefl-flash-deck-sticky-add { bottom: max(12px, env(safe-area-inset-bottom)); }
  .toefl-flash-deck-sticky-add button { width: min(100%, 320px); justify-content: center; }
  .toefl-flash-deck-empty-state { min-height: calc(100dvh - 230px); padding: 36px 0 100px; }
  .toefl-flash-library-empty .toefl-flash-empty-deck-actions button { width: 100%; }
}
.toefl-flash-card-menu button.is-pro-locked em {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  color: #fff;
  background: #7c3aed;
  font-size: .68rem;
  font-style: normal;
}

.toefl-flash-progress-upgrade {
  display: grid;
  gap: .9rem;
}

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