.fgf-app .fgf-label-row strong {
  color: #17212b !important;
  opacity: 1 !important;
}

.fgf-app .fgf-sections label {
  background: #fff !important;
  color: #17212b !important;
}

.fgf-app .fgf-sections label:has(input:checked) {
  background: #f1f6ff !important;
  border-color: #4f86ef !important;
  color: #17212b !important;
}

.fgf-app .fgf-sections label span {
  color: #17212b !important;
  font-weight: 650 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.fgf-app .fgf-sections label input {
  accent-color: #1769d2;
}

.fgf-app .fgf-sections small {
  background: #e1e8ef !important;
  color: #24384a !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.fgf-app .fgf-anamnesis-heading {
  border-top: 2px solid #dce4ec;
  padding-top: 18px;
}

.fgf-app .fgf-anamnesis-list {
  color: #17212b !important;
  margin: 8px 0 0;
  padding-left: 22px;
}

.fgf-app .fgf-anamnesis-list li {
  color: #17212b !important;
  line-height: 1.55;
  margin: 0 0 9px;
  opacity: 1 !important;
}

.fgf-app .fgf-more-wrap {
  margin-top: 14px;
  text-align: center;
}

.fgf-app #fgf-more-info {
  background: #eef4ff;
  border: 1px solid #9ab8f2;
  border-radius: 10px;
  color: #174b9b;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 10px 18px;
}

.fgf-app #fgf-more-info:disabled {
  cursor: wait;
  opacity: 0.65;
}

.fgf-app #fgf-more-result {
  background: #f7f9fc;
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  color: #17212b !important;
  line-height: 1.6;
  margin-top: 12px;
  padding: 16px 18px;
  text-align: left;
  white-space: pre-line;
}

.fgf-app #fgf-more-result.is-error {
  background: #fff3f3;
  border-color: #e5aaaa;
  color: #8a2424 !important;
}

.fgf-app .fgf-login-required,
.fgf-app .fgf-repeat-intro,
.fgf-app .fgf-repeat-panel,
.fgf-app .fgf-repeat-player {
  background: #fff;
  border: 1px solid #dce4ec;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(25, 53, 77, 0.07);
  margin-top: 22px;
  padding: 28px;
}

.fgf-app .fgf-repeat-intro {
  background: linear-gradient(135deg, #eef5ff 0%, #f7fbff 100%);
  border-color: #8fb5f4;
  border-left: 5px solid #276ef1;
  box-shadow: 0 10px 32px rgba(39, 110, 241, 0.12);
}

.fgf-app .fgf-repeat-intro p {
  color: #31485d !important;
  line-height: 1.65;
  margin-bottom: 0;
}

.fgf-app .fgf-login-required h3,
.fgf-app .fgf-repeat-intro h3,
.fgf-app .fgf-repeat-panel h3 {
  color: #17212b !important;
  margin-top: 0;
}

.fgf-app .fgf-login-required .fgf-primary {
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
}

.fgf-app .fgf-tabs {
  background: #fff;
  border: 1px solid #dce4ec;
  border-radius: 14px;
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
  padding: 5px;
}

.fgf-app .fgf-tabs button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #34485a;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 700;
  gap: 7px;
  justify-content: center;
  min-height: 46px;
  padding: 8px 10px;
}

.fgf-app .fgf-tabs button.is-active {
  background: #12263a;
  color: #fff;
}

.fgf-app .fgf-tabs button b {
  background: #e7edf3;
  border-radius: 12px;
  color: #253849;
  font-size: 12px;
  min-width: 23px;
  padding: 2px 6px;
}

.fgf-app .fgf-tabs button:not([data-fgf-tab="flashcards"]) {
  gap: 9px;
}

.fgf-app .fgf-learning-mode {
  background: #eaf0f5;
  border-radius: 14px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  padding: 6px;
}

.fgf-app .fgf-anki-setup select { margin-bottom: 16px; }
.fgf-app .fgf-card { max-width: 100%; transition: height 0.2s ease; }
.fgf-app .fgf-card { position: relative; }
.fgf-app .fgf-card-face { max-width: 100%; overflow: visible; overflow-wrap: anywhere; }
.fgf-app .fgf-anki-card { min-height: 380px; }
.fgf-app .fgf-anki-card .fgf-card-face { align-items: stretch; justify-content: flex-start; overflow: hidden; padding: 24px clamp(18px, 4vw, 34px) 18px; text-align: left; }
.fgf-app .fgf-anki-card .fgf-card-face > div { font-size: clamp(15px, 1.65vw, 20px); line-height: 1.42; width: 100%; }
.fgf-app .fgf-anki-card .fgf-card-face > div * { font-size: inherit; line-height: inherit; max-width: 100%; overflow-wrap: anywhere; }
.fgf-app .fgf-anki-card .fgf-card-face > small { align-self: center; }
.fgf-app .fgf-anki-card .fgf-card-face > em { align-self: center; bottom: auto; flex: 0 0 auto; margin-top: 8px; padding-top: 0; position: static; text-align: center; }
.fgf-app .fgf-anki-page-content { flex: 1 1 auto; margin: 12px 0 4px !important; min-height: 0; overflow: hidden; }
.fgf-app .fgf-anki-page-content > :first-child { margin-top: 0 !important; }
.fgf-app .fgf-anki-page-content > :last-child { margin-bottom: 0 !important; }

body.fgf-flashcards-page .fswg-bar,
body.fgf-flashcards-page .fswg-popup,
body.fgf-flashcards-page .fswg-full-progress {
  display: none !important;
}

.fgf-app .fgf-translation-tools {
  direction: ltr;
  font-size: 14px;
  position: absolute;
  right: 12px;
  text-align: left;
  top: 12px;
  z-index: 20;
}

.fgf-app .fgf-translation-toggle {
  align-items: center;
  background: #155fc7 !important;
  border: 2px solid #ffffff !important;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(18, 38, 58, 0.15);
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  height: 42px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 42px;
}

.fgf-app .fgf-translation-toggle svg {
  display: block;
  fill: none;
  height: 23px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 23px;
}

.fgf-app .fgf-language-icon {
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.4 2.5 3.7 5.5 3.7 9S14.4 18.5 12 21M12 3C9.6 5.5 8.3 8.5 8.3 12S9.6 18.5 12 21'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 24px 24px !important;
  display: block !important;
  height: 24px !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 24px !important;
}

.fgf-app .fgf-translation-toggle:hover,
.fgf-app .fgf-translation-toggle:focus-visible {
  background: #0e4fa9 !important;
  border-color: #082f68;
  box-shadow: 0 0 0 4px rgba(21, 95, 199, 0.25);
  outline: none;
}

.fgf-app .fgf-translation-toggle.is-loading {
  cursor: wait;
}

.fgf-app .fgf-translation-toggle.is-loading svg { opacity: 0.25; }

.fgf-app .fgf-translation-toggle.is-loading::after {
  animation: fgf-translation-spin 0.75s linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  border-top-color: #fff;
  content: '';
  height: 20px;
  position: absolute;
  width: 20px;
}

@keyframes fgf-translation-spin { to { transform: rotate(360deg); } }

.fgf-app .fgf-translation-menu {
  background: #fff;
  border: 1px solid #cbd7e2;
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(18, 38, 58, 0.2);
  margin-top: 7px;
  padding: 12px;
  position: absolute;
  right: 0;
  width: min(310px, calc(100vw - 44px));
  z-index: 21;
}

.fgf-app .fgf-translation-menu,
.fgf-app .fgf-translation-menu * {
  opacity: 1;
}

.fgf-app .fgf-translation-menu label {
  color: #24384a !important;
  display: block;
  font-weight: 750;
}

.fgf-app .fgf-translation-search {
  background: #fff;
  border: 1px solid #879bae;
  border-radius: 8px;
  color: #102334 !important;
  font: inherit;
  margin-top: 7px;
  min-height: 42px;
  padding: 7px 9px;
  width: 100%;
}

.fgf-app .fgf-translation-search::placeholder {
  color: #5e7080 !important;
  opacity: 1;
}

.fgf-app .fgf-translation-search:focus {
  border-color: #276ef1;
  box-shadow: 0 0 0 3px rgba(39, 110, 241, 0.14);
  outline: none;
}

.fgf-app .fgf-translation-options {
  background: #fff;
  border: 1px solid #d2dce5;
  border-radius: 9px;
  display: grid;
  gap: 3px;
  margin-top: 9px;
  max-height: min(330px, 48vh);
  overflow-y: auto;
  padding: 4px;
}

.fgf-app .fgf-translation-option {
  align-items: center;
  background: #fff !important;
  border: 0;
  border-radius: 7px;
  color: #17212b !important;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 10px;
  grid-template-columns: 28px 1fr;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.fgf-app .fgf-translation-option:hover,
.fgf-app .fgf-translation-option:focus-visible {
  background: #eaf2ff !important;
  color: #102f60 !important;
  outline: none;
}

.fgf-app .fgf-translation-option.is-selected {
  background: #dceaff !important;
  box-shadow: inset 3px 0 0 #276ef1;
  color: #102f60 !important;
}

.fgf-app .fgf-translation-option strong,
.fgf-app .fgf-translation-option small {
  color: inherit !important;
  display: block;
  opacity: 1 !important;
}

.fgf-app .fgf-translation-option strong { font-weight: 800; }
.fgf-app .fgf-translation-option small { font-size: 12px; margin-top: 2px; }
.fgf-app .fgf-translation-flag { font-size: 20px; text-align: center; }

.fgf-app .fgf-translation-no-results {
  background: #f4f7fa;
  border-radius: 8px;
  color: #43586b !important;
  margin-top: 9px;
  padding: 10px;
  text-align: center;
}

.fgf-app .fgf-translation-status {
  color: #32714a;
  display: block;
  line-height: 1.35;
  margin-top: 7px;
}

.fgf-app .fgf-translation-status:empty { display: none; }
.fgf-app .fgf-translation-status.is-error { color: #a32222; }

.fgf-app .fgf-card-face > div.is-rtl,
.fgf-app .fgf-anki-page-content.is-rtl,
.fgf-app .fgf-quick-translation-output.is-rtl {
  direction: rtl;
  text-align: right;
}

.fgf-app .fgf-quick-translation-output {
  align-items: center;
  align-self: stretch;
  background: #fff;
  border-radius: 12px;
  color: #17212b;
  display: flex;
  font-size: clamp(15px, 2.4vw, 23px);
  font-weight: 600;
  justify-content: center;
  line-height: 1.55;
  margin: 34px 0 0;
  overflow-wrap: anywhere;
  padding: clamp(22px, 5vw, 48px);
  position: absolute;
  inset: 0;
  text-align: center;
  z-index: 5;
}

.fgf-app .fgf-quick-translation-output[hidden] { display: none !important; }
.fgf-app .fgf-anki-page-nav { align-items: center; display: flex; flex: 0 0 36px; gap: 12px; justify-content: center; margin: 4px 0 0 !important; max-width: none !important; }
.fgf-app .fgf-anki-page-nav button { align-items: center; background: #eef3f7; border: 1px solid #cbd7e0; border-radius: 8px; color: #174b9b; cursor: pointer; display: inline-flex; font: inherit; font-size: 22px; font-weight: 800; height: 34px; justify-content: center; padding: 0; width: 42px; }
.fgf-app .fgf-anki-page-nav button:disabled { cursor: default; opacity: 0.35; }
.fgf-app .fgf-anki-page-nav span { color: #627184; font-size: 13px; font-weight: 750; min-width: 48px; text-align: center; }
.fgf-app .fgf-anki-measure { font-size: clamp(15px, 1.65vw, 20px); line-height: 1.42; }
.fgf-app .fgf-anki-measure * { font-size: inherit; line-height: inherit; max-width: 100%; overflow-wrap: anywhere; }
.fgf-app .fgf-anki-measure ul, .fgf-app .fgf-anki-measure ol { margin: 12px 0; padding-left: 24px; }
.fgf-app .fgf-anki-measure li { margin: 7px 0; }
.fgf-app .fgf-anki-card ul, .fgf-app .fgf-anki-card ol { margin: 12px 0; padding-left: 24px; }
.fgf-app .fgf-anki-card li { margin: 7px 0; }
.fgf-app .fgf-anki-card table { border-collapse: collapse; max-width: 100%; table-layout: fixed; width: 100%; }
.fgf-app .fgf-anki-card th, .fgf-app .fgf-anki-card td { border: 1px solid #dce4ec; padding: 7px; }
.fgf-app .fgf-anki-card img, .fgf-app .fgf-anki-card svg { display: none !important; }

.fgf-app .fgf-new-selection { align-items: center; display: flex !important; gap: 7px; justify-content: center; }
.fgf-app .fgf-new-selection span { font-size: 21px; font-weight: 800; line-height: 1; }

.fgf-app .fgf-learning-mode button {
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #34485a;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  min-height: 48px;
  padding: 10px 14px;
}

.fgf-app .fgf-learning-mode button.is-active {
  background: #fff;
  box-shadow: 0 3px 10px rgba(18, 38, 58, 0.12);
  color: #174b9b;
}

.fgf-app .fgf-repeat-icon {
  align-items: center;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 25px;
  font-size: 20px;
  font-weight: 900;
  height: 25px;
  justify-content: center;
  line-height: 1;
  width: 25px;
}

.fgf-app .is-recent.fgf-repeat-icon,
.fgf-app .fgf-repeat-choice.is-recent,
.fgf-app .fgf-memory-button.is-recent {
  background: #c62828;
}

.fgf-app .is-short.fgf-repeat-icon,
.fgf-app .fgf-repeat-choice.is-short,
.fgf-app .fgf-memory-button.is-short {
  background: #f2c037;
  color: #3d2c00;
}

.fgf-app .is-long.fgf-repeat-icon,
.fgf-app .fgf-repeat-choice.is-long,
.fgf-app .fgf-memory-button.is-long {
  background: #218739;
}

.fgf-app .fgf-repeat-defaults {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.fgf-app .fgf-repeat-defaults label {
  align-items: center;
  border: 1px solid #dce4ec;
  border-radius: 12px;
  color: #17212b !important;
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr 72px;
  padding: 12px;
}

.fgf-app .fgf-repeat-defaults label > span:nth-child(2) {
  font-weight: 700;
}

.fgf-app .fgf-repeat-defaults input,
.fgf-app #fgf-repeat-again-count {
  border: 1px solid #aebdca;
  border-radius: 8px;
  color: #17212b;
  font: inherit;
  min-height: 40px;
  padding: 6px 8px;
  width: 100%;
}

.fgf-app .fgf-repeat-defaults small {
  color: #627184;
  grid-column: 2 / -1;
}

.fgf-app .fgf-repeat-status {
  border-radius: 8px;
  margin-top: 12px;
}

.fgf-app .fgf-repeat-status:not(:empty) {
  padding: 10px 12px;
}

.fgf-app .fgf-repeat-status.is-success {
  background: #eaf7ee;
  color: #17612a;
}

.fgf-app .fgf-repeat-status.is-error {
  background: #fff1f1;
  color: #8a2424;
}

.fgf-app .fgf-memory-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.fgf-app .fgf-memory-button {
  align-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 30px;
  font-weight: 900;
  height: 56px;
  justify-content: center;
  line-height: 1;
  position: relative;
  width: 56px;
}

.fgf-app .fgf-memory-button b {
  align-items: center;
  background: #fff;
  border: 2px solid currentColor;
  border-radius: 50%;
  bottom: -4px;
  color: #17212b;
  display: flex;
  font-size: 11px;
  height: 22px;
  justify-content: center;
  position: absolute;
  right: -4px;
  width: 22px;
}

.fgf-app .fgf-memory-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.fgf-app .fgf-download-pdf {
  background: #fff;
  border: 1px solid #276ef1;
  border-radius: 10px;
  color: #174b9b;
  cursor: pointer;
  display: block;
  font: inherit;
  font-weight: 750;
  margin: 14px auto 0;
  padding: 10px 18px;
}

.fgf-app .fgf-quick-setup p {
  color: #627184;
  line-height: 1.55;
  margin: 14px 0 0;
}

.fgf-app .fgf-quick-card {
  align-items: center;
  background: #f4f7f9;
  border: 1px solid #dce4ec;
  border-radius: 18px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  min-height: 390px;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.fgf-app .fgf-quick-card canvas {
  background: #fff;
  box-shadow: 0 12px 35px rgba(18, 38, 58, 0.16);
  display: block;
  height: auto;
  max-height: 520px;
  max-width: 100%;
  width: auto;
}

.fgf-app .fgf-quick-card > span {
  color: #627184;
  position: absolute;
}

.fgf-app .fgf-quick-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-top: 16px;
}

.fgf-app .fgf-quick-numbers button {
  background: #eef2f5;
  border: 1px solid #d3dde5;
  border-radius: 8px;
  color: #253849;
  cursor: pointer;
  font: inherit;
  min-height: 36px;
  min-width: 38px;
  padding: 5px 8px;
}

.fgf-app .fgf-quick-numbers button.is-active {
  background: #276ef1;
  border-color: #276ef1;
  color: #fff;
}

.fgf-app .fgf-repeat-panel-head {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.fgf-app .fgf-repeat-panel-head > div {
  align-items: center;
  display: flex;
  gap: 10px;
}

.fgf-app .fgf-repeat-panel-head h3 {
  margin: 0;
}

.fgf-app .fgf-repeat-panel-head .fgf-primary:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.fgf-app .fgf-repeat-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.fgf-app .fgf-repeat-group {
  background: #fff;
  border: 1px solid #dce4ec;
  border-radius: 13px;
  overflow: hidden;
}

.fgf-app .fgf-repeat-group summary {
  align-items: center;
  background: #f4f7fa;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 14px 16px;
}

.fgf-app .fgf-repeat-group summary::-webkit-details-marker { display: none; }
.fgf-app .fgf-repeat-group summary span, .fgf-app .fgf-repeat-group summary b, .fgf-app .fgf-repeat-group summary small { display: block; }
.fgf-app .fgf-repeat-group summary b { color: #17212b; font-size: 17px; }
.fgf-app .fgf-repeat-group summary small { color: #627184; margin-top: 3px; }
.fgf-app .fgf-repeat-group summary i { color: #276ef1; font-size: 25px; font-style: normal; transition: transform 0.2s ease; }
.fgf-app .fgf-repeat-group[open] summary i { transform: rotate(180deg); }
.fgf-app .fgf-repeat-group summary .fgf-repeat-group-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}
.fgf-app .fgf-repeat-choice {
  align-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 38px;
  font: inherit;
  font-size: 23px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 38px;
}
.fgf-app .fgf-repeat-choice:hover,
.fgf-app .fgf-repeat-choice:focus-visible { filter: brightness(0.9); }
.fgf-app .fgf-repeat-group-items { display: grid; gap: 9px; padding: 10px; }
.fgf-app .fgf-repeat-group .fgf-repeat-item { margin: 0; }

.fgf-app .fgf-repeat-item {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dce4ec;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr auto;
  padding: 14px;
}

.fgf-app .fgf-repeat-item div {
  min-width: 0;
}

.fgf-app .fgf-repeat-item .fgf-repeat-item-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.fgf-app .fgf-repeat-item small,
.fgf-app .fgf-repeat-item strong,
.fgf-app .fgf-repeat-item div > span {
  display: block;
}

.fgf-app .fgf-repeat-item small {
  color: #627184;
  margin-bottom: 4px;
}

.fgf-app .fgf-repeat-item strong {
  color: #17212b !important;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.fgf-app .fgf-repeat-item div > span {
  color: #3f596f;
  font-size: 13px;
  margin-top: 6px;
}

.fgf-app .fgf-repeat-delete,
.fgf-app #fgf-repeat-no {
  background: #fff;
  border: 1px solid #d7a3a3;
  border-radius: 8px;
  color: #a32222;
  cursor: pointer;
  font: inherit;
  padding: 8px 11px;
}

.fgf-app .fgf-repeat-empty {
  border: 1px dashed #b9c6d1;
  border-radius: 12px;
  color: #627184;
  padding: 24px;
  text-align: center;
}

.fgf-app .fgf-repeat-session-done {
  background: #eaf7ee;
  border-radius: 10px;
  color: #17612a;
  padding: 11px 13px;
}

.fgf-app .fgf-repeat-player-actions {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 16px;
}

.fgf-app .fgf-repeat-dialog {
  align-items: center;
  background: rgba(10, 25, 38, 0.65);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 999999;
}

.fgf-app .fgf-repeat-dialog > div {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
  color: #17212b;
  max-width: 470px;
  padding: 26px;
  width: 100%;
}

.fgf-app .fgf-repeat-dialog label {
  display: block;
  font-weight: 700;
  margin: 18px 0 7px;
}

.fgf-app .fgf-repeat-dialog > div > div {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 800px) {
  .fgf-app .fgf-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .fgf-app .fgf-repeat-defaults {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .fgf-app .fgf-tabs {
    grid-template-columns: 1fr;
  }

  .fgf-app .fgf-learning-mode {
    grid-template-columns: 1fr;
  }

  .fgf-app .fgf-quick-card {
    min-height: 260px;
    padding: 10px;
  }

  .fgf-app .fgf-card-face,
  .fgf-app .fgf-anki-card .fgf-card-face {
    padding: 26px 16px;
  }

  .fgf-app .fgf-card-face > div,
  .fgf-app .fgf-anki-card .fgf-card-face > div {
    font-size: 15px;
    line-height: 1.4;
  }

  .fgf-app .fgf-controls {
    grid-template-columns: 1fr 1fr;
  }

  .fgf-app .fgf-controls button:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .fgf-app .fgf-repeat-intro,
  .fgf-app .fgf-repeat-panel,
  .fgf-app .fgf-repeat-player,
  .fgf-app .fgf-login-required {
    border-radius: 14px;
    padding: 18px;
  }

  .fgf-app .fgf-repeat-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fgf-app .fgf-repeat-item {
    grid-template-columns: auto 1fr;
  }

  .fgf-app .fgf-repeat-item .fgf-repeat-item-actions {
    grid-column: 2;
    justify-self: start;
  }
}
