/* The sheet's own drawing, written once for the pages that draw a ⋯ sheet or a Try it preview (PLAN-html-web-w5-w7 §3.1, W5 range 2): the question page's and the word page's. The rules are
   the ones play.css held (W2's Recall preview, W4's ⋯ sheets), moved here as they were, in their order; play.css keeps the boards. */
/* Slip (shop/slip.dart): the 伝票, a card with a hairline and a shadow line, a header strip, the child, the verdict's seal stamped on its corner. */
.slip { position: relative; padding: 10px 16px 14px; background: var(--shop-card); border: 1px solid var(--line30); box-shadow: 0 1px 0 color-mix(in srgb, var(--shop-line) 25%, transparent); }
.slip-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-bottom: 8px; border-bottom: 1px solid color-mix(in srgb, var(--shop-line) 20%, transparent); }
.slip-head .stepnote { font-size: calc(12.5px * var(--fs)); font-weight: 600; color: var(--on-surface-variant); }
.slip[data-sealed] .slip-head { padding-right: 62px; }
.slip-body { margin-top: 10px; }
.slip-body .seal-gap { float: right; width: 62px; height: 70px; }
/* The chips (own_card_chip.dart, recall_board.dart SkillChip, ahead_pill.dart). */
.chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.chip .pre { font-size: 9px; font-weight: 800; letter-spacing: 1px; color: var(--on-surface-variant); }
.chip .mv { font-size: 11px; font-weight: 600; color: var(--on-surface-variant); white-space: pre; }
.sent { font-size: calc(24px * var(--fs)); line-height: 1.8; color: var(--on-surface); overflow-wrap: anywhere; }
/* The asking sentence (ReadPrompt's second try and grammar face, read_prompt.dart): 25/1.6; Recall's and Write's boards draw it at 22. */
.sent.ask { font-size: calc(25px * var(--fs)); line-height: 1.6; }
.sent .w { cursor: pointer; }
.sent ruby { ruby-position: over; }
.sent rt { font-size: .5em; line-height: 1; font-weight: 400; color: var(--on-surface-variant); }
:root[data-furigana=off] .sent rt { display: none; }
:root[data-furigana=off] .sent .tgt[data-ruby=kept] rt { display: ruby-text; }
/* The asked word as the phone draws it (RubyText's targetStyle): the primary ink, bold, its reading in the same ink; no tint behind it, which
   the phone keeps for a tapped word. */
.sent .tgt { color: var(--shop-ai); font-weight: 700; }
.sent .tgt rt { color: var(--shop-ai); }
.sent .tgt[data-ruby=hidden] rt { display: none; }
.sent .gap { display: inline-block; min-width: 2em; height: 1.2em; vertical-align: -.2em; border-bottom: 2px solid var(--shop-ai); }
.sent .bold { font-weight: 700; color: var(--primary); }
/* The sheets (showModalBottomSheet): a dialog from the foot, the page under it dimmed. */
dialog#sheet { width: 100%; max-width: 620px; max-height: 90vh; max-height: 90dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 12px 12px 0 0; background: var(--shop-card); color: var(--on-surface); overflow: auto; }
dialog#sheet::backdrop { background: rgba(0, 0, 0, .5); }
dialog#sheet .in { padding: 0 22px 18px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
dialog#sheet .grab { width: 32px; height: 4px; margin: 10px auto 14px; border-radius: 2px; background: var(--line30); }
dialog#sheet h2 { margin-top: 6px; font-size: calc(24px * var(--fs)); line-height: 1.25; font-weight: 800; }
/* _Eyebrow (word_sheet.dart): 10 px w800, 1.05 apart, in the primary. */
dialog#sheet .sheet-eb { font-size: calc(10px * var(--fs)); font-weight: 800; letter-spacing: 1.05px; color: var(--primary); }
dialog#sheet .body { margin-top: 8px; font-size: calc(15px * var(--fs)); line-height: 1.45; }
/* QuestionIntroBody's examples (question_intro.dart): two cards side by side, as tall as each other, 10 px apart (Write's build sheet stacks them,
   centred); each 12/10/12/12 in, the label at 10.5 w800, 4 px, the word at 20 bold, a meaning or the heard romaji (after the 藍 speaker, 6 px) at 18
   bold, the sentence with its gap at 20 bold (the gap an em underlined in 縹), the typed romaji in monospace at 20, the word with its gap at 34; the
   muted lines at 13.5/1.4. */
dialog#sheet .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
dialog#sheet .pair[data-stacked] { grid-template-columns: 1fr; text-align: center; }
dialog#sheet .ex { min-width: 0; padding: 10px 12px 12px; background: var(--shop-card); border: 1px solid var(--line30); border-radius: 4px; }
dialog#sheet .pair[data-stacked] .ex .l { text-align: left; }
dialog#sheet .ex .l { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; color: var(--on-surface-variant); }
dialog#sheet .ex .v { margin-top: 4px; font-size: calc(20px * var(--fs)); font-weight: 700; }
dialog#sheet .ex .v.pick { font-size: calc(18px * var(--fs)); }
dialog#sheet .ex .v.hear { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: calc(18px * var(--fs)); }
dialog#sheet .ex .v.hear .ic { color: var(--primary); }
dialog#sheet .ex .v.gapline { white-space: nowrap; font-size: min(calc(20px * var(--fs)), calc((min(100vw, 620px) - 78px) / 2 / var(--n, 1))); }
dialog#sheet .ex .v.gapline .gap { display: inline-block; width: 1em; height: 1.1em; margin-right: 3px; vertical-align: -.15em; border-bottom: 1.5px solid var(--shop-hanada); }
dialog#sheet .ex .v.romaji { font-family: ui-monospace, Menlo, Consolas, monospace; }
dialog#sheet .ex .v.gapword { font-size: calc(34px * var(--fs)); }
dialog#sheet .ex .sub { margin-top: 4px; font-size: calc(13.5px * var(--fs)); line-height: 1.4; color: var(--on-surface-variant); }
dialog#sheet .ex .v + .sub { margin-top: 0; }
dialog#sheet .note { margin-top: 12px; font-size: calc(13.5px * var(--fs)); line-height: 1.4; color: var(--on-surface-variant); }
dialog#sheet .acts { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
dialog#sheet .acts [data-role] { width: 100%; }
dialog#sheet .foot2 { margin-top: 10px; text-align: center; font-size: calc(12.5px * var(--fs)); line-height: 1.4; color: var(--on-surface-variant); }
dialog#sheet .pt { display: flex; gap: 12px; margin: 14px 0 0; font-size: calc(15px * var(--fs)); line-height: 1.4; }
dialog#sheet .pt .ic { color: var(--primary); }
dialog#sheet .titlebar { display: flex; align-items: center; gap: 8px; }
dialog#sheet .titlebar h2 { flex: 1; font-size: 17px; margin: 0; }
dialog#sheet .titlebar button { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; color: var(--shop-ai); }
dialog#sheet .field { margin-top: 12px; }
dialog#sheet .field .h { font-size: 10px; font-weight: 800; letter-spacing: 1.05px; color: var(--primary); margin-bottom: 8px; }
/* RecallBoard's aids and field (recall_board.dart), shared by the board (play.css) and the Recall preview on both pages' sheets: two aids that keep their
   room under a cover, the field on its underline. */
.aids { display: grid; margin-top: 12px; min-height: 44px; }
.aids + .aids { margin-top: 8px; }
.aids > * { grid-area: 1 / 1; }
.aidc { display: flex; flex-direction: column; justify-content: center; }
.aidc[data-off] { visibility: hidden; }
.aidt { font-size: calc(14px * var(--fs)); line-height: 1.35; color: var(--on-surface-variant); }
.aids[data-aid=aidWord] .aidt { font-style: italic; }
.aidcover { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; background: var(--shop-ground); border: 1px solid var(--line30); border-radius: 4px; color: var(--primary); font-size: calc(14px * var(--fs)); font-weight: 600; letter-spacing: .1px; }
.aidcover[aria-disabled=true] { color: color-mix(in srgb, var(--on-surface) 38%, transparent); }
.aidcover .ic::before { width: 18px; height: 18px; }
.rin { display: block; width: 100%; padding: 8px 0; font: inherit; font-size: calc(22px * var(--fs)); color: var(--on-surface); background: transparent; border: 0; border-bottom: 1px solid var(--line45); border-radius: 0; outline: none; }
.rin::placeholder { font-size: calc(16px * var(--fs)); color: var(--shop-muted); }
.rin:focus { border-bottom: 2px solid var(--shop-hanada); padding-bottom: 7px; }
.rin[aria-invalid=true] { border-bottom-color: var(--shop-wrong); }
/* The preview's field and aids are the Recall board's own (above). */
dialog#sheet .field .box { min-height: calc(22px * 1.45 * var(--fs) + 17px); }
dialog#sheet .gchip { margin-bottom: 8px; }
/* The ⋯ sheets (word_sheet.dart, game_screen.dart's bar sheet): rows with a title and a line, eyebrows, the what's-wrong step, Replace sentence's steps. */
#notice .undo { margin-left: 14px; font-weight: 800; color: var(--shop-ground); text-decoration: underline; }
dialog#sheet .sec { margin-top: 16px; }
dialog#sheet .sheet-eb.sec { margin-bottom: 8px; }
/* _ReasonRow (word_sheet.dart): a card at least 56 px, 16/10/14/10 in, the title at 16 w700, 2 px, its line at 13/1.35 muted, 12 px, what trails it
   in the primary: the chevron, or the hidden eye (20 px), 4 px, "Remove" at 13 w800. 8 px between rows. */
dialog#sheet .mrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px 10px 16px; margin-top: 8px; background: var(--shop-card); border: 1px solid var(--line30); border-radius: 4px; text-align: left; }
dialog#sheet .mrow .mt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
dialog#sheet .mrow b { font-size: calc(16px * var(--fs)); font-weight: 700; }
dialog#sheet .mrow small, .aopt small { font-size: calc(13px * var(--fs)); line-height: 1.35; color: var(--on-surface-variant); }
dialog#sheet .mrow > .ic, dialog#sheet .mrow .rm { color: var(--primary); }
dialog#sheet .mrow .rm { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: calc(13px * var(--fs)); font-weight: 800; }
dialog#sheet .mrow .rm .ic::before { width: 20px; height: 20px; }
/* A ListTile (the ⋯ sheet's fixed rows, Open word page): no frame, 56 px, the leading icon (24, muted) 16 px before the title at 16. */
dialog#sheet .trow { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 56px; padding: 0; text-align: left; font-size: calc(16px * var(--fs)); }
dialog#sheet .trow .ic { color: var(--on-surface-variant); }
dialog#sheet .trow[data-act=sheetWordPage] span { font-weight: 600; }
/* _SentenceCard: the inset card at least 64 px, 16/12/14/12 in, everything in the primary: the sparkle, 14 px, the title at 16 w800 over its line
   at 13/1.35, 8 px, the chevron. */
dialog#sheet .scard { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; margin-top: 8px; padding: 12px 14px 12px 16px; color: var(--primary); text-align: left; }
dialog#sheet .scard .mt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; margin-right: -6px; }
dialog#sheet .scard b { font-size: calc(16px * var(--fs)); font-weight: 800; }
dialog#sheet .scard small { font-size: calc(13px * var(--fs)); line-height: 1.35; }
.ic-insights { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 8c-1.45 0-2.26 1.44-1.93 2.51l-3.55 3.56c-.3-.09-.74-.09-1.04 0l-2.55-2.55C12.27 10.45 11.46 9 10 9c-1.45 0-2.27 1.44-1.93 2.52l-4.56 4.55C2.44 15.74 1 16.55 1 18c0 1.1.9 2 2 2 1.45 0 2.26-1.44 1.93-2.51l4.55-4.56c.3.09.74.09 1.04 0l2.55 2.55C12.73 16.55 13.54 18 15 18c1.45 0 2.27-1.44 1.93-2.52l3.56-3.55c1.07.33 2.51-.48 2.51-1.93 0-1.1-.9-2-2-2zM15 9l.94-2.07L18 6l-2.06-.93L15 3l-.92 2.07L12 6l2.08.93zM3.5 11L4 9l2-.5L4 8l-.5-2L3 8l-2 .5L3 9z'/%3E%3C/svg%3E"); }
.ic-hidden { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z'/%3E%3C/svg%3E"); }
.ic-menubook { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1zm0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5v11.5zM17.5 10.5c.88 0 1.73.09 2.5.26V9.24c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99zM13 12.49v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26V11.9c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.3-4.5.83zM17.5 14.33c-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26v-1.52c-.79-.16-1.64-.24-2.5-.24z'/%3E%3C/svg%3E"); }
.ic-sparkle { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 9l1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25L19 9zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12l-5.5-2.5zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25L19 15z'/%3E%3C/svg%3E"); }
.ic-help { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z'/%3E%3C/svg%3E"); }
.ic-tune { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z'/%3E%3C/svg%3E"); }
dialog#sheet .mrow.sw[aria-checked] { min-height: 52px; }
dialog#sheet .mrow .knob { flex: none; position: relative; width: 52px; height: 32px; border-radius: 16px; border: 2px solid var(--line45); }
dialog#sheet .mrow .knob::after { content: ""; position: absolute; top: 5px; left: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--line45); }
dialog#sheet .mrow[aria-checked=true] .knob { background: var(--primary); border-color: var(--primary); }
dialog#sheet .mrow[aria-checked=true] .knob::after { left: 25px; background: var(--on-primary); }
dialog#sheet .wsurf { font-size: calc(26px * var(--fs)); font-weight: 700; }
dialog#sheet .wask { font-size: calc(22px * var(--fs)); font-weight: 800; line-height: 1.3; }
dialog#sheet .titlebar .tool, dialog#sheet .titlebar > button { color: var(--shop-ai); }
/* Asked as (word_sheet.dart): the field and its menu, on whichever sheet shows it (the question page's #sheet, the word page's). */
.asked .afield { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line45); border-radius: 4px; font-size: calc(16px * var(--fs)); font-weight: 700; }
.asked .afield[aria-expanded=true] .ic { transform: rotate(90deg); }
.asked .afield .ic::before { width: 18px; height: 18px; }
.amenu { margin-top: 4px; border: 1px solid var(--line30); border-radius: 4px; }
.aopt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; text-align: left; }
.aopt + .aopt { border-top: 1px solid var(--line18); }
.aopt .mt { flex: 1; display: flex; flex-direction: column; }
.aopt[aria-disabled=true] { opacity: .55; }
dialog#sheet .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
dialog#sheet .pchip { min-height: 40px; padding: 0 14px; border: 1px solid var(--line45); border-radius: 20px; font-size: calc(14px * var(--fs)); }
dialog#sheet .pchip[aria-pressed=true] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 700; }
dialog#sheet .fld { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; font-size: calc(13px * var(--fs)); color: var(--on-surface-variant); }
dialog#sheet .fld textarea, dialog#sheet .fld input { width: 100%; padding: 10px 12px; border: 1px solid var(--line45); border-radius: 4px; background: transparent; color: var(--on-surface); font: inherit; font-size: calc(15px * var(--fs)); }
dialog#sheet .fld small.err, dialog#sheet .note.err { color: var(--error, #b3261e); }
dialog#sheet .acts [aria-disabled=true] { opacity: .45; }
dialog#sheet .steps { margin: 12px 0 0; padding: 0; list-style: none; }
dialog#sheet .steps li { padding: 6px 0 6px 26px; position: relative; color: var(--on-surface-variant); }
dialog#sheet .steps li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line45); }
dialog#sheet .steps li[data-done]::before { background: var(--primary); border-color: var(--primary); }
dialog#sheet .steps li[aria-current=step] { color: var(--on-surface); font-weight: 700; }
dialog#sheet .sent { margin-top: 10px; font-size: calc(20px * var(--fs)); line-height: 1.9; }
dialog#sheet .sent .gap { display: inline-block; width: 3em; border-bottom: 2px solid var(--shop-ai); }
dialog#sheet .cliprow { display: flex; gap: 8px; margin-top: 8px; }
dialog#sheet .cliprow button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line45); border-radius: 4px; color: var(--primary); font-weight: 700; }
dialog#sheet .sides { display: grid; gap: 10px; margin-top: 14px; }
dialog#sheet .ex a { display: inline-block; margin-top: 4px; font-size: calc(12.5px * var(--fs)); color: var(--primary); }
/* The word-tap sheet (word_tap_sheet.dart). */
dialog#sheet .hh { font-size: calc(26px * var(--fs)); font-weight: 700; }
dialog#sheet .hr { margin-left: 10px; font-size: calc(15px * var(--fs)); font-weight: 400; color: var(--on-surface-variant); }
dialog#sheet .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
dialog#sheet .pill { display: inline-flex; padding: 2px 9px; border: 1px solid var(--line30); border-radius: 4px; font-size: calc(12px * var(--fs)); font-weight: 600; color: var(--shop-muted); }
dialog#sheet .pill[data-accent] { color: var(--primary); border-color: var(--primary); }
dialog#sheet .tsec { margin-top: 14px; }
dialog#sheet .tsec .tg { margin-top: 2px; font-size: calc(16px * var(--fs)); line-height: 1.4; }
dialog#sheet .tsec small { color: var(--on-surface-variant); }
/* A tapped word, its bubble and the hint under the sentence (sentence_words.dart, word_bubble), and The words (the_words.dart). */
.sent .w[data-tapped] { background: var(--shop-tint); border-radius: 4px; }
.taps:empty { display: none; }
.taps { margin-top: 2px; }
.taps .taphint { display: flex; align-items: center; gap: 4px; font-size: calc(12px * var(--fs)); color: var(--on-surface-variant); }
.taps .taphint .ic::before { width: 14px; height: 14px; }
.ic-chevron { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E"); }
/* WordBubble in TailedBubble (word_bubble.dart, tailed_bubble.dart): the inverse surface (the ink, its text the ground), elevation 3, the shop's
   radius, 12/8/12/9 in (4 at the right beside its ›); the headword at 17 w700, its reading at 13 and the form's chip at 11 (on the text colour at
   14 %) 6 px apart, the sense at 13/1.3 in two lines at most (muted and italic when it is not a meaning); the 8 px tail on the word, above or below.
   page-taps.js places it (left, top, width, --tail). */
.taps .bubble { position: absolute; z-index: 20; display: flex; align-items: center; padding: 8px 12px 9px; border-radius: 4px; background: var(--shop-ink); color: var(--shop-ground);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 4px 8px 3px rgba(0, 0, 0, .15); --muted: color-mix(in srgb, var(--shop-ground) 72%, transparent); }
.taps .bubble[data-opens] { padding-right: 4px; cursor: pointer; }
.taps .bubble::after { content: ""; position: absolute; left: calc(var(--tail, 50%) - 8px); bottom: -8px; width: 16px; height: 8px; background: inherit; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.taps .bubble[data-below]::after { bottom: auto; top: -8px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.taps .bt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.taps .bhl { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.taps .bh { font-size: calc(17px * var(--fs)); font-weight: 700; }
.taps .br { font-size: calc(13px * var(--fs)); color: var(--muted); }
.taps .bc { padding: 1px 6px; border-radius: 4px; background: color-mix(in srgb, var(--shop-ground) 14%, transparent); font-size: calc(11px * var(--fs)); }
.taps .bl { margin-top: 2px; font-size: calc(13px * var(--fs)); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.taps .bl.i { font-style: italic; color: var(--muted); }
.taps .bopen .ic::before { width: 22px; height: 22px; }
.taps .words { margin-top: 10px; padding: 8px 6px 8px 12px; border: 1px solid var(--line30); border-radius: 4px; background: var(--shop-tint); }
.taps .words .wh { display: flex; align-items: center; justify-content: space-between; }
.taps .words .sheet-eb { font-size: calc(11px * var(--fs)); font-weight: 800; letter-spacing: 1.3px; color: var(--primary); }
.taps .wrow { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 6px 0; text-align: left; }
.taps .wrow .rt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.taps .wrow .rh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.taps .wrow .rh b { font-size: calc(16px * var(--fs)); }
.taps .wrow .rh span, .taps .wrow small { font-size: calc(12.5px * var(--fs)); color: var(--on-surface-variant); }
.taps .wrow .ic::before { width: 18px; height: 18px; }
.taps .legend { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: calc(11px * var(--fs)); color: var(--on-surface-variant); }
.taps .legend span { display: inline-flex; align-items: center; gap: 4px; }
.dot { flex: none; display: inline-block; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; border: 2px solid var(--primary); box-sizing: border-box; }
.dot[data-dot=known] { background: var(--primary); }
.dot[data-dot=toLearn] { background: var(--shop-hanada); border-color: var(--shop-hanada); }
.dot[data-dot=notMet] { border-style: dashed; border-color: var(--shop-muted); }
.dot[data-dot=dictionary] { border-color: var(--shop-ai); }
.dot[data-dot=grammar] { background: var(--shop-ai); border-color: var(--shop-ai); }
