body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; background: #f6f7f9; color: #222; }
[hidden] { display: none !important; } /* also for elements with their own display (e.g. the Yes / No buttons) */
header { display: flex; align-items: center; gap: 16px; padding: 10px 24px; background: #1a4d8f; color: #fff; }
header h1 { font-size: 20px; margin: 0; }
header nav { margin-left: auto; display: flex; gap: 16px; }
header a { color: #dfe8f6; text-decoration: none; }
header a:hover { color: #fff; }
.status { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,.15); }
.status.offline { background: #b3541e; }
main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; max-width: 1150px; margin: 20px auto; padding: 0 20px; }
@media (max-width: 860px) { main { grid-template-columns: 1fr; } }
main.single { grid-template-columns: minmax(0, 1fr); max-width: 780px; }
.panel { background: #fff; border: 1px solid #e2e5ea; border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; }
.panel h3 { margin: 0 0 10px; font-size: 15px; color: #444; }
.center { text-align: center; }
.big { font-size: 18px; }
.hint { color: #888; font-size: 12px; }
button { font: inherit; cursor: pointer; border-radius: 6px; border: 1px solid #c8d0dc; background: #fff; padding: 6px 14px; }
button:hover { background: #f1f4f9; }
button.primary { background: #1a4d8f; color: #fff; border-color: #1a4d8f; padding: 8px 22px; font-size: 16px; }
button.primary:hover { background: #163f75; }
button:disabled { opacity: .5; cursor: default; }
button.ghost { border-color: transparent; color: #888; font-size: 13px; }
button.ghost:hover { color: #b00020; background: #fbeeee; }
kbd { display: inline-block; font: 11px/1 ui-monospace, monospace; padding: 2px 5px; border: 1px solid #ccc; border-bottom-width: 2px; border-radius: 4px; background: #f7f7f7; color: #555; margin-left: 4px; vertical-align: middle; }
button.primary kbd { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.4); }

.cardtop { display: flex; align-items: center; gap: 10px; color: #888; font-size: 13px; margin-bottom: 16px; }
.cardtop .spacer { flex: 1; }
.cardinfo { display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; }
.cardtop button.icon { padding: 4px 7px; font-size: 16px; line-height: 1; }
/* after answering: next card now, a small icon that is still easy to tap */
.nextcard { width: 48px; height: 48px; margin-top: 14px; padding: 0; border-radius: 50%; font-size: 22px; line-height: 1;
  color: #1a4d8f; background: #eaf1fb; border: 1px solid #c8d6ec; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nextcard:hover { background: #dbe7f8; }
/* ✔✔ Known beside pause, left of ✘ No / ➜ (greyed out when the card cannot be marked known) */
.bottombar > .knownbottom { flex: none; width: 48px; height: 48px; margin: 0; padding: 0 3px 0 0; border-radius: 50%; font-size: 16px;
  font-weight: 700; letter-spacing: -3px; color: #2e7d32; background: #f1f8f1; border: 1px solid #c8e6c9; }
.knownbottom:hover:not(:disabled) { background: #e8f5e9; }
.knownbottom:disabled { opacity: .35; }
.knownask { margin-top: 12px; padding: 12px; border: 1px solid #c8e6c9; border-radius: 8px; background: #f1f8f1; text-align: center; }
.knownask p { margin: 0 0 10px; font-size: 14px; color: #333; }
.knownask button { margin: 0 4px; }
button.ghost.edit:hover { color: #1a4d8f; background: #eaf1fb; }
#editor { padding: 12px 4px; }
#editor label { display: block; margin: 6px 0; font-size: 13px; color: #555; }
#editor textarea { display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: 18px; line-height: 1.3; padding: 6px 8px; margin-top: 2px; border: 1px solid #c8d0dc; border-radius: 6px; resize: vertical; }
#editor textarea[name=ru] { color: #1a4d8f; font-weight: 600; }
.editbtns { display: flex; gap: 10px; justify-content: flex-end; }
h3.withbtn { display: flex; align-items: center; gap: 10px; }
button.pause { width: 30px; height: 26px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
button.pause { color: #1a4d8f; }
button.pause svg { width: 14px; height: 14px; fill: #1a4d8f; }
button.pause.paused { background: #fff6e0; border-color: #e6a23c; }
button.pause.paused svg { fill: #b36b00; }
button.pause.muted { background: #fdecea; border-color: #e2a3a3; }
button.pause.muted { color: #b00020; }
button.pause.muted svg { fill: #b00020; }
.timer.frozen #timerFill { background: #c9ced6; }
.kind { padding: 0 8px; border-radius: 10px; font-size: 11px; background: #eef2fb; color: #1a4d8f; }
.kind.new { background: #e8f5e9; color: #2e7d32; }
.kind.relearn { background: #fdecea; color: #b00020; }
.kind.practice { background: #fff8e1; color: #8d6e00; }
.side { text-align: center; padding: 18px 10px; min-height: 90px; }
.side.back { border-top: 1px dashed #d8dde5; }
.word { font-size: 34px; font-weight: 600; color: #1a4d8f; }
.word.en { color: #333; }
.translit { color: #777; font-style: italic; margin-top: 4px; display: flex; gap: 6px; justify-content: center; align-items: center; }
.say { border: 1px solid #c8d6ea; background: #f2f6fc; border-radius: 12px; padding: 0 8px; font-size: 14px; font-style: normal; }
.context { color: #666; font-size: 14px; margin-top: 10px; font-style: italic; }
.side details { text-align: left; margin-top: 12px; }
#actions { text-align: center; padding-top: 10px; flex: 1; min-width: 0; }
/* pause / play at the bottom left, beside the answer buttons */
.bottombar { display: flex; align-items: flex-end; gap: 8px; }
.bottombar > #pauseBtn { flex: none; width: 48px; height: 48px; border-radius: 50%; }
.bottombar > #pauseBtn svg { width: 18px; height: 18px; }
/* The timer sits on the bottom edge of the card, outside the flow: showing / hiding it never changes the card's size.
   The card keeps room for its text (padding-bottom). */
#cardView { position: relative; padding-bottom: 30px; }
.timer { position: absolute; left: 0; right: 0; bottom: 0; display: block; font-size: 12px; color: #888; }
.timer .track { height: 6px; background: #eef0f3; border-radius: 0 0 9px 9px; overflow: hidden; }
#timerText { position: absolute; right: 12px; bottom: 9px; line-height: 1.2; }
#timerFill { height: 100%; width: 100%; background: #e6a23c; transition: width .1s linear; }
.timer.reveal #timerFill { background: #9bb8e0; }
details.adv { margin-top: 12px; border-top: 1px solid #eee; padding-top: 8px; }
details.adv summary { cursor: pointer; color: #555; font-size: 14px; }
details.adv .hint { margin: 2px 0 6px; }
#grades { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
#grades button { min-width: 110px; display: flex; flex-direction: column; align-items: center; padding: 8px 12px; }
#grades small { color: #888; font-size: 11px; }
.g1 { border-color: #e2a3a3; } .g1:hover { background: #fdecea; }
.g2 { border-color: #e8c98e; } .g2:hover { background: #fff6e0; }
.g3 { border-color: #9cc9a2; } .g3:hover { background: #e8f5e9; }
.g4 { border-color: #9bb8e0; } .g4:hover { background: #eaf1fb; }

#stats table, #help table { width: 100%; border-collapse: collapse; font-size: 14px; }
#stats td, #help td { padding: 3px 0; border-bottom: 1px solid #f0f0f0; }
#stats td.n { text-align: right; font-weight: 600; }
#forecast { margin-top: 12px; font-size: 12px; color: #666; }
.fc { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.fc span:first-child { width: 70px; }
.fc .b { height: 10px; background: #9bb8e0; border-radius: 2px; }
#excludedBox { margin-top: 12px; font-size: 13px; }
#excludedList div { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; border-bottom: 1px solid #f3f3f3; }
#excludedList button { font-size: 11px; padding: 0 6px; }
form label { display: block; margin: 8px 0; font-size: 14px; }
form input[type=number], form select { width: 100%; box-sizing: border-box; padding: 4px 6px; font: inherit; margin-top: 2px; }
form input[type=range] { width: 70%; vertical-align: middle; }
form label.check { display: flex; gap: 6px; align-items: center; }
.sumgrid { display: flex; gap: 14px; justify-content: center; margin: 14px 0; }
.sumgrid div { padding: 8px 14px; border-radius: 8px; background: #f4f6f9; }
.sumgrid b { display: block; font-size: 22px; }
.sumgrid .yes b { color: #2e7d32; }
.sumgrid .no b { color: #b00020; }
#grades button.yes, #grades button.no { min-width: 140px; font-size: 17px; font-weight: 600; }
#grades button.yes { color: #2e7d32; }
#grades button.no { color: #b00020; }
#grades .icon { font-size: 30px; line-height: 1; }
.sumgrid .icon { font-size: 18px; font-weight: 700; }
.sumgrid .yes .icon { color: #2e7d32; }
.sumgrid .no .icon { color: #b00020; }
.deckreport { margin: 4px auto 18px; max-width: 460px; padding: 10px 14px; background: #f7f9fc; border: 1px solid #e6eaf0; border-radius: 8px; }
.deckreport .title { font-weight: 600; color: #1a4d8f; margin-bottom: 6px; }
.deckreport .nums { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.deckreport .nums b { font-size: 18px; }
.deckreport .hint { margin: 6px 0; font-size: 13px; }
.deckreport a { font-size: 13px; }
#editHint.error { color: #b00020; }

/* card set selector, grammar cards */
.setpick { margin: 0 0 8px; color: #555; }
.setpick select { font: inherit; font-weight: 600; color: #1a4d8f; padding: 3px 6px; margin-left: 4px; }
.setpick a { font-size: 13px; margin-left: 8px; }
.kind.topic { background: #f3eefb; color: #6a3d9a; }
.word.long { font-size: 22px; }
.word { white-space: pre-line; }
.context.note { font-style: normal; color: #555; }
b.fill { color: #2e7d32; text-decoration: underline; text-decoration-color: #9cc9a2; text-underline-offset: 4px; }
.rulebox { text-align: left; margin: 14px auto 0; max-width: 620px; padding: 8px 12px; background: #fffbe8; border-left: 4px solid #e6b800; border-radius: 0 6px 6px 0; font-size: 14px; color: #444; }
a.rule { white-space: nowrap; font-size: 13px; }
button.danger { color: #b00020; border-color: #e2a3a3; margin-right: auto; }
button.danger:hover { background: #fdecea; }
#excludedList span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* browse mode */
.kind.browse { background: #ede7f6; color: #5e35b1; }
.browsenote { margin: 6px 0 0; font-size: 13px; color: #5e35b1; background: #f6f2fc; border-radius: 6px; padding: 4px 10px; }
body.browsing #cardView { box-shadow: inset 0 3px 0 #7e57c2; }
#browseBtn { margin-left: 8px; }

/* phone: sync button, toast, touch and small screens */
button.sync { margin-left: 4px; padding: 3px 12px; font-size: 13px; background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
button.sync:hover { background: rgba(255,255,255,.22); }
button.sync.pending { background: #e6a23c; border-color: #e6a23c; }
button.sync.busy { opacity: .6; }
.toast button { margin-left: 8px; padding: 2px 10px; border: 1px solid #fff; border-radius: 4px; background: transparent; color: #fff; font: inherit; cursor: pointer; }
/* Taps go through the message to the buttons under it (✘ No / ✔ Yes on a phone); only its own button (Undo) takes them. */
.toast button { pointer-events: auto; }
button { touch-action: manipulation; } /* no double-tap zoom eating a quick second tap (phone, "Desktop site") */
#cardView button { touch-action: none; } /* a tap there never turns into a scroll (trainer.js: buttons act on the finger lifting) */
.toast { pointer-events: none; position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: 90vw; background: #333; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; z-index: 10; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.browsenote .touch { display: none; }
#front, #back { cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  kbd { display: none; }
  .browsenote .touch { display: inline; }
}
@media (max-width: 640px) {
  /* One line whatever the status says ("saving…", "offline · saved on this device, not synced yet"):
     a header that wraps to two lines after an answer pushed the whole card down. Full text in the mouseover. */
  header { flex-wrap: nowrap; gap: 8px; padding: 8px 12px; }
  header h1 { font-size: 16px; white-space: nowrap; flex: none; }
  header .sync { flex: none; }
  header nav { display: none; }
  .status { font-size: 11px; flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  main, main.single { margin: 8px auto; padding: 0 8px; gap: 8px; }
  .panel { padding: 12px; border-radius: 8px; }
  /* Two fixed rows, so nothing moves from one card to the next or when it is turned over: the buttons
     (icons only) on one line, then the counter / kind / topic on a line of their own (cut if too long). */
  .cardtop { flex-wrap: wrap; gap: 4px 6px; margin-bottom: 10px; }
  .cardtop .lbl { display: none; }
  .cardinfo { order: 99; flex: 0 0 100%; height: 22px; overflow: hidden; gap: 6px; }
  .cardinfo .kind { overflow: hidden; text-overflow: ellipsis; }
  .cardtop button.ghost { padding: 4px 8px; }
  .word { font-size: 26px; }
  .word.long { font-size: 19px; }
  .side { padding: 14px 4px; }
  #grades { gap: 8px; }
  #grades button, #grades button.yes, #grades button.no { flex: 1; min-width: 0; min-height: 64px; font-size: 18px; }
  /* the card fills the screen below the header (--cardTop, set by the trainer), Yes / No at the bottom:
     turning it over, answering and the timer do not change its size */
  #cardView:not([hidden]) { display: flex; flex-direction: column; box-sizing: border-box; margin-bottom: 0;
    min-height: calc(100dvh - var(--cardTop, 120px) - 8px); }
  .bottombar { margin-top: auto; }
  #actions { min-height: 76px; }
  .bottombar > #pauseBtn { width: 56px; height: 64px; border-radius: 8px; }
  .bottombar > #pauseBtn svg { width: 22px; height: 22px; }
  body.browsing #actions { min-height: 0; }
  /* ➜ next card fills the whole bar where Yes / No were, so a quick second tap anywhere there goes on.
     ✔✔ Known stays beside pause; the countdown after Known puts Cancel / next now in the same bar. */
  #nextBtn { width: 100%; height: 64px; margin: 0; border-radius: 8px; font-size: 28px; }
  .bottombar > .knownbottom { width: 56px; height: 64px; border-radius: 8px; font-size: 18px; -webkit-tap-highlight-color: transparent; }
  /* No timer bar on the phone (room for the card): the button the timer will press shows the time left
     (trainer.js timedButton): a light fill that grows from the left as the time runs, a slow soft blink in the last 5 seconds. */
  #timer { display: none !important; }
  #cardView { padding-bottom: 12px; }
  #actions .timed { --rgb: 26, 77, 143; background-image: linear-gradient(to right, rgba(var(--rgb), .09) var(--done), transparent var(--done)); }
  #actions #grades button.no.timed { --rgb: 176, 0, 32; }
  #actions #knownYes.timed { --rgb: 255, 255, 255; background-image: linear-gradient(to right, rgba(255, 255, 255, .16) var(--done), transparent var(--done)); }
  #actions .timed.frozen, #actions #knownYes.timed.frozen { background-image: linear-gradient(to right, rgba(0, 0, 0, .05) var(--done), transparent var(--done)); }
  #actions .timed.ending { animation: mv-ending 2s ease-in-out infinite; }
  .knownask:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; border: none; background: none; }
  .knownask p { grid-column: 1 / -1; margin: 0 0 4px; }
  .knownask button { grid-row: 2; margin: 0; min-height: 64px; font-size: 18px; }
  #knownNo { grid-column: 1; }
  #knownYes { grid-column: 2; }
  .timer .track { border-radius: 0 0 7px 7px; }
  .setpick select { max-width: 100%; }
  .rulebox { font-size: 15px; }
}
#timer { cursor: pointer; }
@keyframes mv-ending { 50% { box-shadow: inset 0 0 0 100px rgba(var(--rgb), .07); } }
/* touch screens keep :hover after a tap: the next card's buttons would start coloured */
@media (hover: none) {
  button:hover, #grades button:hover { background-color: #fff; }
  button.ghost:hover { background-color: transparent; }
  .nextcard:hover { background-color: #eaf1fb; }
  .knownbottom:hover { background-color: #f1f8f1; }
  button.primary:hover { background-color: #1a4d8f; }
  button.pause.paused:hover { background-color: #fff6e0; }
  button.pause.muted:hover { background-color: #fdecea; }
  button.sync:hover { background-color: rgba(255,255,255,.12); }
  button.sync.pending:hover { background-color: #e6a23c; }
}

/* phone: screen lock (touches do nothing until the unlock button is held for 1 s) */
button.sync.lock { padding: 3px 8px; }
@media (max-width: 640px) { #lockBtn { margin-left: auto; } }
/* transparent: the cards stay visible underneath, only the touches are caught */
.lockscreen { position: fixed; inset: 0; z-index: 1000; background: transparent; box-shadow: inset 0 0 0 3px rgba(26, 77, 143, .5);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; padding: 0 16px 24px;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.lockscreen .lockbar { display: flex; align-items: center; gap: 14px; padding: 8px 14px 8px 18px; border-radius: 40px;
  background: rgba(20, 20, 20, .78); color: #ddd; font-size: 13px; text-align: left; }
.lockscreen p { margin: 0; }
.lockscreen .unlock { position: relative; overflow: hidden; flex: none; width: 56px; height: 56px; border-radius: 50%; font-size: 24px;
  background: #1c1c1c; border: 2px solid #444; color: #fff; -webkit-tap-highlight-color: transparent; }
.lockscreen .unlock::before { content: ""; position: absolute; inset: 0; background: #1a4d8f; transform: scaleY(0); transform-origin: bottom; z-index: -1; }
.lockscreen .unlock { isolation: isolate; }
.lockscreen .unlock.holding::before { transform: scaleY(1); transition: transform 1s linear; }

/* phone: the settings of the set on the start screen (no card sets page there) */
.setsettings { text-align: left; max-width: 460px; margin: 18px auto 0; border-top: 1px solid #eee; padding-top: 10px; }
.setsettings > summary { cursor: pointer; color: #1a4d8f; font-weight: 600; font-size: 15px; padding: 6px 0; }
.setsettings h4 { margin: 12px 0 4px; font-size: 13px; color: #444; }
.setsettings[hidden] { display: none; }
/* phone in Chrome's "Desktop site" mode: how to switch it off (trainer.js desktopSiteNotice); large text, the page is zoomed out */
.desktopsite { position: relative; padding: 24px 90px 24px 24px; background: #fff3cd; color: #5d4500; font-size: 40px; line-height: 1.3; border-bottom: 3px solid #e6a23c; }
.desktopsite button { position: absolute; top: 12px; right: 16px; font-size: 48px; line-height: 1; padding: 4px 20px; background: none; border: none; color: #5d4500; }

/* a card's picture */
.cardimg { display: block; margin: 0 auto 10px; max-width: min(240px, 70%); max-height: 200px; object-fit: contain; }
@media (max-width: 600px) { .cardimg { max-height: 150px; } }

/* the Account box (session.js): card sets page, the phone's settings */
.mv-account p { margin: 6px 0; }
.mv-account .mv-who { font-size: 15px; word-break: break-all; }
.mv-account input[type=email], .mv-account input[type=password] { font: inherit; padding: 5px 8px; border: 1px solid #c8d0dc; border-radius: 6px; width: 16em; max-width: 100%; box-sizing: border-box; }
.mv-account form, .mv-account details { margin: 6px 0; }
.setaccount { border-bottom: 1px solid #eee; padding-bottom: 8px; margin-bottom: 8px; }
.setaccount h3 { margin: 10px 0 4px; font-size: 13px; color: #444; }

/* the version, discreetly at the bottom of the settings (version.js) */
.appversion { margin: 10px 0 0; text-align: right; color: #aaa; font-size: 11px; }

/* flashcards or multiple choice (start screen) */
.modepick { display: inline-flex; margin: 4px 0 14px; border: 1px solid #c8d0dc; border-radius: 8px; overflow: hidden; }
.modepick button { border: none; border-radius: 0; padding: 7px 14px; background: #fff; color: #555; }
.modepick button + button { border-left: 1px solid #c8d0dc; }
.modepick button.on { background: #eaf1fb; color: #1a4d8f; font-weight: 600; box-shadow: inset 0 -3px 0 #1a4d8f; }

/* multiple choice: 4 answers in a 2 × 2 grid (one column for long sentences on a narrow screen), pictures as tiles */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.choices .choice { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 64px; padding: 10px 12px 10px 28px; font-size: 19px; line-height: 1.25; text-align: center; color: #1a4d8f;
  border: 1px solid #c8d0dc; border-radius: 10px; background: #fff; -webkit-tap-highlight-color: transparent; }
.choices .choice:hover:not(:disabled) { background: #f1f4f9; border-color: #9bb8e0; }
.choices .choice .text.en { color: #333; }
.choices .choice .text.long { font-size: 15px; }
.choices .choice .num { position: absolute; left: 6px; top: 6px; margin: 0; }
.choices.pictures .choice { padding: 10px; min-height: 120px; }
.choices .choiceimg { display: block; max-width: 100%; height: 110px; object-fit: contain; pointer-events: none; }
.choices .caption { font-size: 14px; color: #333; visibility: hidden; }
.choices.done .caption { visibility: visible; }
.choices .choice:disabled { opacity: 1; cursor: default; }
.choices.done .choice:not(.right):not(.wrong) { opacity: .55; }
.choices .choice.right { background: #e8f5e9; border-color: #2e7d32; box-shadow: inset 0 0 0 2px #2e7d32; color: #1b5e20; }
.choices .choice.wrong { background: #fdecea; border-color: #b00020; box-shadow: inset 0 0 0 2px #b00020; color: #8c0019; }
.choices .choice.right::after, .choices .choice.wrong::after { position: absolute; right: 8px; top: 4px; font-size: 18px; font-weight: 700; }
.choices .choice.right::after { content: "✔"; color: #2e7d32; }
.choices .choice.wrong::after { content: "✘"; color: #b00020; }
/* the question stays short above the answers; ✘ No is "I don't know" and ✔ Yes is the right choice */
#cardView.quiz .side { min-height: 0; padding-bottom: 10px; }
#cardView.quiz #grades .yes { display: none; }
#cardView.quiz #front, #cardView.quiz #back { cursor: default; }
@media (max-width: 640px) {
  .modepick { display: flex; width: 100%; }
  .modepick button { flex: 1; padding: 10px 6px; }
  .choices { gap: 8px; }
  .choices .choice { min-height: 58px; font-size: 18px; padding: 8px 8px 8px 22px; }
  .choices .choice .num { display: none; }
  .choices.pictures .choice { min-height: 96px; padding: 6px; }
  .choices .choiceimg { height: 78px; }
  #cardView.quiz .cardimg { max-height: 110px; }
}
@media (max-width: 420px) {
  .choices:not(.pictures):has(.text.long) { grid-template-columns: 1fr; }
}
@media (hover: none) {
  .choices .choice:hover:not(:disabled) { background: #fff; border-color: #c8d0dc; }
}
#cardView.quiz #grades .no::after { content: attr(data-quiz); font-size: 14px; font-weight: 500; }
.guidelink { margin: 14px 0 0; font-size: 14px; }
.guidelink a { text-decoration: none; }
