/* Shared web controls; note-type rules below retain each source layout. */
@font-face { font-family: "KanaDeckJP"; src: url("/assets/alphabet-kana-0d0ce4ba.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "HangulDeckKR"; src: url("/assets/alphabet-hangul-97e64436.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "DeckNaskh"; src: url("/assets/alphabet-arabic-5d15782e.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
/* Omit Anki body margin resets: capped note panels need automatic side margins. */
.alphabet-note-card { width: 100%; max-width: 720px; margin: 0 auto; overflow-wrap: anywhere; }
.alphabet-note-card *, .alphabet-note-card *::before, .alphabet-note-card *::after { box-sizing: border-box; }
.alphabet-note-card[data-note-style] :is(h1, h2, h3, h4) { font-family: inherit; }
.alphabet-note-card [hidden] { display: none !important; }
.alphabet-note-card [lang="ar"], .alphabet-note-card [dir="rtl"], .alphabet-note-card [dir="ltr"] { unicode-bidi: isolate; }
.alphabet-note-card audio { width: 150px; max-width: 100%; }
.alphabet-note-card .anki-replay-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; margin: 0; padding: 6px; border: 0; border-radius: 50%; background: transparent; box-shadow: none; color: #414141; cursor: pointer; vertical-align: middle; }
.alphabet-note-card .anki-replay-button > span { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border: 1px solid currentColor; border-radius: 50%; background: white; color: #414141; font: 16px/1 Arial, sans-serif; }
.alphabet-note-card .anki-replay-button[aria-pressed="true"] > span { background: #414141; color: white; }
.alphabet-note-card button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.alphabet-note-card .anki-audio-status { margin: 12px auto; font-size: 14px; }

/* Scoped from the four user-supplied alphabet APKG note styles.
   Source CSS hashes are recorded in config/alphabet_note_types.json. */

.alphabet-note-card[data-note-style="japanese_kana"] {
  --ink: #172033;
  --muted: #657089;
  --paper: #fffdf9;
  --panel: #f5f1e8;
  --accent: #d64b38;
  --target: #4A6FCB;
  --line: #ddd5c7;
  background: var(--paper);
  color: var(--ink);
  font-family: Verdana, Arial, "KanaDeckJP", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}
.alphabet-note-card[data-note-style="japanese_kana"].anki-nightMode,
.alphabet-note-card[data-note-style="japanese_kana"].anki-night_mode {
  --ink: #eef2ff;
  --muted: #abb4c8;
  --paper: #171a22;
  --panel: #222734;
  --accent: #ff8a76;
  --target: #7986CB;
  --line: #3a4252;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-card-content {
  box-sizing: border-box;
  max-width: 680px;
  margin: 0 auto;
  padding: 30px 20px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-card-back {
  padding-top: 0;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-target-language {
  font-family: "KanaDeckJP", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-target {
  color: var(--target);
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-activity-heading {
  margin: 0 auto 18px;
  color: var(--accent);
  font-size: clamp(25px, 5vw, 32px);
  font-weight: 700;
  line-height: 1.25;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-intro-copy {
  max-width: 520px;
  margin: 20px auto;
  font-size: 22px;
  line-height: 1.45;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-intro-example {
  margin: 14px auto;
  font-size: 56px;
  font-weight: 650;
  line-height: 1.25;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-intro-instruction {
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-intro-continue {
  max-width: 520px;
  margin: 16px auto;
  font-size: 20px;
  line-height: 1.45;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-reading-answer {
  margin: 0 auto 10px;
  font-size: 38px;
  line-height: 1.3;
  font-weight: 650;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-reading-hint {
  max-width: 520px;
  margin: 10px auto;
  font-size: 16px;
  line-height: 1.45;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-script-match {
  margin: 12px auto;
  font-size: 22px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-english {
  margin: 12px auto;
  max-width: 570px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.45;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-front-sentence.anki-kana {
  margin: 20px 0 8px;
  font-size: clamp(88px, 22vw, 116px);
  font-weight: 650;
  line-height: 1.25;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-topic {
  margin: 16px auto 0;
  max-width: 590px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .035em;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-front-target {
  margin: 18px auto 0;
  max-width: 620px;
  font-size: clamp(44px, 13vw, 72px);
  font-weight: 700;
  line-height: 1.4;
  word-break: keep-all;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-front-target-unit {
  display: inline-block;
  white-space: nowrap;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-practice-text {
  margin: 24px auto 0;
  max-width: 620px;
  font-size: clamp(44px, 13vw, 72px);
  font-weight: 700;
  line-height: 1.4;
  word-break: keep-all;
}
.alphabet-note-card[data-note-style="japanese_kana"] hr {
  height: 1px;
  margin: 22px auto;
  border: 0;
  background: var(--line);
  max-width: 590px;
}
.alphabet-note-card[data-note-style="japanese_kana"] hr.anki-answer-divider {
  margin-top: 0;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-answer-sentence.anki-rule-visual {
  margin: 20px auto 14px;
  max-width: 600px;
  font-size: clamp(25px, 7vw, 36px);
  font-weight: 750;
  line-height: 1.5;
  word-break: keep-all;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-reading-unit {
  display: inline-block;
  white-space: nowrap;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-reading {
  color: var(--ink);
  font-family: Verdana, Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-answer {
  color: var(--ink);
  font-size: clamp(24px, 6vw, 31px);
  font-weight: 700;
  line-height: 1.35;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-audio {
  margin: 16px auto;
  min-height: 36px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-audio .anki-replay-button svg {
  width: 38px;
  height: 38px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-audio-example {
  margin: 12px auto 0;
  max-width: 250px;
  padding: 12px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-example-kana {
  font-size: 38px;
  line-height: 1.45;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-explanation {
  margin: 0 auto;
  max-width: 570px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-explanation [lang="ja"] {
  font-family: "KanaDeckJP", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 1.25em;
  line-height: 1;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-context {
  box-sizing: border-box;
  max-width: 570px;
  margin: 18px auto;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-start-guide {
  box-sizing: border-box;
  max-width: 570px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-start-guide[open] {
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-align: left;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-start-guide summary {
  cursor: pointer;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-start-guide p {
  margin: 10px 0 0;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-answer-front .anki-start-guide,
.alphabet-note-card[data-note-style="japanese_kana"] .anki-answer-front .anki-intro-instruction,
.alphabet-note-card[data-note-style="japanese_kana"] .anki-answer-front .anki-rule-context,
.alphabet-note-card[data-note-style="japanese_kana"] .anki-answer-front .anki-rule-topic,
.alphabet-note-card[data-note-style="japanese_kana"] .anki-answer-front .anki-rule-front .anki-task-instruction,
.alphabet-note-card[data-note-style="japanese_kana"] .anki-answer-front .anki-sound-front .anki-task-instruction,
.alphabet-note-card[data-note-style="japanese_kana"] .anki-answer-front .anki-practice-front .anki-task-instruction {
  display: none;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-answer-front .anki-rule-front,
.alphabet-note-card[data-note-style="japanese_kana"] .anki-answer-front .anki-practice-front {
  padding-bottom: 18px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-practice-back .anki-explain {
  width: auto;
  max-width: 570px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-section-label {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-practice-back .anki-explain > .anki-section-label {
  margin-bottom: 12px;
  text-align: center;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-practice-back .anki-reading-step {
  --sym-fs: 29px;
  display: grid;
  font-size: 22px;
  grid-template-columns: calc(50% - 22px - var(--reading-col, 4ch) - 36px) minmax(0, 1fr);
  column-gap: 24px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-practice-back .anki-reading-step:first-child {
  border-top: 0;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-practice-back .anki-step-symbol {
  width: calc(var(--symbol-n, 1) * var(--sym-fs) + 4px);
  justify-self: end;
  font-size: var(--sym-fs);
  font-weight: 700;
  line-height: 1.4;
  word-break: keep-all;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-step-help {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 570px;
  margin: 8px auto 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-step-detail {
  min-width: 0;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-practice-back .anki-step-sound {
  display: grid;
  font-size: 22px;
  grid-template-columns: var(--reading-col, 4ch) minmax(0,1fr);
  align-items: baseline;
  gap: 8px 12px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-practice-back .anki-step-reading {
  font-size: 1em;
  line-height: 1.35;
  font-weight: 600;
  white-space: nowrap;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-step-player {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-step-player audio {
  width: 150px;
  height: 36px;
  max-width: 100%;
}
.alphabet-note-card[data-note-style="japanese_kana"] [data-part-audio] .anki-part-play,
.alphabet-note-card[data-note-style="japanese_kana"] [data-part-audio] .anki-part-play:hover,
.alphabet-note-card[data-note-style="japanese_kana"] [data-part-audio] .anki-part-play:active {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  margin: 12px 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  color: #414141;
  font: 13px/1 Verdana,Arial,sans-serif;
  cursor: pointer;
}
.alphabet-note-card[data-note-style="japanese_kana"] [data-part-audio] .anki-part-play > span {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  color: transparent;
  font-size: 12px;
  line-height: 32px;
  background: center / 32px 32px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='29' fill='white' stroke='%23414141'/%3E%3Cpath d='M56.502,32.301l-37.502,20.101l0.329,-40.804l37.173,20.703Z' fill='%23414141'/%3E%3C/svg%3E");
}
.alphabet-note-card[data-note-style="japanese_kana"] [data-part-audio] .anki-part-play[aria-pressed="true"] > span {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='29' fill='%23414141' stroke='%23414141'/%3E%3Cpath d='M56.502,32.301l-37.502,20.101l0.329,-40.804l37.173,20.703Z' fill='white'/%3E%3C/svg%3E");
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-part-play[hidden],
.alphabet-note-card[data-note-style="japanese_kana"] .anki-step-player audio[hidden],
.alphabet-note-card[data-note-style="japanese_kana"] .anki-audio-status[hidden] {
  display: none !important;
}
.alphabet-note-card[data-note-style="japanese_kana"] [data-part-audio] .anki-part-play:focus-visible {
  outline: 2px solid var(--ink) !important;
  outline-offset: 3px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-step-audio-cue {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-audio-status {
  margin: 12px auto;
  color: var(--ink);
  font-size: 14px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-self-check {
  max-width: 570px;
  margin: 12px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-self-check .anki-section-label {
  font-size: 15px;
  margin-bottom: 5px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-single-unit-guide {
  max-width: 570px;
  margin: 22px auto 0;
  color: var(--ink);
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-meaning {
  max-width: 420px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-examples {
  max-width: 570px;
  margin: 22px auto 0;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-example {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-example:first-child {
  border-top: 0;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-example-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-width: 0;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-example-cell {
  display: grid;
  min-width: 0;
  justify-content: center;
  align-items: baseline;
  column-gap: 12px;
  font-size: 22px;
  grid-template-columns: calc(var(--rule-kana-n, 1) * 1em + 4px)
    calc(var(--rule-reading-n, 2) * 1ch + 4px)
    44px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-example-cell:only-child {
  grid-column: 1 / -1;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-example-kana {
  justify-self: end;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-example-reading {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
  white-space: nowrap;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-example-sound {
  display: contents;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-example-arrow {
  font-size: 26px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-player {
  display: flex;
  align-self: center;
  align-items: center;
  justify-content: center;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-size-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
  max-width: 280px;
  margin: auto;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-size-examples > span {
  font-size: 52px;
  line-height: 1.4;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-size-examples .anki-size-caption {
  font: 16px/1.4 Verdana,Arial,sans-serif;
  color: var(--muted);
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-player .anki-replay-button,
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-player .anki-soundLink {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-player .anki-replay-button svg {
  width: 32px;
  height: 32px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-player .anki-replay-button:focus-visible,
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-player .anki-soundLink:focus-visible {
  outline: 2px solid var(--ink) !important;
  outline-offset: 2px;
}
@media (max-width: 480px) {
.alphabet-note-card[data-note-style="japanese_kana"] .anki-card-content {
  padding-right: 16px;
  padding-left: 16px;
}
.alphabet-note-card[data-note-style="japanese_kana"] [data-part-audio] .anki-part-play,
.alphabet-note-card[data-note-style="japanese_kana"] [data-part-audio] .anki-part-play:hover,
.alphabet-note-card[data-note-style="japanese_kana"] [data-part-audio] .anki-part-play:active {
  margin: 0;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-example-content {
  gap: 10px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-example-cell:not(:only-child) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-example-cell:not(:only-child) .anki-rule-example-sound {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-example-cell:not(:only-child) .anki-rule-example-reading {
  width: 5ch;
  text-align: center;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-examples-single .anki-rule-example-cell:only-child {
  grid-template-columns: max-content max-content 44px;
  column-gap: 8px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-examples-single .anki-rule-example-cell:only-child .anki-rule-example-kana {
  font-size: 22px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-example-kana {
  font-size: 25px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-rule-example-reading {
  font-size: 16px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-english:not(.anki-rule-answer) {
  font-size: 19px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-practice-back .anki-reading-step {
  --sym-fs: 25px;
  column-gap: 12px;
  padding: 8px 0;
  grid-template-columns: calc(50% - 22px - var(--reading-col, 4ch) - 24px) minmax(0, 1fr);
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-practice-back [data-phone-layout="stacked"] .anki-reading-step {
  --sym-fs: 25px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px 18px;
  padding: 4px 0;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-practice-back [data-phone-layout="stacked"] .anki-step-symbol {
  grid-area: 1 / 1;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-practice-back [data-phone-layout="stacked"] .anki-step-detail,
.alphabet-note-card[data-note-style="japanese_kana"] .anki-practice-back [data-phone-layout="stacked"] .anki-step-sound {
  display: contents;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-practice-back [data-phone-layout="stacked"] .anki-step-reading {
  grid-area: 1 / 2;
  width: max-content;
  max-width: 100%;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-practice-back [data-phone-layout="stacked"] .anki-step-player {
  grid-area: 2 / 1 / 3 / 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 6px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-practice-back [data-phone-layout="stacked"] .anki-part-play {
  grid-column: 2;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-practice-back [data-phone-layout="stacked"] .anki-step-audio-cue {
  grid-column: 3;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-practice-back [data-phone-layout="stacked"] .anki-step-player audio {
  grid-column: 2 / -1;
  justify-self: start;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-practice-back [data-phone-layout="stacked"] .anki-step-help {
  grid-area: 3 / 1 / 4 / 3;
  margin-top: 0;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-step-help {
  font-size: 15px;
}
.alphabet-note-card[data-note-style="japanese_kana"] .anki-intro-copy {
  font-size: 20px;
}
}

.alphabet-note-card[data-note-style="korean_hangul"] {
  --ink: #172033;
  --muted: #657089;
  --paper: #fffdf9;
  --panel: #f5f1e8;
  --accent: #d64b38;
  --line: #ddd5c7;
}
.alphabet-note-card[data-note-style="korean_hangul"] {
  background: var(--paper);
  color: var(--ink);
  font-family: Verdana, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  text-align: center;
}
.alphabet-note-card[data-note-style="korean_hangul"] .anki-shell {
  box-sizing: border-box;
  max-width: 680px;
  margin: 0 auto;
  padding: 30px 20px 38px;
}
.alphabet-note-card[data-note-style="korean_hangul"] .anki-eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.alphabet-note-card[data-note-style="korean_hangul"] .anki-jamo {
  margin: 14px 0 6px;
  font-family: "HangulDeckKR", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 92px;
  font-weight: 650;
  line-height: 1.05;
}
.alphabet-note-card[data-note-style="korean_hangul"] .anki-back-jamo {
  margin: 8px 0 2px;
  font-size: 64px;
}
.alphabet-note-card[data-note-style="korean_hangul"] .anki-carrier-front {
  display: inline-block;
  margin: 8px 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 7px 18px;
  font-family: "HangulDeckKR", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 34px;
  font-weight: 700;
}
.alphabet-note-card[data-note-style="korean_hangul"] .anki-prompt {
  margin: 12px auto;
  max-width: 560px;
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
  -webkit-text-stroke: .15px currentColor;
}
.alphabet-note-card[data-note-style="korean_hangul"] .anki-answer {
  margin: 20px 0 14px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
}
.alphabet-note-card[data-note-style="korean_hangul"] .anki-answer.anki-text {
  font-size: 28px;
}
.alphabet-note-card[data-note-style="korean_hangul"] .anki-carrier-back,
.alphabet-note-card[data-note-style="korean_hangul"] .anki-visual {
  margin: 18px auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 16px 20px;
  font-family: "HangulDeckKR", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 32px;
  font-weight: 700;
}
.alphabet-note-card[data-note-style="korean_hangul"] .anki-carrier-back {
  max-width: 260px;
}
.alphabet-note-card[data-note-style="korean_hangul"] .anki-visual {
  max-width: 560px;
}
.alphabet-note-card[data-note-style="korean_hangul"] .anki-note {
  margin: 16px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
}
.alphabet-note-card[data-note-style="korean_hangul"] .anki-title {
  margin: 14px 0 8px;
  font-size: 35px;
  font-weight: 700;
  line-height: 1.2;
}
.alphabet-note-card[data-note-style="korean_hangul"] .anki-group {
  margin: 18px auto;
  max-width: 620px;
  font-family: "HangulDeckKR", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 44px;
  font-weight: 750;
  line-height: 1.35;
}
.alphabet-note-card[data-note-style="korean_hangul"] .anki-back-group {
  margin: 12px auto 0;
  font-size: 22px;
}
.alphabet-note-card[data-note-style="korean_hangul"] .anki-audio {
  margin-top: 10px;
}
.alphabet-note-card[data-note-style="korean_hangul"].anki-nightMode,
.alphabet-note-card[data-note-style="korean_hangul"].anki-night_mode,
.alphabet-note-card[data-note-style="korean_hangul"] .anki-nightMode .anki-card,
.alphabet-note-card[data-note-style="korean_hangul"] .anki-night_mode .anki-card {
  --ink: #eef2ff;
  --muted: #abb4c8;
  --paper: #171a22;
  --panel: #222734;
  --accent: #ff8a76;
  --line: #3a4252;
}

.alphabet-note-card[data-note-style="arabic_alphabet"] {
  --ink: #172033;
  --muted: #657089;
  --paper: #fffdf9;
  --panel: #f5f1e8;
  --accent: #c94735;
  --line: #ddd5c7;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "DeckNaskh", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-shell {
  box-sizing: border-box;
  max-width: 720px;
  margin: 0 auto;
  padding: 30px 20px 38px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-arabic {
  direction: rtl;
  unicode-bidi: isolate;
  font-family: "DeckNaskh", "Noto Naskh Arabic", "Geeza Pro", "Traditional Arabic", serif;
  font-weight: 400;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-inline-arabic {
  display: inline;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-diacritic-mark {
  display: inline-block;
  min-width: .9em;
  line-height: 1;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-vowel-card-example {
  display: inline-block;
  padding-top: 0 !important;
  font-size: 96px;
  font-weight: 400;
  line-height: 1.45;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-letter {
  margin: 14px 0 6px;
  font-size: 108px;
  font-weight: 400;
  line-height: 1.45;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-name-front .anki-letter {
  margin: 10px 0 0;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-back-letter {
  margin: 8px 0 4px;
  font-size: 78px;
  line-height: 1.5;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-sound-front .anki-letter {
  margin: 6px 0 0;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-carrier-front {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  min-height: 176px;
  margin: 18px auto 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 26px 34px;
  font-size: 82px;
  font-weight: 400;
  line-height: 1.45;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-carrier-glyph {
  display: inline-block;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-sound-front .anki-prompt {
  margin-top: 8px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-prompt {
  margin: 14px auto;
  max-width: 580px;
  color: var(--muted);
  font-size: 23px;
  font-weight: 650;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-answer {
  margin: 20px 0 14px;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-answer.anki-text {
  font-size: 31px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-answer.anki-arabic {
  font-size: 52px;
  font-weight: 400;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-answer-ipa,
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-visual-ipa {
  color: var(--muted);
  font-family: "Segoe UI", sans-serif;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-answer-ipa {
  margin: -6px 0 8px;
  font-size: 28px;
  font-weight: 700;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-visual-ipa {
  margin-top: 6px;
  font-size: 23px;
  font-weight: 700;
  direction: ltr;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-example-label {
  margin-bottom: 7px;
  color: var(--muted);
  direction: ltr;
  unicode-bidi: isolate;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-audio-panel,
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-visual {
  margin: 18px auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 14px 20px 18px;
  font-size: 38px;
  font-weight: 400;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-audio-panel {
  max-width: 300px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-visual {
  max-width: 600px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-note {
  margin: 16px auto 0;
  max-width: 590px;
  color: var(--muted);
  font-size: 15px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-title {
  margin: 14px 0 8px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-forms-wrap {
  margin: 22px auto 0;
  max-width: 620px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-forms-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-forms {
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-form-cell {
  direction: ltr;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  padding: 8px 5px 10px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-form-name {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-form-glyph {
  min-height: 60px;
  font-size: 39px;
  font-weight: 400;
  line-height: 1.55;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-special-forms {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-joining {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-audio {
  margin-top: 8px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"].anki-nightMode,
.alphabet-note-card[data-note-style="arabic_alphabet"].anki-night_mode,
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-nightMode .anki-card,
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-night_mode .anki-card {
  --ink: #eef2ff;
  --muted: #abb4c8;
  --paper: #171a22;
  --panel: #222734;
  --accent: #ff8a76;
  --line: #3a4252;
}
@media (max-width: 430px) {
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-shell {
  padding: 22px 12px 30px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-letter {
  font-size: 92px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-prompt {
  font-size: 20px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-carrier-front {
  min-width: 156px;
  min-height: 156px;
  padding: 22px 28px;
  font-size: 72px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-forms {
  gap: 5px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-form-glyph {
  font-size: 31px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-form-name {
  font-size: 8px;
}
}
/*  Listening-test controls only; original card layout and ink-centering remain.  */
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-recorded-test {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  margin: 0 8px;
  direction: ltr;
  unicode-bidi: isolate;
  font-family: "Segoe UI", sans-serif;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 400;
  color: var(--muted);
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-recorded-test-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-recorded-test-take {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-recorded-test-label {
  font-size: 11px;
  font-weight: 650;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-recorded-test-id {
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: .04em;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-recorded-test .anki-replay-button {
  display: inline-flex;
  margin: 0;
  padding: 0;
  line-height: 1;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-recorded-test .anki-replay-button svg {
  width: 36px;
  height: 36px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-recorded-test-empty {
  margin: -14px auto 22px;
  color: var(--muted);
  font-size: 12px;
}
/*  v1.7.4: complete IPA examples use one uniform colour.  */
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-ipa-example {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  font-family: "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--muted);
}
/*  v1.7.4: shared IPA and pronunciation-panel styling.  */
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-ipa-plain,
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-audio-example-ipa {
  color: var(--muted);
  font-family: "Segoe UI", sans-serif;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-ipa-plain {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-audio-example-row {
  direction: ltr;
  unicode-bidi: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-audio-example-arabic {
  direction: rtl;
  unicode-bidi: isolate;
  font-family: "DeckNaskh", "Noto Naskh Arabic", "Geeza Pro", "Traditional Arabic", serif;
  font-size: 38px;
  font-weight: 400;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-audio-example-ipa {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  font-size: 22px;
  font-weight: 600;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-audio-example-row .anki-replay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  line-height: 1;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-audio-example-row .anki-replay-button svg {
  width: 42px;
  height: 42px;
}
.alphabet-note-card[data-note-style="arabic_alphabet"] .anki-name-audio-panel {
  max-width: 430px;
}

.alphabet-note-card[data-note-style="russian_alphabet_0"] {
  --ink: #172033;
  --muted: #657089;
  --paper: #fffdf9;
  --panel: #f5f1e8;
  --accent: #d64b38;
  --target: #4A6FCB;
  --accent-soft: #eaf0ff;
  --line: #ddd5c7;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"].anki-nightMode,
.alphabet-note-card[data-note-style="russian_alphabet_0"].anki-night_mode {
  --ink: #eef2ff;
  --muted: #abb4c8;
  --paper: #171a22;
  --panel: #222734;
  --accent: #ff8a76;
  --target: #7986CB;
  --accent-soft: #263759;
  --line: #3a4252;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-card-content {
  box-sizing: border-box;
  max-width: 680px;
  margin: 0 auto;
  padding: 30px 20px 34px;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-card-front {
  padding-top: 42px;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-card-back {
  padding-top: 0;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-card-back.anki-letter-sound-back {
  padding-top: 34px;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-eyebrow {
  margin: 0 auto 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-target-language {
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-front-letter {
  margin: 6px 0 14px;
  font-size: clamp(86px, 22vw, 116px);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: .02em;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-front-word {
  margin: 12px 0 34px;
  font-size: clamp(48px, 13vw, 72px);
  font-weight: 650;
  line-height: 1.08;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-carrier-front {
  display: inline-block;
  margin: 22px auto 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 8px 18px;
  font-size: clamp(29px, 7vw, 38px);
  font-weight: 700;
  line-height: 1.2;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-back-letter {
  margin: 0 auto 14px;
  font-size: clamp(52px, 13vw, 72px);
  font-weight: 700;
  line-height: 1.14;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-target {
  border-bottom: .12em solid var(--target);
  color: var(--target);
  font-weight: 800;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-english {
  margin: 18px auto 10px;
  max-width: 570px;
  color: var(--muted);
  font-size: 21px;
  font-weight: 650;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-rule-question {
  margin: 20px auto;
  max-width: 610px;
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 800;
  line-height: 1.25;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] hr {
  height: 1px;
  margin: 22px auto;
  border: 0;
  background: var(--line);
  max-width: 590px;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] hr.anki-answer-divider {
  margin-top: 0;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-main-answer,
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-context-answer {
  margin: 0 auto 10px;
  max-width: 610px;
  font-size: clamp(30px, 8vw, 46px);
  font-weight: 850;
  line-height: 1.18;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-name-answer {
  margin: 0 auto 10px;
  font-size: clamp(43px, 12vw, 64px);
  font-weight: 800;
  line-height: 1.15;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-example-panel {
  max-width: 560px;
  margin: 16px auto 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 15px 16px;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-example-word {
  font-size: clamp(31px, 8vw, 42px);
  font-weight: 700;
  line-height: 1.2;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-rule-answer {
  margin: 0 auto;
  max-width: 620px;
  font-size: clamp(27px, 7vw, 36px);
  font-weight: 800;
  line-height: 1.35;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-rule-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 650;
  line-height: 1.4;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-mapping-list {
  display: grid;
  gap: 4px;
  justify-content: center;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-mapping-list > div {
  white-space: nowrap;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-contrast-list {
  display: grid;
  gap: 12px;
  max-width: 500px;
  margin: 20px auto 4px;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-contrast-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 10px 14px;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-contrast-example {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-contrast-label {
  color: var(--muted);
  font-size: 18px;
  font-weight: 750;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-contrast-word {
  font-size: 34px;
  font-weight: 800;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-contrast-row .anki-audio {
  margin: 0;
  min-width: 40px;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-audio {
  margin: 16px auto 4px;
  min-height: 36px;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-audio:empty {
  display: none;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-audio .anki-replay-button svg {
  width: 34px;
  height: 34px;
}
@media (max-width: 480px) {
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-card-content {
  padding-right: 16px;
  padding-left: 16px;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-english {
  font-size: 19px;
}
}
/*  Single-letter answers share the compact name-card layout.  */
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-card-back.anki-russian-simple-back {
  padding: 30px 20px 38px;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-russian-simple-back .anki-back-letter {
  margin: 8px 0 2px;
  font-size: 64px;
  font-weight: 650;
  line-height: 1.05;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-russian-simple-back .anki-main-answer {
  margin: 20px auto 18px;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-russian-simple-back .anki-compact-example-panel {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: max-content;
  min-width: min(302px, 100%);
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 16px 20px;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-compact-example-panel .anki-example-word {
  min-width: 0;
  flex: 0 1 auto;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-compact-recording {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-compact-recording .anki-replay-button,
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-compact-recording .anki-soundLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
}
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-compact-recording .anki-replay-button svg {
  width: 34px;
  height: 34px;
}
@media (max-width: 480px) {
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-card-back.anki-russian-simple-back {
  padding-right: 16px;
  padding-left: 16px;
}
}
/*  The same question/answer divider on letter-name and letter-sound cards.  */
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-russian-name-back hr.anki-answer-divider,
.alphabet-note-card[data-note-style="russian_alphabet_0"] .anki-russian-simple-back hr.anki-answer-divider {
  margin: 22px auto 0;
  width: 100%;
  max-width: 590px;
}

.alphabet-note-card[data-note-style="russian_alphabet_1"] {
  --ink: #172033;
  --muted: #657089;
  --paper: #fffdf9;
  --panel: #f5f1e8;
  --accent: #d64b38;
  --target: #4A6FCB;
  --accent-soft: #eaf0ff;
  --line: #ddd5c7;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"].anki-nightMode,
.alphabet-note-card[data-note-style="russian_alphabet_1"].anki-night_mode {
  --ink: #eef2ff;
  --muted: #abb4c8;
  --paper: #171a22;
  --panel: #222734;
  --accent: #ff8a76;
  --target: #7986CB;
  --accent-soft: #263759;
  --line: #3a4252;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-card-content {
  box-sizing: border-box;
  max-width: 680px;
  margin: 0 auto;
  padding: 30px 20px 34px;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-card-front {
  padding-top: 42px;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-card-back {
  padding-top: 0;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-card-back.anki-letter-sound-back {
  padding-top: 34px;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-eyebrow {
  margin: 0 auto 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-target-language {
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-front-letter {
  margin: 6px 0 14px;
  font-size: clamp(86px, 22vw, 116px);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: .02em;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-front-word {
  margin: 12px 0 34px;
  font-size: clamp(48px, 13vw, 72px);
  font-weight: 650;
  line-height: 1.08;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-carrier-front {
  display: inline-block;
  margin: 22px auto 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 8px 18px;
  font-size: clamp(29px, 7vw, 38px);
  font-weight: 700;
  line-height: 1.2;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-back-letter {
  margin: 0 auto 14px;
  font-size: clamp(52px, 13vw, 72px);
  font-weight: 700;
  line-height: 1.14;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-target {
  border-bottom: .12em solid var(--target);
  color: var(--target);
  font-weight: 800;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-english {
  margin: 18px auto 10px;
  max-width: 570px;
  color: var(--muted);
  font-size: 21px;
  font-weight: 650;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-rule-question {
  margin: 20px auto;
  max-width: 610px;
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 800;
  line-height: 1.25;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] hr {
  height: 1px;
  margin: 22px auto;
  border: 0;
  background: var(--line);
  max-width: 590px;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] hr.anki-answer-divider {
  margin-top: 0;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-main-answer,
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-context-answer {
  margin: 0 auto 10px;
  max-width: 610px;
  font-size: clamp(30px, 8vw, 46px);
  font-weight: 850;
  line-height: 1.18;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-name-answer {
  margin: 0 auto 10px;
  font-size: clamp(43px, 12vw, 64px);
  font-weight: 800;
  line-height: 1.15;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-example-panel {
  max-width: 560px;
  margin: 16px auto 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 15px 16px;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-example-word {
  font-size: clamp(31px, 8vw, 42px);
  font-weight: 700;
  line-height: 1.2;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-rule-answer {
  margin: 0 auto;
  max-width: 620px;
  font-size: clamp(27px, 7vw, 36px);
  font-weight: 800;
  line-height: 1.35;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-rule-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 650;
  line-height: 1.4;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-mapping-list {
  display: grid;
  gap: 4px;
  justify-content: center;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-mapping-list > div {
  white-space: nowrap;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-contrast-list {
  display: grid;
  gap: 12px;
  max-width: 500px;
  margin: 20px auto 4px;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-contrast-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 10px 14px;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-contrast-example {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-contrast-label {
  color: var(--muted);
  font-size: 18px;
  font-weight: 750;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-contrast-word {
  font-size: 34px;
  font-weight: 800;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-contrast-row .anki-audio {
  margin: 0;
  min-width: 40px;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-audio {
  margin: 16px auto 4px;
  min-height: 36px;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-audio:empty {
  display: none;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-audio .anki-replay-button svg {
  width: 34px;
  height: 34px;
}
@media (max-width: 480px) {
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-card-content {
  padding-right: 16px;
  padding-left: 16px;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-english {
  font-size: 19px;
}
}
/*  Letter-name answer: compact name-and-recording panel.  */
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-card-back.anki-russian-name-back {
  padding: 30px 20px 38px;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-russian-name-back .anki-back-letter {
  margin: 8px 0 2px;
  font-size: 64px;
  font-weight: 650;
  line-height: 1.05;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-russian-name-layout {
  display: grid;
  grid-template-columns: minmax(20px, 1fr) minmax(0, max-content) 46px minmax(20px, 1fr);
  width: fit-content;
  min-width: min(302px, 100%);
  max-width: 100%;
  margin: 20px auto 0;
  isolation: isolate;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-russian-name-layout::before {
  content: "";
  grid-area: 1 / 1 / 2 / -1;
  align-self: stretch;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  z-index: -1;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-russian-name-layout .anki-name-answer {
  grid-area: 1 / 2;
  min-width: 0;
  align-self: center;
  margin: 0;
  padding: 17px 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  white-space: normal;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-russian-name-layout .anki-name-recording {
  grid-area: 1 / 3;
  box-sizing: border-box;
  width: 46px;
  padding-left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-name-recording .anki-replay-button,
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-name-recording .anki-soundLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  width: 34px;
  height: 34px;
}
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-name-recording .anki-replay-button svg {
  width: 34px;
  height: 34px;
}
@media (max-width: 480px) {
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-card-back.anki-russian-name-back {
  padding-right: 16px;
  padding-left: 16px;
}
}
/*  The same question/answer divider on letter-name and letter-sound cards.  */
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-russian-name-back hr.anki-answer-divider,
.alphabet-note-card[data-note-style="russian_alphabet_1"] .anki-russian-simple-back hr.anki-answer-divider {
  margin: 22px auto 0;
  width: 100%;
  max-width: 590px;
}

.alphabet-note-card[data-note-style="russian_alphabet"] {
  --ink: #172033;
  --muted: #657089;
  --paper: #fffdf9;
  --panel: #f5f1e8;
  --accent: #d64b38;
  --target: #4A6FCB;
  --accent-soft: #eaf0ff;
  --line: #ddd5c7;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}
.alphabet-note-card[data-note-style="russian_alphabet"].anki-nightMode,
.alphabet-note-card[data-note-style="russian_alphabet"].anki-night_mode {
  --ink: #eef2ff;
  --muted: #abb4c8;
  --paper: #171a22;
  --panel: #222734;
  --accent: #ff8a76;
  --target: #7986CB;
  --accent-soft: #263759;
  --line: #3a4252;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-card-content {
  box-sizing: border-box;
  max-width: 680px;
  margin: 0 auto;
  padding: 30px 20px 34px;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-card-front {
  padding-top: 42px;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-card-back {
  padding-top: 0;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-card-back.anki-letter-sound-back {
  padding-top: 34px;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-eyebrow {
  margin: 0 auto 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-target-language {
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-front-letter {
  margin: 6px 0 14px;
  font-size: clamp(86px, 22vw, 116px);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: .02em;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-front-word {
  margin: 12px 0 34px;
  font-size: clamp(48px, 13vw, 72px);
  font-weight: 650;
  line-height: 1.08;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-carrier-front {
  display: inline-block;
  margin: 22px auto 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 8px 18px;
  font-size: clamp(29px, 7vw, 38px);
  font-weight: 700;
  line-height: 1.2;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-back-letter {
  margin: 0 auto 14px;
  font-size: clamp(52px, 13vw, 72px);
  font-weight: 700;
  line-height: 1.14;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-target {
  border-bottom: .12em solid var(--target);
  color: var(--target);
  font-weight: 800;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-english {
  margin: 18px auto 10px;
  max-width: 570px;
  color: var(--muted);
  font-size: 21px;
  font-weight: 650;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-rule-question {
  margin: 20px auto;
  max-width: 610px;
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 800;
  line-height: 1.25;
}
.alphabet-note-card[data-note-style="russian_alphabet"] hr {
  height: 1px;
  margin: 22px auto;
  border: 0;
  background: var(--line);
  max-width: 590px;
}
.alphabet-note-card[data-note-style="russian_alphabet"] hr.anki-answer-divider {
  margin-top: 0;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-main-answer,
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-context-answer {
  margin: 0 auto 10px;
  max-width: 610px;
  font-size: clamp(30px, 8vw, 46px);
  font-weight: 850;
  line-height: 1.18;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-name-answer {
  margin: 0 auto 10px;
  font-size: clamp(43px, 12vw, 64px);
  font-weight: 800;
  line-height: 1.15;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-example-panel {
  max-width: 560px;
  margin: 16px auto 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 15px 16px;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-example-word {
  font-size: clamp(31px, 8vw, 42px);
  font-weight: 700;
  line-height: 1.2;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-rule-answer {
  margin: 0 auto;
  max-width: 620px;
  font-size: clamp(27px, 7vw, 36px);
  font-weight: 800;
  line-height: 1.35;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-rule-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 650;
  line-height: 1.4;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-mapping-list {
  display: grid;
  gap: 4px;
  justify-content: center;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-mapping-list > div {
  white-space: nowrap;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-contrast-list {
  display: grid;
  gap: 12px;
  max-width: 500px;
  margin: 20px auto 4px;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-contrast-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 10px 14px;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-contrast-example {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-contrast-label {
  color: var(--muted);
  font-size: 18px;
  font-weight: 750;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-contrast-word {
  font-size: 34px;
  font-weight: 800;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-contrast-row .anki-audio {
  margin: 0;
  min-width: 40px;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-audio {
  margin: 16px auto 4px;
  min-height: 36px;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-audio:empty {
  display: none;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-audio .anki-replay-button svg {
  width: 34px;
  height: 34px;
}
@media (max-width: 480px) {
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-card-content {
  padding-right: 16px;
  padding-left: 16px;
}
.alphabet-note-card[data-note-style="russian_alphabet"] .anki-english {
  font-size: 19px;
}
}
