:root {
  --again-color: #d54b4b;
  --hard-color: #d6aa1c;
  --good-color: #2f73d9;
  --easy-color: #2ea56f;
}

.swipe-review-root {
  min-height: 460px;
  overflow: visible;
}

.swipe-stage {
  overflow: visible;
  border-radius: 20px;
  border: 0;
  contain: layout;
}

.swipe-card {
  touch-action: none;
  min-height: 360px;
  contain: layout;
  user-select: none;
  -webkit-user-select: none;
  display: grid;
  place-items: center;
  padding: 0.2rem;
  overflow: visible;
}

.review-card {
  position: relative;
  min-height: 340px;
  width: 100%;
  max-width: 620px;
  border-radius: 24px;
  background:
    radial-gradient(120% 80% at 50% -12%, rgba(255, 255, 255, 0.86), transparent 52%),
    linear-gradient(162deg, #ffffff, #eef5ff 48%, #f7fbff 100%);
  border: 1px solid rgba(40, 88, 145, 0.18);
  box-shadow: 0 14px 26px rgba(20, 50, 110, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform 90ms linear, box-shadow 90ms linear, border-color 90ms linear;
  padding: 1.5rem;
  will-change: transform;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.review-face {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
}

.review-front {
  min-height: 175px;
  flex: 1 1 auto;
}

.review-card::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  top: 0.65rem;
  height: 42%;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.review-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 70ms linear;
}

.review-card.is-dragging {
  transition: none !important;
  cursor: grabbing;
  box-shadow: 0 12px 22px rgba(20, 50, 110, 0.14);
}

.review-card h2,
.review-card h3 {
  margin-bottom: 0;
  width: 100%;
  text-align: center;
  line-height: 1.28;
  word-break: break-word;
}

.review-text {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.review-card .label {
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f6f8e;
}

.review-card .review-back {
  display: none;
  margin-top: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(20, 60, 120, 0.22);
  width: 100%;
  flex: 1 1 auto;
}

.review-card.is-revealed .review-back {
  display: block;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.review-image-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.review-image {
  max-width: 100%;
  max-height: 220px;
  border-radius: 14px;
  border: 1px solid rgba(72, 127, 193, 0.32);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.72);
}

.review-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(72, 127, 193, 0.34);
  background: linear-gradient(180deg, rgba(248, 253, 255, 0.96), rgba(228, 242, 255, 0.9));
  color: #244870;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.55rem;
  white-space: nowrap;
}

.review-card.dir-again {
  border-color: rgba(213, 75, 75, 0.62);
}

.review-card.dir-hard {
  border-color: rgba(214, 170, 28, 0.66);
}

.review-card.dir-good {
  border-color: rgba(47, 115, 217, 0.62);
}

.review-card.dir-easy {
  border-color: rgba(46, 165, 111, 0.66);
}

.review-card.dir-again::after {
  background: rgba(213, 75, 75, 0.2);
  opacity: 1;
}

.review-card.dir-hard::after {
  background: rgba(214, 170, 28, 0.21);
  opacity: 1;
}

.review-card.dir-good::after {
  background: rgba(47, 115, 217, 0.2);
  opacity: 1;
}

.review-card.dir-easy::after {
  background: rgba(46, 165, 111, 0.2);
  opacity: 1;
}

.review-card.swipe-out {
  opacity: 0;
  transition: transform 130ms cubic-bezier(0.2, 0.8, 0.22, 1), opacity 130ms linear;
}

.review-card.swipe-out.dir-again {
  transform: translateX(-140%) rotate(-16deg);
}

.review-card.swipe-out.dir-hard {
  transform: translateY(130%) rotate(7deg);
}

.review-card.swipe-out.dir-good {
  transform: translateY(-130%) rotate(-7deg);
}

.review-card.swipe-out.dir-easy {
  transform: translateX(140%) rotate(16deg);
}

.swipe-stage .card-body {
  overflow: visible;
}

.swipe-hints {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.swipe-hints .hint {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.77rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
}

.hint-again {
  color: var(--again-color);
  border-color: rgba(213, 75, 75, 0.4);
}

.hint-hard {
  color: #8a6900;
  border-color: rgba(180, 134, 0, 0.35);
}

.hint-good {
  color: var(--good-color);
  border-color: rgba(47, 115, 217, 0.35);
}

.hint-easy {
  color: var(--easy-color);
  border-color: rgba(46, 165, 111, 0.35);
}

.review-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #5d6d89;
  border-radius: 12px;
  border: 1px dashed rgba(20, 60, 120, 0.28);
  background: #f6f9ff;
  padding: 1rem;
}

.verb-trainer-shell {
  min-height: 620px;
}

.verb-trainer-flip-zone {
  border-radius: 18px;
  padding: 0.4rem 0.35rem 0.5rem;
  cursor: pointer;
  touch-action: manipulation;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 0.6rem;
}

.verb-trainer-flip-zone:focus-visible {
  outline: 2px solid rgba(57, 140, 255, 0.75);
  outline-offset: 2px;
}

.verb-trainer-block {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(66, 126, 195, 0.32);
  cursor: pointer;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.verb-trainer-swipe-surface {
  touch-action: manipulation;
  transition: none;
  will-change: auto;
  overflow: visible;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

.verb-pronoun {
  background: transparent !important;
  color: #24426b;
  font-weight: 700;
}

.verb-pronoun-cell {
  border: 1px solid rgba(66, 126, 195, 0.34);
  width: 14%;
  min-width: 0;
  max-width: 74px;
  white-space: nowrap;
  font-size: 0.84rem;
}

.verb-answer-cell {
  position: relative;
  background: linear-gradient(165deg, #ffffff, #ecf4ff);
  border: 1px solid rgba(66, 126, 195, 0.38);
  min-height: 68px;
  width: 36%;
  min-width: 0;
}

.verb-answer-cell.is-target {
  background: linear-gradient(165deg, #fff7b8, #f0d04d);
  box-shadow: inset 0 0 0 3px rgba(222, 170, 0, 0.98), 0 0 0 2px rgba(255, 229, 127, 0.9);
}

.verb-trainer-hints {
  margin-top: 0.6rem;
  text-align: center;
}

.verb-infinitive-display {
  font-size: clamp(1.95rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
  margin-bottom: 0.25rem;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(19, 35, 62, 0.52);
}

.verb-translation-answer {
  display: block;
  visibility: hidden;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 700;
  min-height: 1.6rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0.2rem 0 0.2rem;
}

.verb-trainer-block.is-revealed .verb-translation-answer {
  visibility: visible;
}

.verb-trainer-table {
  border-collapse: collapse;
  border-spacing: 0;
  border: 0 !important;
  width: 100%;
  table-layout: fixed;
}

.verb-trainer-table-wrap {
  border-radius: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(66, 126, 195, 0.4);
  max-width: 100%;
}

.verb-trainer-table-wrap-inner {
  min-width: 100%;
}

.verb-trainer-block.is-layout-two .verb-trainer-table-wrap--four {
  display: none;
}

.verb-trainer-block:not(.is-layout-two) .verb-trainer-table-wrap--two {
  display: none;
}

.verb-trainer-block.is-layout-two .verb-pronoun-cell {
  width: 30%;
  max-width: none;
  font-size: 0.9rem;
}

.verb-trainer-block.is-layout-two .verb-answer-cell {
  width: 70%;
}

html[data-theme="dark"] .verb-trainer-table-wrap {
  border-color: rgba(164, 184, 214, 0.58);
}

.verb-trainer-table th,
.verb-trainer-table td {
  border: 1px solid rgba(66, 126, 195, 0.34) !important;
  padding: 0.5rem 0.38rem;
}

.verb-trainer-table td.verb-pronoun {
  background: transparent !important;
  box-shadow: none;
}

.verb-session-chip {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(224, 241, 255, 0.84));
  border: 1px solid rgba(87, 139, 205, 0.34);
  color: #23486f;
}

.verb-rating-dock {
  position: sticky;
  bottom: 0;
  background: rgba(245, 251, 255, 0.92);
  border: 1px solid rgba(64, 125, 197, 0.2);
  border-radius: 14px;
  padding: 0.75rem;
}

.verb-rating-dock .btn {
  min-height: 3rem;
  font-size: 1rem;
  font-weight: 700;
}

.verb-reveal-all-btn {
  color: #111111 !important;
}

.verb-tool-panel[open] > .card-header {
  border-bottom: 1px solid rgba(64, 125, 197, 0.24);
}

.verb-tool-panel > summary {
  list-style: none;
  cursor: pointer;
}

.verb-tool-panel > summary::-webkit-details-marker {
  display: none;
}

.verb-tool-panel > summary::after {
  content: "Toggle";
  float: right;
  font-size: 0.72rem;
  opacity: 0.75;
}

.verb-tool-panel[open] > summary::after {
  content: "Hide";
}

.study-card-shell {
  cursor: pointer;
}

.study-card-shell .review-card {
  min-height: 280px;
  max-width: 100%;
}

html[data-theme="dark"] .verb-pronoun {
  background: transparent !important;
  color: #d5e6ff;
}

html[data-theme="dark"] .verb-answer-cell {
  background: linear-gradient(165deg, #1d2f49, #17263d);
}

html[data-theme="dark"] .verb-answer-cell.is-target {
  background: linear-gradient(165deg, #6f5a00, #b28a00);
  box-shadow: inset 0 0 0 3px rgba(255, 236, 145, 0.98), 0 0 0 2px rgba(247, 213, 73, 0.88);
}

html[data-theme="dark"] .review-card {
  background:
    radial-gradient(120% 80% at 50% -12%, rgba(214, 225, 242, 0.16), transparent 52%),
    linear-gradient(160deg, #2d3542, #252c37 45%, #2a323d 100%);
  border-color: rgba(149, 177, 214, 0.18);
  box-shadow: 0 10px 18px rgba(8, 11, 16, 0.48), inset 0 1px 0 rgba(218, 225, 236, 0.18);
}

html[data-theme="dark"] .review-card::before {
  background: linear-gradient(180deg, rgba(223, 232, 245, 0.16), rgba(223, 232, 245, 0));
}

html[data-theme="dark"] .review-card .label {
  color: #a9bfdf;
}

html[data-theme="dark"] .review-card .review-back {
  border-top-color: rgba(166, 187, 215, 0.3);
}

html[data-theme="dark"] .review-tag {
  border-color: rgba(150, 180, 221, 0.34);
  background: linear-gradient(180deg, rgba(70, 90, 118, 0.72), rgba(49, 66, 90, 0.76));
  color: #dfebff;
}

html[data-theme="dark"] .review-image {
  border-color: rgba(150, 180, 221, 0.34);
  background: rgba(39, 54, 76, 0.75);
}

html[data-theme="dark"] .review-card.dir-again::after {
  background: rgba(203, 92, 92, 0.23);
}

html[data-theme="dark"] .review-card.dir-hard::after {
  background: rgba(215, 177, 68, 0.24);
}

html[data-theme="dark"] .review-card.dir-good::after {
  background: rgba(96, 151, 229, 0.24);
}

html[data-theme="dark"] .review-card.dir-easy::after {
  background: rgba(83, 182, 129, 0.24);
}

html[data-theme="dark"] .verb-rating-dock {
  background: rgba(38, 47, 60, 0.92);
  border-color: rgba(168, 181, 199, 0.28);
}

html[data-theme="dark"] .verb-trainer-table th,
html[data-theme="dark"] .verb-trainer-table td {
  border-color: rgba(164, 184, 214, 0.58) !important;
}

html[data-theme="dark"] .verb-trainer-table td.verb-pronoun {
  background: transparent !important;
}

html[data-theme="dark"] .verb-pronoun-cell {
  border-color: rgba(148, 168, 195, 0.46) !important;
}

html[data-theme="dark"] .verb-session-chip {
  background: linear-gradient(180deg, rgba(117, 131, 151, 0.54), rgba(76, 88, 106, 0.62));
  border-color: rgba(160, 178, 205, 0.42);
  color: #e8f1ff;
}

.swipe-rate-label .arrow {
  font-size: 0.98em;
  line-height: 1;
  margin-right: 0.22rem;
}

.card-browser-table-shell {
  border: 1px solid rgba(66, 126, 195, 0.32);
  border-radius: 18px;
  overflow-x: auto;
  overflow-y: visible;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(229, 243, 255, 0.7));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(83, 140, 208, 0.18);
}

.card-browser-table {
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0;
  min-width: 900px;
}

.card-browser-table > :not(caption) > * > * {
  border-top-color: rgba(84, 140, 205, 0.25);
  color: var(--app-text);
}

.card-browser-table thead th {
  background: linear-gradient(180deg, rgba(250, 254, 255, 0.9), rgba(224, 240, 255, 0.74)) !important;
}

.card-browser-table tbody td {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(237, 247, 255, 0.5));
}

.card-browser-table tbody tr {
  --bs-table-color: var(--app-text);
  color: var(--app-text);
}

.card-browser-table tbody td,
.card-browser-table tbody td a,
.card-browser-table tbody td small,
.card-browser-table tbody td span:not(.badge) {
  color: inherit !important;
}

.card-browser-table tbody tr.table-primary td {
  background: linear-gradient(180deg, rgba(184, 214, 245, 0.52), rgba(161, 198, 238, 0.48));
  color: var(--app-text) !important;
}

.card-progress-head {
  min-width: 124px;
}

.card-progress-cell {
  min-width: 128px;
}

.card-progress-summary {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.22rem;
  color: var(--app-text);
}

.card-progress-track {
  width: 102px;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(68, 126, 191, 0.14);
  border: 1px solid rgba(73, 131, 197, 0.26);
  box-shadow: inset 0 1px 2px rgba(31, 76, 130, 0.16);
  margin-bottom: 0.18rem;
}

.card-progress-fill {
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.card-progress-fill.progress-new {
  background: linear-gradient(180deg, #f08d8d 0%, #d25656 100%);
}

.card-progress-fill.progress-early {
  background: linear-gradient(180deg, #f0ce79 0%, #d5a43f 100%);
}

.card-progress-fill.progress-building {
  background: linear-gradient(180deg, #86bdf4 0%, #4d8dd8 100%);
}

.card-progress-fill.progress-solid {
  background: linear-gradient(180deg, #78d3d8 0%, #3ca3ad 100%);
}

.card-progress-fill.progress-mature {
  background: linear-gradient(180deg, #83d8a3 0%, #3fa968 100%);
}

.card-progress-detail {
  display: block;
  font-size: 0.72rem;
  line-height: 1.2;
}

.card-browser-actions {
  text-align: right;
  white-space: nowrap;
  min-width: 5.6rem;
  width: 5.6rem;
  position: relative;
  z-index: 1;
}

.card-browser-actions .btn {
  flex: 0 0 auto;
}

.card-browser-edit-btn {
  min-width: 2.2rem;
}

.card-browser-tags-cell {
  min-width: 128px;
  max-width: 170px;
}

.card-browser-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem;
  align-items: center;
}

.card-browser-tags .badge {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.card-inline-edit-row > td {
  background: linear-gradient(180deg, rgba(248, 253, 255, 0.9), rgba(231, 245, 255, 0.76));
  border-top: 1px solid rgba(84, 140, 205, 0.25);
}

.card-inline-edit-form {
  padding: 0.5rem 0.25rem;
}

.verb-inline-editor {
  border: 1px solid rgba(84, 140, 205, 0.24);
  border-radius: 14px;
  padding: 0.55rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(235, 246, 255, 0.62));
}

.verb-inline-editor-title {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--app-text);
}

.card-image-editor {
  border: 1px solid rgba(84, 140, 205, 0.24);
  border-radius: 14px;
  padding: 0.4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(235, 246, 255, 0.62));
}

.image-editor-details {
  margin: 0;
}

.image-editor-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(84, 140, 205, 0.24);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(227, 241, 255, 0.86));
}

.image-editor-summary::-webkit-details-marker {
  display: none;
}

.image-editor-summary-state {
  font-weight: 700;
  color: #1f5ca0;
}

.image-editor-details[open] .image-editor-summary {
  margin-bottom: 0.4rem;
}

.card-image-preview-wrap {
  border: 1px solid rgba(84, 140, 205, 0.22);
  border-radius: 12px;
  padding: 0.35rem;
  background: rgba(248, 252, 255, 0.82);
}

.card-image-preview {
  width: 100%;
  max-height: 130px;
  object-fit: contain;
  border-radius: 10px;
}

.preview-image-editor {
  min-width: 120px;
  max-width: 220px;
}

.preview-image-details {
  margin: 0;
}

.preview-image-summary {
  display: block;
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(84, 140, 205, 0.24);
  border-radius: 999px;
  padding: 0.18rem 0.52rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(227, 241, 255, 0.86));
}

.preview-image-summary::-webkit-details-marker {
  display: none;
}

.preview-image-summary-label {
  display: block;
  white-space: nowrap;
}

.preview-image-controls {
  margin-top: 0.4rem;
}

.preview-image-thumb-wrap {
  border: 1px solid rgba(84, 140, 205, 0.24);
  border-radius: 10px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 252, 255, 0.85);
}

.preview-image-thumb {
  width: 100%;
  max-height: 84px;
  object-fit: contain;
  border-radius: 8px;
}

.preview-image-thumb-empty {
  color: #65789a;
  font-size: 0.75rem;
}

.english-candidates-cell {
  min-width: 15rem;
}

.english-candidates-cell label {
  border: 1px solid rgba(83, 141, 207, 0.22);
  border-radius: 10px;
  padding: 0.35rem 0.45rem;
  margin-bottom: 0.3rem;
  background: rgba(245, 251, 255, 0.7);
  cursor: pointer;
}

.english-candidates-cell label:last-child {
  margin-bottom: 0;
}

html[data-theme="dark"] .english-candidates-cell label {
  border-color: rgba(151, 173, 202, 0.38);
  background: rgba(78, 92, 112, 0.55);
}

.card-browser-front,
.card-browser-back {
  min-width: 9.5rem;
  max-width: 15.5rem;
  white-space: normal;
  word-break: break-word;
}

.card-browser-actions-head {
  width: 5.6rem;
}

html[data-theme="dark"] .card-browser-table-shell {
  border-color: rgba(152, 170, 197, 0.36);
  background: linear-gradient(180deg, rgba(90, 101, 117, 0.58), rgba(64, 73, 87, 0.64));
  box-shadow:
    inset 0 1px 0 rgba(221, 229, 240, 0.14),
    inset 0 -1px 0 rgba(28, 34, 44, 0.42);
}

html[data-theme="dark"] .card-browser-table thead th {
  background: linear-gradient(180deg, rgba(139, 154, 176, 0.36), rgba(82, 95, 114, 0.58)) !important;
}

html[data-theme="dark"] .card-browser-table tbody td {
  background: linear-gradient(180deg, rgba(82, 93, 109, 0.44), rgba(62, 72, 86, 0.5));
  color: var(--app-text);
}

html[data-theme="dark"] .card-browser-table tbody tr.table-primary td {
  background: linear-gradient(180deg, rgba(103, 132, 170, 0.52), rgba(84, 112, 150, 0.46));
  color: var(--app-text) !important;
}

html[data-theme="dark"] .card-inline-edit-row > td {
  background: linear-gradient(180deg, rgba(90, 101, 117, 0.56), rgba(65, 75, 90, 0.62));
  border-top-color: rgba(148, 168, 195, 0.4);
}

html[data-theme="dark"] .card-image-editor {
  border-color: rgba(148, 168, 195, 0.34);
  background: linear-gradient(180deg, rgba(86, 101, 122, 0.56), rgba(65, 78, 96, 0.62));
}

html[data-theme="dark"] .image-editor-summary,
html[data-theme="dark"] .preview-image-summary {
  border-color: rgba(148, 168, 195, 0.4);
  color: var(--app-text);
  background: linear-gradient(180deg, rgba(101, 116, 138, 0.72), rgba(74, 88, 108, 0.82));
}

html[data-theme="dark"] .image-editor-summary-state {
  color: #c9dcff;
}

html[data-theme="dark"] .card-image-preview-wrap,
html[data-theme="dark"] .preview-image-thumb-wrap {
  border-color: rgba(148, 168, 195, 0.4);
  background: rgba(52, 64, 82, 0.78);
}

html[data-theme="dark"] .preview-image-thumb-empty {
  color: #c9daf4;
}

html[data-theme="dark"] .card-progress-track {
  background: rgba(151, 171, 196, 0.2);
  border-color: rgba(171, 189, 212, 0.38);
  box-shadow: inset 0 1px 2px rgba(8, 11, 16, 0.44);
}

html[data-theme="dark"] .card-progress-fill.progress-new {
  background: linear-gradient(180deg, #cc8a8a 0%, #a26060 100%);
}

html[data-theme="dark"] .card-progress-fill.progress-early {
  background: linear-gradient(180deg, #c3ad7e 0%, #957f51 100%);
}

html[data-theme="dark"] .card-progress-fill.progress-building {
  background: linear-gradient(180deg, #88aacf 0%, #5f82ab 100%);
}

html[data-theme="dark"] .card-progress-fill.progress-solid {
  background: linear-gradient(180deg, #77b9bd 0%, #4a8e95 100%);
}

html[data-theme="dark"] .card-progress-fill.progress-mature {
  background: linear-gradient(180deg, #7aad8d 0%, #4f8666 100%);
}

.card-browser-modal .modal-content {
  border-radius: 18px;
  border: 1px solid rgba(66, 126, 195, 0.32);
  background: linear-gradient(180deg, rgba(253, 255, 255, 0.96), rgba(231, 245, 255, 0.94));
  box-shadow: 0 16px 34px rgba(31, 72, 125, 0.24);
}

html[data-theme="dark"] .card-browser-modal .modal-content {
  border-color: rgba(162, 180, 206, 0.36);
  background: linear-gradient(180deg, rgba(85, 95, 110, 0.96), rgba(62, 72, 86, 0.96));
  box-shadow: 0 18px 34px rgba(8, 11, 16, 0.54);
}

.card-browser-modal .modal-header {
  border-bottom-color: rgba(66, 126, 195, 0.24);
}

.card-browser-modal .modal-footer {
  border-top-color: rgba(66, 126, 195, 0.2);
}

#preview-table .preview-translation {
  min-width: 180px;
  outline: none;
  border-radius: 6px;
  border: 1px dashed rgba(54, 116, 188, 0.35);
  padding: 0.25rem 0.4rem;
  background: rgba(54, 116, 188, 0.06);
}

#preview-table .preview-normalized,
#preview-table .preview-display {
  min-width: 150px;
  outline: none;
  border-radius: 6px;
  border: 1px dashed rgba(54, 116, 188, 0.28);
  padding: 0.25rem 0.4rem;
  background: rgba(54, 116, 188, 0.04);
}

.workspace-tree-list {
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  border: 1px solid rgba(66, 126, 195, 0.3);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(232, 245, 255, 0.45));
}

.workspace-tree-node {
  margin: 0.38rem;
  padding: 0.4rem 0.45rem;
  border: 1px solid rgba(66, 126, 195, 0.28);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(229, 243, 255, 0.56));
  overflow: hidden;
}

.workspace-tree-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  padding: 0.3rem 0.45rem;
  border-radius: 10px;
  border: 1px solid transparent;
}

.workspace-tree-link:hover {
  background: rgba(123, 181, 243, 0.18);
  border-color: rgba(76, 136, 207, 0.3);
}

.workspace-tree-link.is-active-folder {
  background: rgba(84, 153, 230, 0.2);
  border-color: rgba(61, 126, 198, 0.4);
}

.workspace-tree-link.is-active-deck {
  background: rgba(63, 181, 126, 0.18);
  border-color: rgba(54, 150, 104, 0.35);
}

.workspace-tree-children {
  padding-left: 0.45rem;
}

html[data-theme="dark"] .workspace-tree-list {
  border-color: rgba(154, 171, 195, 0.36);
  background: linear-gradient(180deg, rgba(67, 76, 90, 0.62), rgba(49, 57, 69, 0.62));
}

html[data-theme="dark"] .workspace-tree-node {
  border-color: rgba(152, 170, 197, 0.32);
  background: linear-gradient(180deg, rgba(84, 95, 112, 0.58), rgba(59, 68, 80, 0.64));
}

html[data-theme="dark"] .workspace-tree-link:hover {
  background: rgba(131, 163, 202, 0.24);
  border-color: rgba(146, 171, 206, 0.36);
}

#preview-table .preview-translation:focus {
  border-color: rgba(54, 116, 188, 0.6);
  box-shadow: 0 0 0 0.15rem rgba(54, 116, 188, 0.14);
}

#preview-table .preview-normalized:focus,
#preview-table .preview-display:focus {
  border-color: rgba(54, 116, 188, 0.52);
  box-shadow: 0 0 0 0.15rem rgba(54, 116, 188, 0.12);
}

.verb-answer-mask,
.verb-answer-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
  line-height: 1.15;
}

.verb-answer-mask {
  margin: 0.1rem auto;
  width: 100%;
  max-width: 98px;
  min-height: 1.15rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(113, 144, 186, 0.76), rgba(68, 98, 146, 0.85));
}

.verb-answer-cell.is-target .verb-answer-mask {
  background: linear-gradient(180deg, rgba(255, 237, 151, 0.96), rgba(233, 190, 39, 0.96));
}

.verb-answer-value {
  display: none;
}

.verb-answer-cell.is-revealed .verb-answer-mask {
  display: none;
}

.verb-answer-cell.is-revealed .verb-answer-value {
  display: block;
}

@media (max-width: 575.98px) {
  .swipe-review-root {
    min-height: 380px;
  }

  .swipe-card {
    min-height: 250px;
  }

  .review-card {
    min-height: 250px;
    border-radius: 18px;
    padding: 1rem;
  }

  .review-front {
    min-height: 125px;
  }

  .swipe-hints {
    grid-template-columns: 1fr;
  }

  .verb-trainer-table td {
    font-size: 0.8rem;
    padding: 0.36rem 0.22rem;
  }

  .verb-pronoun-cell {
    width: 13%;
    min-width: 0;
    max-width: 52px;
    font-size: 0.75rem;
  }

  .verb-answer-cell {
    width: 37%;
  }

  .verb-answer-value,
  .verb-answer-mask {
    font-size: 0.84rem;
  }

  .verb-trainer-block.is-layout-two .verb-pronoun-cell {
    width: 30%;
    max-width: none;
    font-size: 0.84rem;
  }

  .verb-trainer-block.is-layout-two .verb-answer-cell {
    width: 70%;
  }

  .verb-trainer-shell {
    min-height: calc(100dvh - 130px);
  }

  .verb-rating-dock {
    margin-top: auto;
    padding: 0.65rem;
  }

  .verb-rating-dock .btn {
    min-height: 3.25rem;
    font-size: 1.02rem;
  }

  .verb-tool-panel {
    margin-bottom: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-card,
  .review-card::after {
    transition: none !important;
  }

  .review-card.swipe-out {
    transition: none !important;
  }
}
