@import url("styles-v217.css?v=610");

.import-candidate-remove {
  justify-self: start;
  border: 0;
  padding: 2px 0;
  color: #ff8b8b;
  background: transparent;
  font: inherit;
  font-size: .68rem;
  cursor: pointer;
}

/* Five compact activity marks: one character in a consistent circular target. */
.mode-button .mode-glyph,
.mobile-mode-glyph {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 750;
  line-height: 1;
}
.mobile-current-mode-icon {
  width: 23px;
  height: 23px;
  fill: none !important;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-mode-more-icon { fill: currentColor; }
.activity-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-mode-glyph {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  font-size: .7rem;
}

/* Responsive sentence matching: use the available canvas and keep both
   sentence length and viewing distance readable on tablets and desktops. */
@media (min-width: 581px) {
  .choice-grid.matching-board.sentence-word-board {
    width: min(100%, 1240px);
    grid-template-columns: minmax(0, 1.28fr) minmax(230px, .82fr);
    gap: clamp(12px, 1.4vw, 20px);
  }

  .sentence-word-board .matching-left .matching-button {
    padding-inline: clamp(8px, 1.2vw, 16px);
    font-size: clamp(1.2rem, 2.05vw, 1.65rem);
    line-height: 1.18;
  }

  .sentence-word-board .matching-right .matching-button {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
  }
}

@media (min-width: 900px) and (orientation: landscape) {
  .practice-card {
    --practice-inline: clamp(10px, 2vw, 28px);
  }

  .choice-grid.matching-board.sentence-word-board {
    width: calc(100% - clamp(0px, 1vw, 14px));
  }
}

@media (max-height: 700px) and (orientation: landscape) and (min-width: 581px) {
  .sentence-word-board .matching-left .matching-button {
    font-size: clamp(1.2rem, 2.05vw, 1.58rem);
  }
}

/* Device-specific keyboard composition refinements. */
@media (max-width: 580px) and (orientation: portrait) {
  .practice-view.embedded-keyboard-mode.direct-prompt-input .practice-prompt {
    bottom: calc(
      var(--practice-keyboard-height, 190px)
      + var(--practice-keyboard-offset)
      + clamp(42px, 5vh, 54px)
      + clamp(28px, 4vh, 38px)
    );
  }

  .practice-keyboard.phone-keyboard .key-submit,
  .progress-fill {
    background: var(--blue-2) !important;
  }
}

/* Reflow long matching content instead of shrinking it below readability. */
.practice-view.context-mode .practice-card { overflow-y: auto; }
.matching-button {
  min-width: 0;
  height: auto;
  min-height: 76px;
  font-size: clamp(1rem, 2.2vmin, 1.25rem);
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.sentence-word-board .matching-left .matching-button {
  min-height: 76px;
  padding: 9px clamp(10px, 1.5vw, 18px);
  font-size: clamp(1rem, 2.05vw, 1.65rem);
  line-height: 1.22;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
.sentence-word-board .matching-left .matching-button.text-long {
  font-size: clamp(.95rem, 1.75vw, 1.35rem);
}
.sentence-word-board .matching-left .matching-button.text-very-long {
  min-height: 92px;
  font-size: clamp(.9rem, 1.5vw, 1.15rem);
}
.word-meaning-board .matching-right .matching-button {
  min-height: 76px;
  font-size: clamp(1rem, 2.5vmin, 1.45rem);
}
@media (max-width: 580px) {
  .choice-grid.matching-board { width: 100%; }
  .sentence-word-board .matching-left .matching-button {
    min-height: 52px;
    padding: 7px 8px;
    font-size: clamp(1rem, 4.4vw, 1.28rem);
  }
  .sentence-word-board .matching-left .matching-button.text-long,
  .sentence-word-board .matching-left .matching-button.text-very-long {
    min-height: 60px;
    font-size: clamp(.9rem, 3.8vw, 1.08rem);
  }
  .word-meaning-board .matching-button { min-height: 58px; }
}

.import-choice-row[hidden],
.account-detail-row[hidden],
.account-meter[hidden],
.account-add-button[hidden],
.account-upgrade-button[hidden] {
  display: none !important;
}

.import-choice-row button:disabled,
.account-panel button:disabled {
  opacity: .42;
  cursor: not-allowed;
}
.account-panel .account-upgrade-button[aria-disabled="true"],
.account-panel .account-add-button[aria-disabled="true"] {
  opacity: .42;
  cursor: pointer;
}

/* Child-friendly 44px touch targets; icon artwork keeps its visual size. */
.top-settings,
.nav-list-current,
.nav-list-button,
.card-menu-label,
.day-menu-label,
.mode-button,
.mobile-mode-menu {
  min-height: 44px;
  height: 44px;
}
.nav-select-option,
.nav-list-option-row,
.nav-list-delete,
.word-list-select,
.word-list-delete,
.import-mode-button,
.import-template-button,
.settings-text-button,
.settings-select-button,
.plan-control select,
.accent-segment button,
.sound-toggle-button,
.progress-reset-button,
.inline-reset-confirm button,
.account-entry-button,
.account-upgrade-button,
.account-signout-button,
.account-menu-button,
.account-add-button,
.account-protection-button,
.main-account-button,
.practice-speak-mark,
.mobile-mode-popover button,
.practice-key,
.import-review-item summary,
.import-review-item input,
.import-preview > .settings-text-button,
.reset-dialog .dialog-actions button,
.protection-form input,
.card-arrow {
  min-height: 44px;
}
.progress-reset-button,
.account-upgrade-button,
.account-signout-button,
.account-add-button,
.main-account-button {
  min-width: 44px;
  width: 44px;
}
.account-details .account-detail-row {
  grid-template-columns: 78px max-content minmax(24px, 1fr) 44px;
}
.account-details .account-detail-row > strong { white-space: nowrap; }
.account-detail-row.account-resource-unavailable .account-detail-label,
.account-detail-row.account-resource-unavailable strong {
  color: rgba(175, 187, 202, .58);
}
.account-statistics-detail-row.account-resource-unavailable .statistics-copy {
  color: rgba(175, 187, 202, .58);
}
.account-detail-row.account-resource-unavailable .account-detail-label svg {
  stroke: rgba(175, 187, 202, .5);
}
.account-meter.is-inactive {
  background: rgba(175, 187, 202, .16);
  opacity: .72;
}
.account-meter.is-inactive i { background: rgba(175, 187, 202, .28); }
.practice-view.summary-mode .practice-complete-actions .practice-next:focus,
.practice-view.summary-mode .practice-complete-actions .practice-next:focus-visible {
  outline: 0;
}
.account-panel-head .account-entry-button {
  max-width: calc(100% - 128px);
}
.account-protection-button {
  width: 84px;
  margin-right: 0;
}
@media (max-width: 580px) {
  .account-details .account-detail-row {
    grid-template-columns: 74px max-content minmax(20px, 1fr) 44px;
  }
  .account-protection-button { margin-right: 0; }
}

/* Word-card navigation: quiet stacked cards by default, restrained brand-blue selection. */
.group-picker.active .card-menu-label,
.group-picker.active .card-menu-label:hover,
.group-picker.active .card-menu-label:focus,
.group-picker.active .card-menu-label:focus-visible {
  color: var(--blue-2) !important;
  background: transparent !important;
}

.card-menu-label > span:first-child {
  height: 26px;
  width: auto;
  aspect-ratio: 1.6 / 1;
  color: rgba(226,234,242,.78) !important;
  background: transparent !important;
  border-color: rgba(226,234,242,.72) !important;
  box-shadow:
    3px -3px 0 -2px var(--navy),
    3px -3px 0 -1px rgba(226,234,242,.72) !important;
  font-size: .66rem;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease, filter .15s ease;
}

.group-picker.active .card-menu-label > span:first-child,
.group-picker.active .card-menu-label:hover > span:first-child,
.group-picker.active .card-menu-label:focus > span:first-child,
.group-picker.active .card-menu-label:focus-visible > span:first-child {
  color: var(--blue-2) !important;
  background: rgba(47,120,183,.1) !important;
  border-color: var(--blue-2) !important;
  box-shadow:
    3px -3px 0 -2px var(--navy),
    3px -3px 0 -1px rgba(226,234,242,.72) !important;
}

/* Landscape and desktop navigation uses the same quiet outline selection as
   the word-card mark. Phone portrait keeps its compact current-mode icon. */
.mode-bar > .list-day-current {
  --list-day-space: 8px;
  --list-day-edge-space: 12px;
  --list-day-half-space: 12px;
  flex: 2.35 1 0;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(226,234,242,.08);
  border-radius: 8px;
}
.mode-bar > .list-day-current > .nav-list-current {
  flex: 0 1 auto;
  width: fit-content;
  min-width: 0;
  min-height: 0;
  height: auto;
  align-self: stretch;
  display: flex;
  align-items: stretch;
}
.mode-bar > .list-day-current .nav-list-button {
  width: 100%;
  height: 100%;
  padding: 0 var(--list-day-half-space) 0 var(--list-day-edge-space);
  border: 0;
  border-radius: 8px 0 0 8px;
  overflow: hidden;
  justify-content: flex-start;
  text-align: left;
}
.mode-bar > .list-day-current .nav-list-button > span {
  width: 100%;
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mode-bar > .list-day-current > .day-current {
  z-index: 3;
  flex: 0 0 auto;
  min-width: max-content;
  min-height: 0;
  height: auto;
  align-self: stretch;
  display: flex;
  align-items: stretch;
  margin-left: 0;
}
.mode-bar > .list-day-current .day-select-popover {
  right: 0;
  left: auto;
  white-space: normal;
}
.mode-bar > .list-day-current .day-select-popover .nav-select-option {
  display: block;
}
.mode-bar > .list-day-current .day-menu-label {
  width: auto;
  height: 100%;
  padding: 0 var(--list-day-edge-space) 0 var(--list-day-half-space);
  border: 0;
  border-radius: 0 8px 8px 0;
}
.mode-bar > .list-day-current .day-menu-label > span:first-child {
  position: static;
  inset: auto;
  padding: 0;
  display: block;
  overflow: visible;
  text-align: center;
  white-space: nowrap;
}
.mode-bar > .list-day-current .nav-list-button,
.mode-bar > .list-day-current .day-menu-label {
  height: auto;
  min-height: 0;
  margin: 0;
  align-self: stretch;
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}
.mode-bar > .list-day-current .nav-list-button > span,
.mode-bar > .list-day-current .day-menu-label > span:first-child {
  font: inherit;
  line-height: 1;
}
.mode-bar > .list-day-current .nav-list-button > span {
  height: auto;
  display: block;
}
.mode-bar > .list-day-current .day-menu-label > span:first-child {
  height: 100%;
  display: flex;
  align-items: center;
  transform: translateY(-1px);
}
.mode-bar > .group-picker {
  flex: 1.3 1 0;
  grid-template-columns: minmax(54px, 1fr);
}

@media (orientation: landscape), (hover: hover) and (pointer: fine) {
  .mode-bar {
    width: min(100%, 920px);
    align-self: flex-start;
    gap: 8px;
    padding-inline: 8px;
  }
  .mode-bar > .top-settings {
    flex: 0 0 46px;
    border-right: 0;
    border-radius: 8px;
  }
  .mode-bar > .top-settings .settings-icon {
    width: 20px;
    height: 20px;
  }
  .mode-bar > .list-day-current {
    flex: 0 1 auto;
    width: fit-content;
    min-width: 0;
    max-width: 286px;
  }
  .mode-bar > .list-day-current > .nav-list-current {
    flex: 0 1 auto;
    width: fit-content;
    max-width: 200px;
  }
  .mode-bar > .list-day-current .day-select-popover {
    right: auto;
    left: 0;
  }
  .mode-bar > .group-picker {
    position: relative;
    flex: 0 0 72px;
    grid-template-columns: 72px;
    gap: 0;
    margin-left: 0;
    margin-right: 0;
  }
  .mode-bar > .group-picker .card-menu-label {
    border-right: 0;
    border-radius: 8px;
  }
  .mode-bar > .group-picker .card-menu-label > span:first-child {
    height: 25px;
    width: auto;
    aspect-ratio: 1.6 / 1;
  }
  .mode-bar > .mode-button,
  .mode-bar > .mode-button[data-mode="wrong"] {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-right: 0;
    border-radius: 8px;
  }
  .mode-bar > .group-picker + .mode-button::before,
  .mode-bar > .mode-button + .mode-button::before {
    content: "›";
    position: absolute;
    top: 50%;
    color: rgba(226,234,242,.36);
    font-family: var(--font-ui);
    font-size: .68rem;
    font-weight: 300;
    line-height: 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
  .mode-bar > .group-picker + .mode-button::before { left: -7px; }
  .mode-bar > .mode-button + .mode-button::before { left: -3px; }
  .mode-bar > .mode-button .nav-icon { display: none; }
  .mode-bar > .mode-button .mode-glyph {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    border-width: 1px;
  }
  .mode-bar > .mode-button:hover,
  .mode-bar > .mode-button:focus-visible {
    color: var(--ink);
    background: rgba(255,255,255,.055);
    border-radius: 50%;
  }
  .mode-bar > .mode-button.active {
    color: var(--blue-2) !important;
    background: transparent !important;
  }
  .mode-bar > .mode-button.active:hover,
  .mode-bar > .mode-button.active:focus-visible {
    color: var(--blue-2) !important;
    background: rgba(255,255,255,.055) !important;
    border-radius: 50%;
  }
}

@media (orientation: landscape) and (max-width: 820px) and (pointer: coarse) {
  .mode-bar { gap: 8px; padding-inline: 0; }
  .mode-bar > .top-settings { flex-basis: 46px; }
  .mode-bar > .list-day-current {
    flex: 0 1 auto;
    width: fit-content;
    min-width: 0;
    max-width: 228px;
  }
  .mode-bar > .list-day-current > .nav-list-current {
    max-width: 150px;
  }
  .mode-bar > .group-picker {
    flex-basis: 72px;
    grid-template-columns: 72px;
    gap: 0;
    margin-left: 0;
    margin-right: 0;
  }
  .mode-bar > .mode-button,
  .mode-bar > .mode-button[data-mode="wrong"] {
    flex-basis: 38px;
    width: 38px;
  }
  .mode-bar > .group-picker + .mode-button::before { left: -3px; }
  .mode-bar > .mode-button + .mode-button::before { left: -2px; }
}

@media (max-width: 580px) and (orientation: portrait) {
  .mode-bar .nav-list-popover {
    top: calc(max(12px, env(safe-area-inset-top)) + 57px);
  }
  .mode-bar > .top-settings {
    border-right: 0;
  }
  .mode-bar > .list-day-current {
    flex: 0 1 auto;
    width: fit-content;
    min-width: 0;
    max-width: none;
    margin-inline: var(--list-day-space);
    border-radius: 7px;
  }
  .mode-bar > .list-day-current > .nav-list-current {
    flex: 0 1 auto;
    width: fit-content;
  }
  .mode-bar > .list-day-current .nav-list-button,
  .mode-bar > .list-day-current .day-menu-label {
    border-radius: 0;
  }
  .mode-bar > .list-day-current .nav-list-button { border-radius: 7px 0 0 7px; }
  .mode-bar > .list-day-current .day-menu-label {
    padding: 0 var(--list-day-edge-space) 0 var(--list-day-half-space);
    border-radius: 0 7px 7px 0;
  }
  .mode-bar > .group-picker {
    flex: 0 0 71px;
    min-width: 71px;
    grid-template-columns: 71px;
    gap: 0;
  }
  .mode-bar > .group-picker .card-menu-label {
    border-right: 0;
  }
  .mode-bar > .mobile-mode-menu {
    border-left: 0;
  }
}

@media (max-height: 700px) and (max-width: 1000px) and (orientation: landscape) {
  .study-view > .main-account-button[data-tooltip],
  .study-view.compact-practice-footer > .main-account-button[data-tooltip] {
    position: fixed;
    left: max(12px, calc(env(safe-area-inset-left) + 12px));
    bottom: max(10px, env(safe-area-inset-bottom));
  }
  .card-footer-meta {
    position: fixed;
    left: max(72px, calc(env(safe-area-inset-left) + 72px));
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}

/* Keep autoplay marks as quiet as the former activity-navigation icons while
   preserving the full 44px pointer and touch target. */
.card-autoplay-button svg {
  width: 16px;
  height: 16px;
}

/* Word-bank plans and progress live directly in the first selector layer. */
.nav-list-popover {
  width: min(500px, calc(100vw - 24px));
  min-width: min(500px, calc(100vw - 24px));
}
.nav-list-options { max-height: min(58vh, 360px); }
.nav-list-option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1ch;
  min-height: 48px;
  padding: 2px 6px;
  border-radius: 8px;
}
.nav-list-option-row .nav-select-option { min-width: 0; padding-inline: 10px 0; white-space: nowrap; }
.nav-list-option-row .nav-select-option .nav-list-option-copy {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}
.nav-list-option-row .nav-select-option .nav-list-option-name {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}
.nav-list-option-row .nav-select-option small {
  margin-left: 4px;
  font-size: .7rem;
}
.nav-bank-tools {
  width: 216px;
  min-width: 216px;
  display: grid;
  grid-template-columns: 60px 68px 34px 44px;
  align-items: center;
  justify-content: end;
  column-gap: 0;
}
.nav-bank-plan { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 3px; color: var(--muted); font-size: .74rem; white-space: nowrap; }
.nav-bank-plan select {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.055);
  font: inherit;
  font-size: .8rem;
  font-weight: 620;
  text-align: center;
  text-align-last: center;
  cursor: pointer;
}
.nav-bank-plan select::-ms-expand { display: none; }
.nav-bank-progress { min-width: 0; width: 100%; padding-right: 1ch; box-sizing: border-box; display: flex; align-items: center; }
.nav-bank-progress .settings-progress-track { flex: 1 1 auto; min-width: 0; }
.nav-bank-actions { display: contents; }
.nav-bank-reset, .nav-list-delete { position: relative; overflow: visible; color: var(--muted); }
.nav-bank-reset:disabled {
  opacity: .28;
  cursor: default;
  pointer-events: none;
}
.nav-bank-reset { min-width: 34px; width: 34px; }
.nav-list-delete { min-width: 44px; width: 44px; }
.nav-bank-reset[data-confirm="true"], .nav-list-delete[data-confirm="true"] { color: var(--blue); }
.nav-bank-reset::before, .nav-list-delete::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  transition: background .12s ease;
  pointer-events: none;
}
.nav-bank-reset::before { transform: translate(-50%, -50%) translateX(7px); }
.nav-list-delete::before { transform: translate(-50%, -50%) translateX(-6px); }
.nav-bank-reset svg, .nav-list-delete svg { position: relative; z-index: 1; }
.nav-bank-reset svg { transform: translateX(7px); }
.nav-list-delete svg { transform: translateX(-6px); }
.nav-bank-reset[data-confirm="true"]::after,
.nav-list-delete[data-confirm="true"]::after {
  content: attr(data-confirm-label);
  position: absolute;
  top: 50%;
  right: calc(100% - 7px);
  transform: translateY(-50%);
  z-index: 20;
  height: 30px;
  min-height: 30px;
  padding: 0 8px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--blue-2);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  font-size: .7rem;
  font-weight: 450;
  line-height: 1;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
}
.nav-bank-reset[data-confirm="true"]::after { right: calc(100% - 9px); }
.nav-list-delete[data-confirm="true"]::after { right: calc(100% - 1px); }
@media (hover: hover) and (pointer: fine) {
  .nav-bank-reset:hover,
  .nav-list-delete:hover { color: #9fc9f4; background: transparent; }
  .nav-bank-reset:hover::before,
  .nav-list-delete:hover::before { background: rgba(159,201,244,.13); }
}

/* Account identity and settings use separate rows. */
.main-account-panel {
  --account-preferences-gap: 8px;
  --account-controls-width: 336px;
  z-index: 140;
  bottom: 48px;
  width: min(448px, calc(100% - 24px));
}
.account-panel-head {
  min-height: 80px;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
  padding: 5px 0 7px;
}
.account-identity { min-width: 0; width: 100%; flex: 1 1 auto; display: grid; grid-template-columns: minmax(0,max-content) 44px minmax(0,1fr) 44px; align-items: center; }
.account-panel-head .account-entry-button { min-width: 0; max-width: 100%; padding-left: 0; grid-column: 1; }
.account-identity .account-signout-button { grid-column: 2; }
.account-identity .account-upgrade-button { grid-column: 4; }
.account-signout-button { padding: 0; border: 0; color: var(--muted); background: transparent; display: grid; place-items: center; cursor: pointer; }
.account-signout-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-avatar { width: 28px; height: 28px; margin-right: 8px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; background: var(--blue-2); font-size: .78rem; font-weight: 700; }
.account-signout-button[data-confirm="true"] { color: #fff; }
.account-signout-button[data-confirm="true"] svg { display: none; }
.account-signout-button[data-confirm="true"]::after { content: "确认退出？"; }
.download-category-tabs { display: flex; align-items: center; gap: 0; padding: 3px; overflow-x: auto; border-radius: 9px; background: rgba(255,255,255,.035); scrollbar-width: none; }
.download-category-tabs::-webkit-scrollbar { display: none; }
.download-category { position: relative; flex: 0 0 auto; min-height: 34px; margin: 0; padding: 0 12px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: .76rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color .14s ease, background-color .14s ease; }
.download-category + .download-category::before { content: "｜"; position: absolute; left: -7px; top: 50%; color: rgba(170,185,201,.58); font-weight: 400; transform: translateY(-52%); pointer-events: none; }
.download-category:hover, .download-category:focus-visible { color: #eef7ff; background: rgba(77,147,218,.16); }
.download-category[aria-expanded="true"] { color: #eef7ff; background: rgba(77,147,218,.28); }
.download-category-contents { padding-top: 7px; }
.download-category-contents[hidden] { display: none; }
.download-category-empty { margin: 8px 10px; color: rgba(170,185,201,.72); font-size: .72rem; }
.word-list-download-action { width: 38px; min-width: 38px; padding: 0; display: grid; place-items: center; color: #9fc9f4; }
.word-list-download-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.account-inline-statistics {
  min-width: 0;
  grid-column: 2;
  margin-left: 0;
  display: flex;
  align-items: baseline;
  color: rgba(198,213,231,.68);
  font-size: .7rem;
  font-weight: 420;
  letter-spacing: 0;
  text-align: left;
  flex-wrap: nowrap;
  gap: 0;
}
.account-stat-summary { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; font-size: .82rem; }
.account-stat-breakdown { display: inline-block; margin-left: 9px; white-space: nowrap; color: rgba(198,213,231,.5); font-size: .62rem; }
.account-stat-metric { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.account-stat-separator { color: rgba(198,213,231,.38); font-weight: 400; }
.account-inline-statistics b {
  color: rgba(244,249,255,.94);
  font-size: .78rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}
.account-inline-statistics small { color: inherit; font: inherit; }
.account-inline-statistics .account-stat-summary b { color: rgba(244,249,255,.96); font-size: .82rem; font-weight: 590; }
.account-inline-statistics .account-stat-breakdown b { color: rgba(198,213,231,.7); font-size: .64rem; font-weight: 520; }
.account-stat-breakdown > .account-stat-metric:first-child { margin-left: 4px; }
.account-stat-breakdown > .account-stat-metric:last-child { margin-right: 4px; }
.account-statistics-detail-row { grid-template-columns: 78px minmax(0, 1fr) 44px !important; }
.account-statistics-detail-row .account-usage-reset-button { grid-column: 3; }
.account-usage-reset-button { position: relative; overflow: visible; }
.account-usage-reset-button[data-confirm="true"] { color: var(--blue); }
.account-usage-reset-button[data-confirm="true"]::after {
  content: attr(data-confirm-label);
  position: absolute;
  top: 50%;
  right: calc(100% - 2px);
  transform: translateY(-50%);
  z-index: 20;
  height: 30px;
  padding: 0 8px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--blue-2);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  font-size: .7rem;
  font-weight: 450;
  line-height: 1;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
}
.account-preferences-row {
  display: flex;
  align-items: center;
  width: var(--account-controls-width);
  gap: var(--account-preferences-gap);
  padding-left: 14px;
}
.memory-mode-segment,
.account-sound-controls { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
.memory-mode-segment {
  display: grid;
  grid-template-columns: auto auto;
  padding: 2px;
  border-radius: 9px;
  background: rgba(255,255,255,.035);
}
.account-sound-controls .accent-segment { width: auto; grid-template-columns: auto auto; padding: 2px; border-radius: 9px; background: rgba(255,255,255,.035); }
.memory-mode-segment button,
.account-sound-controls .accent-segment button,
.account-panel-head .account-protection-button {
  flex: 0 0 43px;
  width: 43px;
  min-width: 43px;
  max-width: 43px;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 0 7px;
  border: 0;
  border-radius: 7px;
  font-size: .78rem;
  line-height: 32px;
}
.memory-mode-segment button {
  flex-basis: 72px;
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  padding-inline: 9px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  white-space: nowrap;
}
.memory-mode-segment button[aria-pressed="true"],
.account-sound-controls .accent-segment button[aria-pressed="true"] {
  color: #eef7ff;
  background: rgba(77,147,218,.28);
  box-shadow: none;
}
.account-sound-controls .sound-toggle-button { width: 43px; min-height: 32px; height: 32px; }
.account-panel-head .account-protection-button {
  flex-basis: 68px;
  width: 68px;
  min-width: 68px;
  max-width: 68px;
  margin: 0;
  color: var(--muted);
  background: rgba(255,255,255,.035);
}
.account-panel-head .account-protection-button[aria-pressed="true"] { color: #eef7ff; background: rgba(77,147,218,.28); box-shadow: none; }
.main-account-panel,
.settings-inline { font-family: var(--font-ui); font-size: .82rem; }
.protection-form {
  width: var(--account-controls-width);
  grid-template-columns: minmax(0, 1fr) 134px;
  column-gap: 5px;
  row-gap: 5px;
}
.protection-form label { justify-self: end; margin-right: 0; }
.protection-form input {
  grid-column: 2;
  width: 134px;
  height: 32px;
  min-height: 32px;
  padding-block: 0;
  border-radius: 5px;
  font-size: 16px;
}
.protection-form span { grid-column: 1 / -1; }
.main-account-button svg { width: 22px; height: 22px; }

/* The book menu uses the same visual system as the word-bank selector. */
.settings-inline {
  position: fixed;
  --editable-list-name-width: clamp(120px, calc(66.666vw - 112px), 230px);
  width: min(500px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  bottom: max(6px, env(safe-area-inset-bottom));
  height: auto;
  max-height: none;
  box-sizing: border-box;
  overflow-anchor: none;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid rgba(226,234,242,.14);
  border-radius: 11px;
  background: rgba(25,43,66,.97);
  box-shadow: 0 14px 34px rgba(3,10,18,.38);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.settings-inline.create-list-expanded {
  bottom: max(6px, env(safe-area-inset-bottom));
  z-index: 240;
  max-height: none;
  overflow: hidden;
}
body.settings-open .study-view { pointer-events: none; }
.nav-select-popover,
.settings-inline,
.main-account-panel,
.mobile-mode-popover {
  border-color: rgba(226,234,242,.14);
  border-radius: 11px;
  background: rgba(25,43,66,.97);
  box-shadow: 0 14px 34px rgba(3,10,18,.38);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.nav-select-option,
.create-controls .settings-text-button,
.import-choice-row,
.download-flyout .word-list-item {
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: .82rem;
}
.settings-inline > .settings-section {
  position: relative; height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
}
.settings-line.create-only-line {
  position: relative; z-index: 12; flex: 0 0 auto; min-height: 0;
  padding-top: 2px; background: rgba(25,43,66,.985);
}
.create-controls { width: 100%; display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; }
.create-controls .settings-text-button {
  width: 100%;
  min-height: 44px;
  padding: 5px 10px;
  border-radius: 9px;
  background: transparent;
  display: grid;
  grid-template-columns: 22px minmax(0,1fr);
  align-items: center;
  column-gap: 8px;
  text-align: left;
  font-size: .82rem;
  transition: color .15s ease, background-color .15s ease;
}
.create-controls .settings-text-button > svg { width: 20px; height: 20px; }
.library-menu-copy { min-width: 0; display: flex; align-items: baseline; gap: 1ch; white-space: nowrap; }
.library-menu-copy strong { color: inherit; font-size: .82rem; font-weight: 650; line-height: 1.15; }
.library-menu-copy small { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: inherit; opacity: .76; font-size: .66rem; font-weight: 450; line-height: 1.25; white-space: nowrap; }
.create-controls .settings-text-button[aria-expanded="true"] {
  color: #fff;
  background: rgba(77,147,218,.22);
  border-radius: 9px;
}
#importChooser:not([hidden]),
#importPreview:not([hidden]),
#downloadPanel:not([hidden]),
#createListPanel:not([hidden]) {
  flex: 0 0 100%;
  width: 100%;
  margin: 2px 0 4px;
  padding: 4px;
  border-top: 1px solid rgba(226,234,242,.09);
  border-radius: 0;
  background: transparent;
}
#createListPanel:not([hidden]) { border-top: 0; }

.owned-list-entries {
  width: 100%; min-height: 0; flex: 1 1 auto; margin-top: 5px; padding-top: 5px;
  overflow-y: auto; overscroll-behavior: none; -webkit-overflow-scrolling: touch;
  border-top: 1px solid rgba(226,234,242,.1);
}
.owned-list-entry .created-list-edit { gap: 0; }
.owned-list-source-icon {
  width: 20px; height: 20px; flex: 0 0 20px; box-sizing: border-box;
  display: inline-grid; place-items: center; margin-right: 6px;
  border: 1px solid rgba(159,201,244,.3); border-radius: 4px;
  color: #9fc9f4; touch-action: none;
}
.owned-list-source-icon svg {
  width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.owned-list-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owned-list-name,
.owned-list-entry .created-list-name-input:not(:focus) {
  color: var(--muted); font-family: var(--font-ui); font-size: .82rem; font-weight: 450;
  line-height: 1.15;
}
.owned-list-entry .created-list-name-input:not(:focus) { padding-left: 0; }
.owned-list-entry .created-list-name-input:not(:focus) + small { margin-left: -5px; }
.owned-list-entry .owned-list-name + small { margin-left: 0; }
.owned-list-edit-message {
  position: relative; z-index: 60; flex: 0 0 auto; margin-left: 1ch; padding: 3px 6px;
  border-radius: 5px; color: #9fc9f4; background: rgba(7,18,31,.96);
  box-shadow: 0 3px 12px rgba(0,0,0,.2); font-size: .7rem; white-space: nowrap;
}
.owned-list-entry .import-source-icon { margin-left: 1ch; }
.owned-list-entry {
  grid-template-columns: minmax(0,1fr) minmax(52px,68px) repeat(3,38px);
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.owned-list-entry .created-list-name-input:focus { -webkit-user-select: text; user-select: text; }
.owned-list-entry:not(.selected) { background: transparent; }
.owned-list-entry:not(.selected):hover { background: rgba(255,255,255,.055); }
.owned-list-entry.dragging {
  opacity: .92; z-index: 30; transform: scale(1.008); background: rgba(77,147,218,.2);
  box-shadow: 0 8px 20px rgba(0,0,0,.24); cursor: grabbing;
}
.owned-list-entry.drag-slot {
  opacity: 1; border-color: transparent; background: transparent;
  box-shadow: none; pointer-events: none;
}
.owned-list-entry.drag-slot > * { visibility: hidden; }
.created-list-workspace.drag-companion-hidden { display: none; }
.owned-list-entry.owned-list-drag-ghost {
  position: fixed; z-index: 9999; margin: 0; pointer-events: none;
  opacity: 1; border: 1px solid rgba(159,201,244,.62);
  background: #243b53 !important; transform: scale(1.018);
  box-shadow: 0 12px 28px rgba(4,15,28,.42);
}
.owned-list-entry.owned-list-drag-ghost > * { visibility: visible !important; }
.owned-list-entry.drag-over-before,
.owned-list-entry.drag-over-after { box-shadow: none; }
.owned-list-dragging, .owned-list-dragging * {
  cursor: grabbing !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}
.owned-list-entry input, .owned-list-entry select, .owned-list-entry button { cursor: auto; }
.owned-list-progress { min-width: 0; padding: 0 6px; display: grid; align-items: center; }
.owned-list-progress .settings-progress-track { width: 100%; }
.owned-list-reset { width: 38px; min-width: 38px; padding: 0; }
.owned-list-entry .created-list-edit { position: relative; z-index: 2; overflow: visible; }
.owned-list-entry.has-inline-ai .created-list-name-input { flex: 0 1 var(--editable-list-name-width); }
.owned-list-entry.has-inline-ai .created-list-name-input:not(:focus) {
  width: var(--list-name-display-width);
  flex: 0 1 var(--list-name-display-width);
}
.owned-list-entry.has-inline-ai .created-list-ai { flex: 0 0 32px; width: 32px; min-height: 32px; margin-left: 1ch; }
.owned-list-entry.has-inline-ai .created-list-ai-prompt:not([hidden]) {
  position: absolute; z-index: 20; top: calc(100% + 3px); right: 8px;
}
.owned-list-entry.selected {
  /* The editing toolbar only has one live column.  Do not keep the progress
     and action columns reserved: on iPad they clipped the inline AI control. */
  grid-template-columns: minmax(0,1fr);
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(25,43,66,.985);
}
.owned-list-entry.selected .created-list-ai {
  position: relative;
  z-index: 4;
  pointer-events: auto;
}
.owned-list-entry.selected .created-list-name-input:focus ~ .created-list-ai {
  display: inline-grid !important;
}
.owned-list-entry.selected .created-list-edit {
  width: 100%;
  overflow: visible;
}
.owned-list-entry.selected.has-inline-ai .created-list-name-input {
  min-width: 0;
  max-width: var(--editable-list-name-width);
}
.owned-list-entry.source-import.selected .created-list-edit > .import-source-icon { display: none; }
.create-list-name.existing-list-tools { justify-content: flex-end; }

.create-list-panel { display: grid; gap: 8px; min-width: 0; }
.create-word-row button {
  min-height: 32px; padding: 0 10px; border: 1px solid rgba(159,201,244,.32); border-radius: 8px;
  color: #9fc9f4; background: transparent; font: inherit; font-size: .72rem; cursor: pointer;
}
.created-list-entries { display: grid; gap: 3px; }
.library-account-message {
  position: absolute;
  z-index: 20;
  right: 6px;
  left: 6px;
  min-height: 36px;
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .74rem;
  text-align: center;
  pointer-events: none;
}
.library-account-message[hidden] { display: none; }
.created-list-workspace {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 7px;
  border-top: 0;
  background: transparent;
}
.created-list-workspace[hidden] { display: none; }
.created-list-empty { margin: 5px 2px; color: var(--muted); font-size: .72rem; }
.created-list-entry { position: relative; min-width: 0; min-height: 38px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; border-radius: 8px; background: rgba(255,255,255,.035); }
.created-list-entry.has-ai { grid-template-columns: minmax(0,1fr) repeat(3,auto); }
.created-list-entry.has-ai .created-list-ai-prompt:not([hidden]) {
  position: absolute; z-index: 20; top: calc(100% + 3px); right: 76px;
}
.created-list-entry.has-ai > .created-list-ai { grid-column: 2; grid-row: 1; }
.created-list-entry.has-ai > .created-list-delete { grid-column: 3; grid-row: 1; }
.created-list-entry.has-ai > .created-list-load { grid-column: 4; grid-row: 1; }
.imported-list-entries:empty { display: none; }
.imported-list-entry { grid-template-columns: minmax(0,1fr) auto auto; }
.created-list-entry.selected { background: transparent; }
.created-list-entry.selected:has(+ .created-list-workspace) { border-radius: 8px 8px 0 0; }
.created-list-entry.selected + .created-list-workspace {
  margin-top: 0;
  border-radius: 0 0 8px 8px;
}
.created-list-edit,
.created-list-delete,
.created-list-ai,
.created-list-load { min-width: 0; min-height: 38px; border: 0; color: var(--ink); background: transparent; font: inherit; cursor: pointer; }
.created-list-edit { padding: 0 9px; display: flex; align-items: center; gap: 8px; text-align: left; }
.created-list-name-input {
  min-width: 0; width: var(--editable-list-name-width); flex: 0 1 var(--editable-list-name-width); min-height: 30px; box-sizing: border-box; border: 0; border-radius: 6px;
  padding: 0 6px; color: var(--ink); background: transparent; font: inherit; font-size: .82rem; font-weight: 450;
}
.created-list-name-input:focus { outline: 1px solid rgba(159,201,244,.5); color: var(--ink); background: rgba(255,255,255,.06); }
.created-list-name-input:not(:focus) { width: var(--list-name-display-width); flex: 0 1 var(--list-name-display-width); }
.created-list-name-input:focus + small { display: none; }
.created-list-name-input:focus ~ .created-list-ai,
.created-list-name-input:focus ~ .created-list-ai-prompt { display: none !important; }
.created-list-name-input:not(:focus) + small { margin-left: -5px; }
.word-list-dot { width: 4px; height: 4px; flex: 0 0 4px; border-radius: 50%; background: rgba(170,185,201,.72); }
.import-source-icon,
.import-mode-tabs .import-mode-icon {
  width: 16px; height: 16px; flex: 0 0 16px; box-sizing: border-box;
  fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round;
}
.import-source-icon { color: rgba(170,185,201,.82); }
.created-list-edit span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.created-list-edit small { flex: 0 0 auto; color: var(--muted); font-size: .72rem; font-weight: 450; }
.created-list-delete,
.created-list-ai,
.created-list-load { width: 38px; padding: 0; display: inline-grid; place-items: center; color: #9fc9f4; }
.created-list-load:disabled { opacity: .72; cursor: default; }
.created-list-delete svg,
.created-list-ai svg,
.created-list-load svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.created-list-delete[data-confirm="true"] { color: #fff; }
.created-list-ai-prompt {
  padding: 4px 7px; border-radius: 6px; color: var(--ink); background: rgba(7,18,31,.94);
  box-shadow: 0 3px 12px rgba(0,0,0,.2); font-size: .68rem; font-weight: 450;
  line-height: 1; white-space: nowrap; pointer-events: none;
}
.created-list-ai-prompt[hidden] { display: none; }
.created-list-ai-prompt[data-state="notice"] { color: #f2a4aa; }
.created-list-ai-progress { width: 92px; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 5px; }
.created-list-ai-progress > b { color: var(--muted); font-size: .62rem; font-weight: 600; text-align: right; }
.created-list-ai-progress > span { height: 4px; overflow: hidden; border-radius: 999px; background: rgba(226,234,242,.13); }
.created-list-ai-progress > span > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#78c9f2,#75ddb3); transition: width .2s ease; }
.created-list-ai[data-busy="true"] { color: var(--muted); cursor: wait; }

.import-progress { height: 4px; }
.import-summary.is-error { grid-column: 1 / -1; align-items: flex-start; }
.import-summary.is-error strong {
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  line-height: 1.45;
}
.import-review { max-height: min(42vh, 360px); gap: 10px; padding: 4px 1px; }
.import-preview > .settings-text-button {
  min-width: 78px;
  white-space: nowrap;
}
.article-tier-group { display: grid; gap: 5px; }
.article-tier-group h4 { margin: 2px 0; color: #dbeafa; font-size: .76rem; font-weight: 650; }
.article-candidate-row {
  min-width: 0; padding: 7px 8px; border-radius: 8px; background: rgba(255,255,255,.04);
  display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: start; gap: 8px; cursor: pointer;
}
.article-candidate-row:hover { background: rgba(255,255,255,.075); }
.article-candidate-row > input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #4d93da; }
.article-candidate-copy { min-width: 0; display: grid; gap: 2px; }
.article-candidate-copy strong { color: #e6f1fb; font-size: .78rem; font-weight: 650; }
.article-candidate-copy small, .article-source-sentence { color: var(--muted); font-size: .68rem; line-height: 1.35; }
.article-source-sentence { color: #b8c9d9; }
.create-list-name { position: relative; display: flex; align-items: center; color: var(--muted); font-size: .72rem; }
.create-list-name input { width: var(--editable-list-name-width); flex: 0 1 var(--editable-list-name-width); }
.create-list-name .created-list-ai-prompt { position: absolute; z-index: 20; top: calc(100% + 3px); right: 0; text-align: right; }
.create-list-name .created-list-ai { flex: 0 0 38px; margin-left: 1em; }
.main-account-button[data-tooltip] { position: absolute; }
.card-autoplay-button[data-tooltip]::after,
.main-account-button[data-tooltip]::after { content: none; }
.app-tooltip {
  position: fixed; z-index: 320; width: max-content; max-width: calc(100vw - 12px);
  box-sizing: border-box; padding: 4px 7px; border-radius: 6px; color: var(--ink);
  background: rgba(7,18,31,.96); box-shadow: 0 3px 12px rgba(0,0,0,.2);
  font-size: .68rem; font-weight: 450; line-height: 1.15; white-space: nowrap;
  pointer-events: none;
}
.app-tooltip[hidden] { display: none; }
.app-tooltip.has-progress {
  width: 132px; min-height: 25px; display: grid; grid-template-columns: minmax(72px,1fr) auto;
  align-items: center; gap: 7px;
}
.app-tooltip-progress-track {
  height: 5px; overflow: hidden; border-radius: 999px; background: rgba(226,234,242,.16);
}
.app-tooltip-progress-track > i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg,#78c9f2,#75ddb3); transition: width .2s ease;
}
.app-tooltip.has-progress > b { color: var(--ink); font-size: .65rem; font-weight: 600; }
.create-list-name input,
.create-word-row input,
.create-word-row select { min-width: 0; min-height: 34px; box-sizing: border-box; border: 0; border-radius: 0; padding: 0 8px; color: var(--ink); background: transparent; font: inherit; font-size: .72rem; }
.create-list-name input { border-radius: 6px; }
.create-list-name input:focus,
.create-word-row input:focus,
.create-word-row select:focus { outline: 1px solid rgba(159,201,244,.42); background: rgba(255,255,255,.045); }
.create-word-row select,
.created-word-edit-row select { appearance: none; -webkit-appearance: none; background-image: none; }
.create-list-name input[readonly] { color: var(--muted); }
.created-word-editor { width: 100%; min-width: 0; min-height: 180px; max-height: none; display: grid; align-content: start; gap: 4px; overflow: auto; padding-bottom: 6px; scrollbar-width: thin; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: none; }
.created-word-editor[hidden] { display: none; }
.created-word-editor-head,
.created-word-edit-row {
  min-width: 590px;
  display: grid;
  grid-template-columns: 32px var(--created-col-word,minmax(82px,1fr)) var(--created-col-part,minmax(48px,.55fr)) var(--created-col-syllables,minmax(62px,.7fr)) var(--created-col-meaning,minmax(92px,1.15fr)) var(--created-col-example,minmax(130px,1.55fr)) var(--created-col-translation,minmax(130px,1.55fr));
  gap: 5px;
  align-items: center;
}
.created-word-editor-head {
  position: relative; top: auto; z-index: 1; padding: 5px 0;
  color: var(--muted); background: transparent; font-size: .66rem;
  box-shadow: none;
}
.created-word-editor-heading { position: relative; min-width: 0; text-align: center; }
.created-column-resize-handle {
  position: absolute; z-index: 4; top: 50%; right: -8px; width: 10px; height: 24px;
  padding: 0; border: 0; background: transparent; transform: translateY(-50%); cursor: col-resize;
  touch-action: none;
}
.created-column-resize-handle::after {
  content: ""; position: absolute; top: 5px; bottom: 5px; left: 4px; width: 1px;
  background: rgba(159,201,244,.28);
}
.created-column-resize-handle:hover::after,
.created-column-resize-handle:focus-visible::after { background: #9fc9f4; }
.created-word-edit-row input,
.created-word-edit-row select {
  min-width: 0; width: 100%; min-height: 32px; box-sizing: border-box; border: 0; border-radius: 0;
  padding: 0 8px; color: var(--ink); background: transparent; font: inherit; font-size: .7rem;
}
.created-word-edit-row input:focus,
.created-word-edit-row select:focus { outline: 1px solid rgba(159,201,244,.42); background: rgba(255,255,255,.045); }
.created-word-edit-row button {
  min-height: 30px; border: 1px solid rgba(159,201,244,.28); border-radius: 7px;
  color: #9fc9f4; background: transparent; font: inherit; font-size: .68rem; cursor: pointer;
}
.created-word-edit-row .created-word-delete { display: grid; place-items: center; padding: 0; color: var(--muted); }
.created-word-edit-row .created-word-delete,
.create-word-row #addCreatedWord { width: 28px; min-width: 28px; min-height: 28px; height: 28px; justify-self: center; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: .92rem; line-height: 1; }
.created-word-delete svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.create-word-row { min-width: 590px; display: grid; grid-template-columns: 32px var(--created-col-word,minmax(82px,1fr)) var(--created-col-part,minmax(48px,.55fr)) var(--created-col-syllables,minmax(62px,.7fr)) var(--created-col-meaning,minmax(92px,1.15fr)) var(--created-col-example,minmax(130px,1.55fr)) var(--created-col-translation,minmax(130px,1.55fr)); gap: 5px; padding-bottom: 3px; }
.create-word-row input,
.create-word-row select { width: 100%; }
.create-word-row button { min-width: 54px; }
@media (hover: hover) and (pointer: fine) {
  .created-list-entry:not(.selected):hover { background: rgba(255,255,255,.08); }
  .owned-list-entry:hover .owned-list-name,
  .owned-list-entry:hover .created-list-name-input { color: #fff; }
  .created-list-load:not(:disabled):hover,
  .created-list-delete:hover,
  .created-list-ai:hover,
  .created-word-edit-row button:hover,
  .create-word-row button:hover { color: #fff; background: transparent; }
}
@media (max-width: 700px) {
  .settings-inline.create-list-expanded { max-height: none; }
  .created-word-editor { min-height: 160px; max-height: none; }
  .create-list-name input,
  .created-list-name-input,
  .create-word-row input,
  .create-word-row select,
  .created-word-edit-row input,
  .created-word-edit-row select { font-size: 16px; }
}
@media (pointer: coarse) {
  .create-list-name input,
  .created-list-name-input,
  .create-word-row input,
  .create-word-row select,
  .created-word-edit-row input,
  .created-word-edit-row select { font-size: 16px; }
}

@media (max-width: 580px) and (orientation: portrait) {
  .group-picker:not(.active) .card-menu-label {
    color: var(--muted) !important;
    background: transparent !important;
  }
  .group-picker:not(.active) .card-menu-label > span:first-child {
    height: 26px;
    width: auto;
    aspect-ratio: 1.6 / 1;
    padding: 0 4px;
    color: var(--muted);
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 4px;
    box-shadow: 3px -3px 0 -2px var(--navy), 3px -3px 0 -1px currentColor;
    font-size: .66rem;
  }
}

.wrong-book-head { flex-wrap: wrap; }
.inspection-print.is-unavailable { opacity: .45; }
.inspection-print.inspection-inline-message { width: auto; opacity: 1; color: #f2a4aa; white-space: nowrap; }
.wrong-book-head .wrong-summary:not([hidden]) {
  display: block;
  flex: 0 0 100%;
  margin: 2px 0 0;
  color: #f2a4aa;
  text-align: center;
  font-size: .74rem;
}
.import-chooser { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; }
.imported-list-entries { grid-column: 1 / -1; margin-bottom: 3px; }
.import-choice-row { min-width: 0; overflow: visible; border-radius: 0; background: transparent; }
.import-choice-row + .import-choice-row { border-left: 1px solid rgba(226,234,242,.16); }
.import-choice-row .import-mode-button { justify-content: center; padding: 0 4px; }
.import-choice-row .import-mode-button::before { display: none; }
.import-choice-row .import-template-button { width: 32px; border-left: 0; }
.import-choice-row-wide { grid-template-columns: minmax(0,1fr); }
.download-flyout .word-lists { gap: 2px; }
.import-choice-row,
.download-flyout .word-list-item {
  min-height: 44px;
  border-radius: 9px;
  background: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .create-controls .settings-text-button:hover,
  .import-choice-row:hover,
  .download-flyout .word-list-item:hover { color: #fff; background: rgba(255,255,255,.08); }
  .create-controls .settings-text-button[aria-expanded="true"]:hover { background: rgba(77,147,218,.28); }
}
.import-choice-row { border-radius: 0 !important; }
.import-choice-row:hover { background: transparent !important; }

/* Import modes use the same compact tabs, separators and pointer feedback as download categories. */
.import-mode-tabs {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  border-radius: 9px;
  background: rgba(255,255,255,.035);
}
.import-mode-tabs .import-choice-row {
  position: relative;
  flex: 0 0 auto;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 0;
  border-radius: 7px !important;
  color: var(--muted);
  background: transparent;
  font-size: .76rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .14s ease, background-color .14s ease;
}
.import-mode-tabs .import-choice-row + .import-choice-row { border-left: 0; }
.import-mode-tabs .import-choice-row + .import-choice-row::before {
  content: "｜";
  position: absolute;
  left: -7px;
  top: 50%;
  color: rgba(170,185,201,.58);
  font-weight: 400;
  transform: translateY(-52%);
  pointer-events: none;
}
.import-mode-tabs .import-mode-button {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 34px;
  height: 34px;
  padding: 0;
  color: inherit;
  cursor: pointer;
  gap: 5px;
}
.import-mode-tabs .import-mode-button strong { color: inherit; font-size: inherit; font-weight: inherit; }
.import-mode-tabs .import-template-button {
  flex: 0 0 18px;
  width: 18px;
  min-height: 34px;
  height: 34px;
  margin-left: 1em;
  color: #9fc9f4;
  cursor: pointer;
}
.import-mode-tabs .import-template-button svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .import-mode-tabs .import-choice-row:hover,
  .import-mode-tabs .import-choice-row:focus-within {
    color: #eef7ff;
    background: rgba(77,147,218,.16) !important;
  }
}

/* Hover only lifts contrast; it never changes the stacked-card structure. */
@media (hover: hover) and (pointer: fine) {
  .group-picker:not(.active) .card-menu-label:hover > span:first-child {
    transform: none;
    color: rgba(246,250,255,.98) !important;
    border-color: rgba(246,250,255,.94) !important;
    background: rgba(255,255,255,.035) !important;
    box-shadow:
      3px -3px 0 -2px var(--navy),
      3px -3px 0 -1px rgba(246,250,255,.9) !important;
  }
}

@media (max-width: 580px) {
  .main-account-panel {
    --account-preferences-gap: 4px;
    --account-controls-width: 328px;
  }
  .account-statistics-detail-row { grid-template-columns: 74px minmax(0, 1fr) 44px !important; }
  .nav-list-popover {
    left: max(6px, env(safe-area-inset-left));
    right: max(6px, env(safe-area-inset-right));
    width: auto;
    min-width: 0;
    max-width: none;
  }
  .nav-list-option-row {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1ch;
    padding-inline: 2px;
  }
  .nav-list-option-row .nav-select-option { padding-inline: 8px 0; gap: 2px; font-size: .76rem; }
  .nav-list-option-name { padding-left: 9px; }
  .nav-list-option-name::before { left: 0; width: 3px; height: 3px; }
  .nav-list-option-row .nav-select-option small { font-size: .68rem; }
  .nav-bank-plan { gap: 1px; font-size: .72rem; }
  .nav-bank-plan select { width: 30px; font-size: .74rem; }
  .nav-bank-tools { width: 163px; min-width: 163px; grid-template-columns: 30px 61px 26px 36px; column-gap: 0; }
  .nav-bank-reset { min-width: 26px; width: 26px; }
  .nav-list-delete { min-width: 36px; width: 36px; }
  .nav-bank-reset::before { transform: translate(-50%, -50%) translateX(2px); }
  .nav-bank-reset svg { transform: translateX(2px); }
  .main-account-panel {
    left: max(4px, env(safe-area-inset-left));
    right: max(4px, env(safe-area-inset-right));
    width: auto;
    max-width: none;
  }
  .main-account-button,
  .card-footer-meta { bottom: max(12px, env(safe-area-inset-bottom)); }
  .card-hint { bottom: max(84px, calc(env(safe-area-inset-bottom) + 76px)); }
  .settings-inline { width: calc(100vw - 12px); max-width: calc(100vw - 12px); }
  .account-panel-head { padding-bottom: 7px; }
  .account-identity { flex-basis: auto; }
  .account-panel-head .account-entry-button { max-width: calc(100% - 30px); }
  .account-inline-statistics { font-size: .68rem; }
  .account-inline-statistics b { font-size: .76rem; }
}

.day-select-popover .nav-select-option { white-space: nowrap; }

@media (max-width: 360px) {
  .main-account-panel {
    --account-preferences-gap: 2px;
    --account-controls-width: 324px;
  }
  .account-panel-head { min-height: 80px; }
  .account-preferences-row { padding-left: 14px; }
  .account-panel-head .account-protection-button { margin-left: 0; }
}

@media (max-width: 580px) and (orientation: portrait) {
  .account-inline-statistics { flex-wrap: nowrap; font-size: .64rem; }
  .account-stat-summary,
  .account-stat-summary b { font-size: .7rem; }
  .account-stat-summary { gap: 4px; }
  .account-stat-metric { gap: 3px; }
  .wrong-word-row:has(.wrong-word-modes) { padding-top: 8px; padding-bottom: 8px; align-items: center; }
  .wrong-word-row:has(.wrong-word-modes) .wrong-word-copy { transform: none; align-self: center; }
  .wrong-meta { width: 112px; min-width: 112px; }
  .wrong-meta-headline {
    grid-template-columns: auto auto auto;
    grid-template-rows: auto;
    align-items: center;
    column-gap: 4px;
  }
  .wrong-status-label,
  .wrong-meta-separator,
  .wrong-error-count { grid-row: 1; align-self: center; }
  .wrong-status-label { grid-column: 1; }
  .wrong-meta-separator { grid-column: 2; }
  .wrong-error-count { grid-column: 3; justify-self: end; }
  .wrong-review-count { display: none; }
  .wrong-word-row .wrong-meta .wrong-word-modes {
    position: static;
    width: 100%;
    justify-content: space-between;
    gap: 0;
    margin: 0;
    padding-top: 4px;
  }
  .wrong-word-row.is-flipped { min-height: 68px; }
  .wrong-word-row.is-flipped > .wrong-word-back {
    min-height: 50px;
    align-content: center;
  }
}

@media (min-width: 581px) and (max-width: 1366px) and (pointer: coarse) {
  .nav-list-popover {
    width: min(440px, calc(100vw - 32px));
    min-width: min(440px, calc(100vw - 32px));
  }
  .nav-list-option-row {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1ch;
  }
  .nav-bank-tools { width: 198px; min-width: 198px; grid-template-columns: 44px 66px 34px 44px; column-gap: 0; }
  .settings-inline { width: min(440px, calc(100vw - 32px)); }
  .main-account-button,
  .card-footer-meta { bottom: max(16px, env(safe-area-inset-bottom)); }
}

@media (min-width: 581px) and (pointer: fine) {
  .nav-select-popover.nav-list-popover {
    width: min(500px, calc(100vw - 24px));
    min-width: min(500px, calc(100vw - 24px));
  }
}

@media (min-width: 581px) and (max-width: 1366px) and (orientation: portrait) {
  .choice-grid.matching-board.word-meaning-board,
  .choice-grid.matching-board.sentence-word-board {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: clamp(12px, 2vw, 18px);
  }
  .choice-grid.matching-board > .matching-column,
  .choice-grid.matching-board .matching-button {
    width: 100% !important;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    justify-self: stretch;
  }
}

.card-autoplay-button:disabled {
  opacity: .28;
  cursor: default;
  pointer-events: none;
}

@media (max-height: 580px) and (max-width: 1000px) and (orientation: landscape) {
  .main-account-panel {
    top: max(6px, env(safe-area-inset-top));
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 44px);
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .practice-view.embedded-keyboard-mode {
    --practice-keyboard-offset: max(42px, calc(env(safe-area-inset-bottom) + 34px));
  }

  .practice-keyboard.phone-keyboard .key-submit,
  .progress-fill {
    background: var(--blue-2) !important;
  }

  .practice-view.embedded-keyboard-mode.direct-prompt-input .practice-prompt {
    bottom: calc(var(--practice-keyboard-height, 138px) + var(--practice-keyboard-offset) + 2px);
  }
}

@media (min-width: 581px) and (max-width: 1366px) and (pointer: coarse) and (orientation: portrait) {
  .practice-view.embedded-keyboard-mode.direct-prompt-input .practice-prompt {
    bottom: calc(
      var(--practice-keyboard-height, 190px)
      + var(--practice-keyboard-offset)
      + clamp(22px, 3vh, 34px)
      + clamp(16px, 2vh, 24px)
      + clamp(16px, 2vh, 22px)
    );
  }
}

/* Navigation must remain the highest interactive layer on tablet and phone.
   This is unconditional so landscape viewport and pointer detection cannot
   let a fixed prompt or keyboard intercept navigation taps. */
@media (max-width: 1366px) {
  .mode-bar {
    z-index: 130;
  }

  .mode-bar .nav-select-popover,
  .mode-bar .mobile-mode-popover {
    z-index: 135;
  }

  .nav-list-current:has(.nav-list-button[aria-expanded="true"]),
  .day-current:has(.day-menu-label[aria-expanded="true"]),
  .group-current:has(.card-menu-label[aria-expanded="true"]),
  .mobile-mode-menu[open] {
    z-index: 134;
  }
}

/* Forgetting value: a compact 0-9 signal replaces exposed error/review counts. */
.wrong-meta-headline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}
.forgetting-value {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff !important;
  font-size: .68rem !important;
  font-weight: 800;
  line-height: 1;
}
.forgetting-value.risk-0,
.forgetting-value.risk-1,
.forgetting-value.risk-2 { background: #28a76f; }
.forgetting-value.risk-3,
.forgetting-value.risk-4,
.forgetting-value.risk-5 { background: #ec8128; }
.forgetting-value.risk-6,
.forgetting-value.risk-7,
.forgetting-value.risk-8,
.forgetting-value.risk-9 { background: #d94c55; }
.forgetting-value.is-unlearned {
  background: transparent;
  border: 2px solid #8e98aa;
}
@media (max-width: 580px) and (orientation: portrait) {
  .wrong-meta-headline { display: flex; justify-content: flex-end; }
}

.account-login-dialog {
  width: min(420px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 0;
  border: 1px solid rgba(155, 177, 201, .32);
  border-radius: 20px;
  background: #17283c;
  color: var(--text);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
}

.account-login-dialog::backdrop {
  background: rgba(7, 15, 25, .78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.account-login-dialog form { position: relative; padding: 28px; }
.account-login-brand,
.account-plans-brand { color: rgba(170,185,201,.72); font-size: .7rem; font-weight: 400; line-height: 1.5; }
.account-login-brand { margin: 10px 0 0; text-align: center; }
.account-login-dialog h2 { margin: 0 0 8px; font-size: 1.45rem; }
.account-login-dialog form > p:not(.account-login-brand):not(.account-login-message):not(.account-login-safety) { margin: 0 0 22px; color: var(--muted); line-height: 1.55; }
.account-login-dialog label { display: block; margin: 14px 0 7px; color: var(--muted); font-size: .92rem; }
.account-login-dialog input {
  width: 100%; min-height: 46px; box-sizing: border-box; padding: 10px 12px;
  border: 1px solid rgba(155, 177, 201, .35); border-radius: 11px;
  background: #0f1e2f; color: var(--text); font: inherit;
}
.account-login-dialog input:focus { outline: 2px solid var(--blue-2); outline-offset: 1px; }
.account-login-dialog .primary-button { width: 100%; min-height: 46px; margin-top: 12px; }
.account-login-close { position: absolute; top: 13px; right: 15px; border: 0; background: none; color: var(--muted); font-size: 1.8rem; cursor: pointer; }
.account-login-message { min-height: 1.5em; margin: 12px 0 0; color: #ffc36b; font-size: .92rem; line-height: 1.5; }
.account-login-back { display: block; margin: 12px auto 0; border: 0; background: none; color: #9bc7ff; font: inherit; cursor: pointer; }
.account-login-safety { margin: 18px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; text-align: center; }

/* Account commerce stays inside the app and reuses the established navy UI. */
.account-plans-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: min(88dvh, 760px);
  box-sizing: border-box;
  padding: 0;
  border: 1px solid rgba(226,234,242,.14);
  border-radius: 16px;
  background: rgba(25,43,66,.98);
  color: var(--ink);
  box-shadow: 0 24px 68px rgba(3,10,18,.44);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.account-plans-dialog::backdrop {
  background: rgba(7,17,30,.72);
  -webkit-backdrop-filter: blur(10px) saturate(110%);
  backdrop-filter: blur(10px) saturate(110%);
}
.account-plans-shell { max-height: min(88dvh, 760px); overflow-y: auto; padding: 20px; }
.account-plans-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.account-plans-title { min-width: 0; display: flex; align-items: flex-end; gap: 2em; }
.account-plans-head h2 { margin: 0; font-size: 1.28rem; font-weight: 650; }
.account-plans-title .account-plans-brand { flex: none; margin: 0 0 .08em; text-align: left; }
.account-overlay-close {
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 9px;
  color: var(--muted); background: transparent; font-size: 1.65rem; line-height: 1; cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .account-overlay-close:hover { color: var(--ink); background: rgba(255,255,255,.055); } }
.billing-segment {
  width: max-content; margin: 18px 0 12px; padding: 2px;
  display: grid; grid-template-columns: repeat(2, 62px); gap: 2px;
  border-radius: 9px; background: rgba(255,255,255,.035);
}
.billing-segment button {
  min-height: 34px; padding: 0 10px; border: 0; border-radius: 7px;
  color: var(--muted); background: transparent; cursor: pointer;
}
.billing-segment button[aria-pressed="true"] { color: #eef7ff; background: rgba(77,147,218,.28); }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; scroll-margin-top: 12px; }
.plan-card {
  position: relative; min-width: 0; padding: 15px 13px 13px;
  border: 1px solid rgba(226,234,242,.11); border-radius: 11px;
  background: rgba(255,255,255,.025);
}
.plan-card.is-recommended { border-color: rgba(114,184,232,.36); }
.plan-card.is-current { background: rgba(77,147,218,.11); border-color: rgba(114,184,232,.45); }
.plan-recommendation {
  position: absolute; top: 9px; right: 9px; color: var(--amber);
  font-size: .66rem; font-weight: 550;
}
.plan-card h3 { margin: 0 0 9px; font-size: .94rem; font-weight: 620; }
.plan-price { min-height: 30px; margin: 0 0 10px; color: #f4f9ff; font-size: 1.2rem; font-weight: 640; }
.plan-price small { margin-left: 2px; color: var(--muted); font-size: .68rem; font-weight: 440; }
.plan-yearly-summary { min-height: 1.45em; margin: -6px 0 9px; color: #f2c14f; font-size: .68rem; font-weight: 560; line-height: 1.45; }
.account-plans-dialog[data-billing="monthly"] [data-price-yearly],
.account-plans-dialog[data-billing="yearly"] [data-price-monthly] { display: none; }
.plan-card ul { min-height: 96px; margin: 0 0 12px; padding: 0; list-style: none; color: var(--muted); font-size: .75rem; line-height: 1.7; }
.plan-card button,
.upgrade-extra-row button {
  width: 100%; min-height: 36px; padding: 0 10px;
  border: 1px solid rgba(226,234,242,.11); border-radius: 8px;
  color: rgba(226,234,242,.56); background: rgba(255,255,255,.035);
  font: inherit; font-size: .76rem;
}
.plan-card button:disabled,
.upgrade-extra-row button:disabled { opacity: 1; cursor: not-allowed; }
.plan-card.is-current button { color: var(--blue); background: rgba(77,147,218,.12); }
.upgrade-extras { margin-top: 18px; padding-top: 15px; border-top: 1px solid rgba(226,234,242,.1); }
.upgrade-extra-row {
  min-height: 54px; display: grid; grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center; gap: 14px; padding: 5px 7px; border-radius: 9px;
  transition: background .18s ease;
}
.upgrade-extra-row.is-target { background: rgba(77,147,218,.13); }
.upgrade-extra-row > span { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.upgrade-extra-row strong { flex: 0 0 64px; color: var(--ink); font-size: .8rem; font-weight: 580; }
.upgrade-extra-row small { min-width: 0; color: var(--muted); font-size: .72rem; line-height: 1.45; white-space: nowrap; }
.account-plans-note { margin: 12px 7px 0; color: rgba(170,185,201,.72); font-size: .7rem; line-height: 1.5; }
.account-plans-dialog.is-expired .account-overlay-close { visibility: hidden; }
.app-toast {
  position: fixed; left: 50%; bottom: max(28px, calc(env(safe-area-inset-bottom) + 18px)); z-index: 700;
  min-height: 34px; padding: 0 13px; border: 1px solid rgba(226,234,242,.12); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); background: rgba(32,54,80,.97); box-shadow: 0 8px 24px rgba(3,10,18,.3);
  font-size: .78rem; font-weight: 480; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(-50%, 6px); transition: opacity .18s ease, transform .18s ease;
}
.app-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-card ul { min-height: 82px; }
}

@media (max-width: 580px) and (orientation: portrait) {
  .account-plans-dialog {
    width: calc(100vw - 8px); max-width: none; height: calc(100dvh - 8px); max-height: none;
    margin: 4px; border-radius: 13px;
  }
  .account-plans-shell {
    height: 100%; max-height: none; padding: max(16px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
  }
  .plan-grid { grid-template-columns: 1fr; gap: 7px; }
  .plan-card { padding: 13px 12px 11px; display: grid; grid-template-columns: minmax(72px, .8fr) minmax(92px, 1fr); column-gap: 10px; align-items: center; }
  .plan-card h3, .plan-card .plan-price { margin: 0; }
  .plan-card .plan-yearly-summary { grid-column: 2; margin: 2px 0 0; }
  .plan-card ul { grid-column: 1 / -1; min-height: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
  .plan-card button { grid-column: 1 / -1; }
  .upgrade-extra-row { grid-template-columns: minmax(0, 1fr) 92px; gap: 8px; padding-inline: 4px; }
  .upgrade-extra-row > span { gap: 6px; }
  .upgrade-extra-row strong { flex-basis: 54px; }
  .upgrade-extra-row small { font-size: .66rem; }
}

@media (max-width: 1000px) {
  .upgrade-extra-row > span { min-width: 0; align-items: flex-start; }
  .upgrade-extra-row small { min-width: 0; white-space: normal; overflow-wrap: break-word; line-height: 1.35; }
}

.data-safety-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 15, 25, .76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.data-safety-overlay[hidden] { display: none; }

.daily-transition-dialog {
  width: min(440px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 0;
  border: 1px solid rgba(155,177,201,.32);
  border-radius: 20px;
  background: #17283c;
  color: var(--text);
  box-shadow: 0 28px 80px rgba(0,0,0,.45);
}
.daily-transition-dialog::backdrop {
  background: rgba(7,15,25,.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.daily-transition-card { padding: 28px; text-align: center; }
.daily-transition-card h2 { margin: 0; font-size: 1.35rem; line-height: 1.45; }
.daily-transition-words {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.daily-transition-error-count { color: #ff6b78; }
.daily-transition-card .primary-button {
  width: 100%;
  min-height: 46px;
  margin-top: 22px;
  border-radius: 11px;
}

.data-safety-card {
  width: min(420px, calc(100vw - 48px));
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid rgba(155, 177, 201, .3);
  border-radius: 18px;
  background: #17283c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
  color: var(--text);
}

.data-safety-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.data-safety-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.data-safety-card .primary-button {
  width: 100%;
  min-height: 44px;
}

@media (max-width: 580px) and (orientation: portrait) {
  .practice-view.spell-mode .spelling-prompt {
    font-size: clamp(3rem, 14vw, 4rem);
  }

  .practice-view.spell-mode .spelling-prompt.word-medium,
  .practice-view.spell-mode .spelling-prompt.word-mobile-medium {
    font-size: clamp(2.65rem, 12vw, 3.35rem);
  }

  .practice-view.spell-mode .spelling-prompt.word-long,
  .practice-view.spell-mode .spelling-prompt.word-mobile-long {
    font-size: clamp(2.2rem, 10vw, 2.85rem);
  }
}

/* Open the word-library panel at the top safe edge so its own navigation does
   not leave an empty application-header row above it. */
.settings-inline {
  top: max(6px, env(safe-area-inset-top));
  z-index: 140;
}

@media (max-width: 1366px) {

  /* Direct keyboard input does not require pointer handling on the visual
     prompt; allowing taps through guarantees the navigation remains usable. */
  .practice-view.embedded-keyboard-mode.direct-prompt-input .practice-prompt {
    pointer-events: none;
  }
}

/* In-place confirmation buttons share the application's blue surface. */
button[data-confirm="true"][data-confirm-label] {
  position: relative; z-index: 25; overflow: visible;
}
button[data-confirm="true"][data-confirm-label]::after {
  content: attr(data-confirm-label); position: absolute; top: 50%; right: 0; bottom: auto; left: auto;
  transform: translateY(-50%); display: flex; align-items: center; justify-content: center;
  width: max-content; min-width: 100%; height: 30px; min-height: 30px;
  box-sizing: border-box; padding: 0 9px; border-radius: 7px;
  background: var(--blue-2); color: #fff; font-size: .72rem;
  font-weight: 600; line-height: 1; white-space: nowrap;
  cursor: pointer; pointer-events: auto; z-index: 26;
}
.owned-list-reset[data-confirm="true"][data-confirm-label]::after {
  inset: auto 0 auto auto; top: 50%; right: 0; transform: translateY(-50%);
  width: max-content; min-width: 100%; height: 30px; min-height: 30px;
  padding: 0 9px; border-radius: 7px; font-size: .72rem; font-weight: 600;
}
/* Word-library reset, delete and load actions share one icon treatment. */
.owned-list-entry .owned-list-reset,
.owned-list-entry .created-list-delete,
.owned-list-entry .created-list-load {
  position: relative; width: 38px; min-width: 38px; height: 38px; min-height: 38px;
  padding: 0; border: 0; border-radius: 50%; display: inline-grid; place-items: center;
  color: var(--muted); background: transparent;
  transition: color .12s ease, background .12s ease;
}
.owned-list-entry .owned-list-reset::before { content: none; }
.owned-list-entry .owned-list-reset svg,
.owned-list-entry .created-list-delete svg,
.owned-list-entry .created-list-load svg {
  width: 17px; height: 17px; transform: none; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.owned-list-entry .owned-list-reset svg { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) {
  .owned-list-entry .owned-list-reset:not(:disabled):hover,
  .owned-list-entry .created-list-delete:not(:disabled):hover,
  .owned-list-entry .created-list-load:not(:disabled):hover {
    color: #9fc9f4; background: rgba(159,201,244,.13);
  }
}

/* Keep the library commands visually above the quieter owned-list content. */
.settings-line.create-only-line {
  margin: 4px 6px 8px;
  padding: 6px;
  border: 1px solid rgba(159,201,244,.09);
  border-radius: 12px;
  background: rgba(43,68,97,.42);
}
.owned-list-entries {
  margin-top: 0;
  padding: 9px 6px 10px;
  align-content: start;
  grid-auto-rows: max-content;
  border-top-color: rgba(159,201,244,.14);
  background: transparent;
  box-shadow: none;
}
.owned-list-entry {
  grid-template-columns: minmax(0,1fr) minmax(52px,68px) repeat(3,34px);
}
.owned-list-entry .owned-list-reset,
.owned-list-entry .created-list-delete,
.owned-list-entry .created-list-load {
  width: 34px; min-width: 34px; height: 34px; min-height: 34px;
  color: rgba(170,185,201,.62);
}
.owned-list-entry .owned-list-reset svg,
.owned-list-entry .created-list-delete svg,
.owned-list-entry .created-list-load svg {
  width: 14px; height: 14px; stroke-width: 1.65;
}
.owned-list-entry .owned-list-reset svg { width: 13px; height: 13px; }
@media (hover: hover) and (pointer: fine) {
  .owned-list-entry .owned-list-reset:not(:disabled):hover,
  .owned-list-entry .created-list-delete:not(:disabled):hover,
  .owned-list-entry .created-list-load:not(:disabled):hover {
    color: #fff;
    background: rgba(159,201,244,.18);
  }
}

/* Keyboard anchor for the inspection list. */
.wrong-word-row.keyboard-selected {
  border-color: var(--line);
  background: rgba(77,147,218,.1);
  box-shadow: none;
}

/* Clicked controls keep their state through color or fill, never a residual
   blue/white focus frame. Text fields retain their separate editing cue. */
button:focus,
button:focus-visible,
select:focus,
select:focus-visible,
[role="button"]:focus,
[role="button"]:focus-visible,
.wrong-word-row:focus-visible,
.wrong-word-flip-target:focus-visible,
.wrong-word-back:focus-visible {
  outline: 0 !important;
  outline-offset: 0 !important;
}

@media (max-width: 580px) and (orientation: portrait) {
  .top-settings,
  .mobile-mode-menu {
    height: 44px;
    min-height: 44px;
  }
  .top-settings .settings-icon {
    width: 24px;
    height: 24px;
  }
  .mobile-mode-menu summary svg,
  .mobile-current-mode-icon {
    width: 22px;
    height: 22px;
    display: block;
  }
}
.create-controls { grid-template-columns: minmax(0,1fr); }
.create-controls > .settings-text-button[hidden] { display: none !important; }
.settings-inline.create-list-expanded .create-controls {
  width: 100%;
  grid-template-columns: minmax(0,1fr);
}
.settings-inline.create-list-expanded .create-controls > .settings-text-button { width: min(100%,498px); }
.settings-inline.create-list-expanded .created-list-entries {
  grid-template-columns: minmax(0,min(100%,498px)) minmax(0,1fr);
}
.settings-inline.create-list-expanded .created-list-entry { grid-column: 1; }
.settings-inline.create-list-expanded .created-list-workspace { grid-column: 1 / -1; }
.settings-inline.create-list-expanded .create-list-name { width: min(100%,498px); }
.create-controls > #createListButton { order: 0; }
.create-controls > #createListPanel { order: 1; }
.create-controls > #importButton { order: 2; }
.create-controls > #importChooser,
.create-controls > #importPreview { order: 3; }
.create-controls > #downloadButton { order: 4; }
.create-controls > #downloadPanel { order: 5; }
.create-controls > #importChooser,
.create-controls > #importPreview,
.create-controls > #importMessage,
.create-controls > #downloadPanel,
.create-controls > #createListPanel { grid-column: 1 / -1; }
.created-list-entry { grid-template-columns: minmax(0,1fr) auto auto; }
.created-list-entry.owned-list-entry {
  grid-template-columns: minmax(0,1fr) minmax(52px,68px) repeat(3,38px);
}
.created-list-ai-prompt[hidden] { display: none; }
.created-list-ai-progress { width: 132px; grid-template-columns: 40px 1fr; }
#createListMessage { text-align: right; }
#createdWordMessage {
  position: sticky; left: 0; justify-self: start; width: max-content;
  max-width: calc(100vw - 64px); box-sizing: border-box;
  padding: 2px 8px 0 36px; text-align: left; white-space: normal;
}
#createdWordMessage:empty { display: none; }

/* Shared six-field editor for created and imported vocabulary. */
.created-word-editor-head, .created-word-edit-row, .create-word-row {
  min-width: 760px;
  grid-template-columns: 28px var(--created-col-word,minmax(85px,1fr)) var(--created-col-part,52px) var(--created-col-syllables,minmax(70px,.8fr)) var(--created-col-meaning,minmax(100px,1.2fr)) var(--created-col-example,minmax(170px,1.7fr)) var(--created-col-translation,minmax(150px,1.5fr));
}
.import-mode-tabs { position: sticky; top: 0; z-index: 2; background: var(--panel, #172c41); }
.imported-list-entries { grid-column: 1 / -1; width: 100%; }
.imported-list-entries .created-list-workspace { min-width: 0; width: 100%; }

.word-list-resize-handle { display: none; }
.settings-close-button { display: none; }
@media (max-width: 580px) and (orientation: portrait) {
  .settings-close-button {
    position: absolute;
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 30;
    display: grid;
    place-items: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: rgba(226,234,242,.68);
    background: rgba(20,35,56,.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .settings-close-button:active { color: #e2eaf2; background: rgba(77,147,218,.16); }
  .settings-close-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
  }
}
@media (min-width: 581px) {
  .settings-inline.create-list-expanded .word-list-resize-handle {
    position: absolute; z-index: 45; top: 46px; right: 0; bottom: 0;
    display: block; width: 20px; min-width: 20px; padding: 0; border: 0;
    color: rgba(159,201,244,.6); background: transparent; cursor: ew-resize;
    touch-action: none;
  }
  .settings-inline.create-list-expanded .word-list-resize-handle::before {
    content: ""; position: absolute; top: 50%; right: 5px; width: 2px; height: 42px;
    border-radius: 999px; background: currentColor; transform: translateY(-50%);
  }
}

/* 2026-09-26: shared import, editor and card geometry refinements. */
#createListPanel,
#createListPanel .created-list-workspace,
#createListPanel .created-word-editor {
  background: transparent !important;
  box-shadow: none !important;
}
.create-word-row input,
.create-word-row select,
.created-word-edit-row input,
.created-word-edit-row select {
  border: 1px solid rgba(226,234,242,.15) !important;
  border-radius: 6px !important;
  background: transparent !important;
}
.create-word-row input:focus,
.create-word-row select:focus,
.created-word-edit-row input:focus,
.created-word-edit-row select:focus {
  border-color: rgba(159,201,244,.48) !important;
  outline: 0 !important;
  background: rgba(255,255,255,.025) !important;
}
.download-category-tabs { padding: 0; background: transparent; }
#downloadButton[aria-expanded="true"] { border-radius: 9px 9px 0 0; }
#importButton[aria-expanded="true"] { border-radius: 9px 9px 0 0; }
#importChooser:not([hidden]),
#importPreview:not([hidden]) {
  margin-top: -4px;
  padding-top: 0;
  border-top: 0;
  border-radius: 0 0 9px 9px;
  background: rgba(77,147,218,.055);
}
#downloadPanel:not([hidden]) {
  margin-top: 0;
  padding-top: 0;
  border-radius: 0 0 9px 9px;
  background: rgba(77,147,218,.055);
}
.download-category-panels {
  margin-top: 0;
  padding: 3px;
  border-radius: 0 0 9px 9px;
  background: transparent;
}
.download-category-contents { padding-top: 0; }
.inspection-nav-popover {
  position: fixed;
  top: auto;
  right: auto;
  margin: 0;
}
#cardView { align-items: stretch; justify-content: stretch; }
#cardView > .card {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  box-sizing: border-box;
  border: 0 !important;
  border-radius: 0 !important;
}
@media (min-width: 581px) and (max-width: 1366px) and (orientation: portrait) {
  .mode-bar > .mode-button .nav-icon { display: none; }
  .mode-bar > .mode-button,
  .mode-bar > .mode-button[data-mode="wrong"] {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
  }
  .mode-bar > .mode-button .mode-glyph {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    border-width: 1px;
  }
  .mode-bar > .group-picker + .mode-button::before,
  .mode-bar > .mode-button + .mode-button::before {
    content: "›";
    position: absolute;
    top: 50%;
    left: -4px;
    color: rgba(226,234,242,.36);
    font-size: .68rem;
    font-weight: 300;
    line-height: 1;
    transform: translate(-50%,-50%);
    pointer-events: none;
  }
  .mode-bar > .mode-button.active { color: var(--blue-2) !important; background: transparent !important; }
}
@media (max-width: 1366px) and (orientation: portrait) {
  .created-list-entry.owned-list-entry {
    grid-template-columns: minmax(0,1fr) minmax(26px,34px) repeat(3,30px);
  }
  .owned-list-progress { padding-inline: 3px; }
  .owned-list-reset,
  .owned-list-entry .created-list-delete,
  .owned-list-entry .created-list-load { width: 30px; min-width: 30px; padding-inline: 0; }
}

/* 2026-09-26: keep library and navigation geometry consistent across device
   orientations while allowing labels to surrender their right edge first. */
.word-select-popover {
  max-width: calc(100vw - 16px);
  box-sizing: border-box;
}
.created-column-resize-handle::after { content: none; }
.owned-list-entry .created-list-edit {
  min-width: 0;
  overflow: hidden;
}
.owned-list-entry .created-list-edit > small {
  min-width: 0;
  flex: 0 100 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.owned-list-entry .owned-list-name,
.owned-list-entry .created-list-name-input:not(:focus) {
  flex-shrink: 1;
}

@media (max-width: 1366px) and (pointer: coarse),
       (max-width: 1366px) and (orientation: portrait) {
  .created-list-entry.owned-list-entry {
    grid-template-columns: minmax(0,1fr) minmax(26px,34px) repeat(3,30px);
  }
  .owned-list-progress { padding-inline: 3px; }
  .owned-list-entry .owned-list-reset,
  .owned-list-entry .created-list-delete,
  .owned-list-entry .created-list-load {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    padding-inline: 0;
  }
}

@media (min-width: 581px) and (max-width: 1366px) and (orientation: portrait) {
  /* Tablet portrait follows the same compact, left-anchored navigation as
     landscape.  Fractional flex sizing previously spread the controls across
     the row and exposed old separator borders. */
  .mode-bar {
    width: min(100%,920px);
    align-self: flex-start;
    justify-content: flex-start;
    gap: 8px;
    padding-inline: 8px;
  }
  .mode-bar > .top-settings {
    flex: 0 0 46px;
    width: 46px;
    border-right: 0;
    border-radius: 8px;
  }
  .mode-bar > .list-day-current {
    flex: 0 1 auto;
    width: max-content;
    min-width: 0;
    max-width: min(286px, calc(100vw - 456px));
  }
  .mode-bar > .list-day-current > .nav-list-current {
    flex: 0 1 auto;
    width: max-content;
    min-width: 0;
    max-width: 200px;
  }
  .mode-bar > .list-day-current .nav-list-button { width: max-content; max-width: 100%; }
  .mode-bar > .list-day-current .nav-list-button > span { width: auto; max-width: 100%; }
  .mode-bar > .group-picker {
    flex: 0 0 72px;
    width: 72px;
    min-width: 72px;
    grid-template-columns: 72px;
    margin: 0;
  }
  .mode-bar > .group-picker .card-menu-label,
  .mode-bar > .mode-button,
  .mode-bar > .mode-button[data-mode="wrong"] { border-right: 0; }
}

@media (max-width: 580px) and (orientation: portrait) {
  .study-view { --phone-footer-bottom: max(10px, env(safe-area-inset-bottom)); }
  .study-view:not(.keyboard-open) > .main-account-button {
    position: absolute;
    top: auto;
    right: auto;
    bottom: var(--phone-footer-bottom);
    left: max(10px, env(safe-area-inset-left));
  }
  .study-view.compact-practice-footer:not(.keyboard-open) > .main-account-button {
    bottom: calc(clamp(8px, 1.8vh, 16px) - 5px);
  }
  .study-view.inspection-active:not(.keyboard-open) > .main-account-button {
    bottom: calc(clamp(20px, 3vw, 32px) + 2px);
  }
  #cardView .card-footer-meta { bottom: var(--phone-footer-bottom); }
  #cardView .card-hint { bottom: 72px; font-size: .58rem; }
  #cardView .word-row { transform: translateY(-24px); }
  #cardView .card.is-revealed .word-row { transform: none; }
}

/* Recognition uses fixed, equal rows on both sides at every viewport. */
.choice-grid.matching-board.word-meaning-board > .matching-column { grid-auto-rows: 76px; }
.choice-grid.matching-board.word-meaning-board .matching-button {
  width: 100%;
  height: 76px;
  min-height: 76px;
  max-height: 76px;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
}
.practice-view.context-mode .word-meaning-board .matching-left .matching-button.text-long { font-size: clamp(.9rem, 1.8vmin, 1.12rem); }
.practice-view.context-mode .word-meaning-board .matching-left .matching-button.text-very-long { font-size: clamp(.72rem, 1.45vmin, .92rem); line-height: 1.08; }
.practice-feedback.listen-feedback .feedback-answer.word-long,
.practice-feedback.listen-feedback .feedback-answer.word-mobile-long {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 580px) {
  .choice-grid.matching-board.word-meaning-board > .matching-column { grid-auto-rows: 58px; }
  .choice-grid.matching-board.word-meaning-board .matching-button {
    height: 58px;
    min-height: 58px;
    max-height: 58px;
  }
  .practice-view.context-mode .word-meaning-board .matching-left .matching-button.text-long { font-size: clamp(.78rem, 3.4vw, .98rem); }
  .practice-view.context-mode .word-meaning-board .matching-left .matching-button.text-very-long { font-size: clamp(.64rem, 2.75vw, .82rem); line-height: 1.08; }
}

/* Keep the active vocabulary editor toolbar above the scrolling table on
   touch devices.  Its opaque surface also prevents fields underneath from
   stealing taps intended for AI generation. */
.settings-inline .owned-list-entry.selected {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 42px;
  background: rgba(25,43,66,.995) !important;
}
.settings-inline.create-list-expanded .create-list-name:not([hidden]) {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 42px;
  background: rgba(25,43,66,.995);
}

/* Per-word-list learning depth selector. */
.nav-select-popover.nav-list-popover {
  width: min(530px, calc(100vw - 24px));
  min-width: min(530px, calc(100vw - 24px));
}
.nav-bank-tools {
  width: 218px;
  min-width: 218px;
  grid-template-columns: 60px 68px repeat(3, 30px);
}
.nav-bank-learning-mode {
  position: relative;
  z-index: 1;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: rgba(226,234,242,.76);
  background: transparent;
  font: 700 .9rem/1 var(--font-ui);
  cursor: pointer;
}
.nav-bank-learning-mode:hover,
.nav-bank-learning-mode:focus-visible { color: #fff; background: transparent; }
.nav-bank-learning-mode::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: transparent;
  transition: background .12s ease;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .nav-bank-learning-mode:hover::before { background: rgba(159,201,244,.13); }
}
.nav-bank-mode-symbol {
  position: relative;
  z-index: 1;
  display: block;
  width: 12px;
  height: 12px;
  margin: auto;
  box-sizing: border-box;
  border-radius: 50%;
  color: inherit;
}
.nav-bank-mode-symbol.is-simple { border: 1.75px solid currentColor; }
.nav-bank-mode-symbol.is-full { background: currentColor; }
.nav-bank-learning-mode[data-confirm="true"]::after { right: 0; }
.nav-bank-learning-mode,
.nav-bank-reset,
.nav-list-delete {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding-block: 0;
}
.nav-bank-learning-mode[data-confirm="true"]::after,
.nav-bank-reset[data-confirm="true"]::after,
.nav-list-delete[data-confirm="true"]::after {
  height: 30px;
  min-height: 30px;
}
.nav-bank-reset::before,
.nav-list-delete::before { transform: translate(-50%, -50%); }
.nav-bank-reset svg,
.nav-list-delete svg { transform: none; }
.mode-button:disabled,
[data-mobile-mode]:disabled {
  opacity: .25;
  cursor: default;
  pointer-events: none;
}
@media (min-width: 581px) and (max-width: 1366px) and (pointer: coarse) {
  .nav-list-popover {
    width: min(470px, calc(100vw - 32px));
    min-width: min(470px, calc(100vw - 32px));
  }
  .nav-bank-tools {
    width: 200px;
    min-width: 200px;
    grid-template-columns: 44px 66px repeat(3, 30px);
  }
}
@media (orientation: landscape) and (max-width: 820px) and (pointer: coarse) {
  .nav-list-popover {
    width: min(470px, calc(100vw - 24px));
    min-width: min(470px, calc(100vw - 24px));
  }
}
@media (max-width: 580px) and (orientation: portrait) {
  .nav-list-popover { width: auto; min-width: 0; }
  .nav-bank-plan > span { display: none; }
  .nav-bank-plan select { width: 26px; height: 26px; min-height: 26px; }
  .nav-bank-tools {
    width: 123px;
    min-width: 123px;
    grid-template-columns: 15px 30px repeat(3, 26px);
  }
  .nav-bank-progress { padding-right: 2px; }
  .nav-bank-learning-mode,
  .nav-bank-reset,
  .nav-list-delete { width: 26px; min-width: 26px; }
  .nav-bank-learning-mode::before,
  .nav-bank-reset::before,
  .nav-list-delete::before { width: 26px; height: 26px; }
}
