/* Live lesson (static/live.js) on top of mochi-ds. Prefix jp-live-. Light + night washi come from the DS tokens;
   motion uses the DS duration tokens, so prefers-reduced-motion zeroes it; looping animations are switched off below. */

#jp-live-root[hidden]{display:none}
#jp-live-root .jp{font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic UI","Yu Gothic","Meiryo",system-ui,sans-serif;font-feature-settings:"palt" 0;line-break:strict;word-break:keep-all;overflow-wrap:anywhere}
#jp-live-root .m-bubble__jp.jp{font-family:var(--m-font-jp)}
/* big Japanese lines carry <wbr> at word boundaries (jpWrap): break only there; one long word still never overflows */
#jp-live-root .jp-live-jp,#jp-live-root .jp-live-recap__jp,#jp-live-root .jp-live-hint__jp{overflow-wrap:break-word;min-width:0;max-width:100%}

/* Pinned bottom area: control bar (132px over the safe area) + help chip row (42px) on one solid paper band */
#jp-live-root{--jp-live-ctrl-h:132px;--jp-live-help-h:42px;--jp-live-fade:20px;
  --jp-live-band:calc(var(--m-safe-bottom) + var(--jp-live-ctrl-h) + var(--jp-live-help-h) + var(--jp-live-fade))}
.jp-live{padding-bottom:calc(var(--m-safe-bottom) + var(--jp-live-ctrl-h) + var(--jp-live-help-h) + 24px)}
.jp-live-action{scroll-margin-bottom:var(--jp-live-band)}
.jp-live-main{display:grid;gap:12px;padding-top:4px}

/* Navbar: pinned, always on paper material; title + step dashes stacked */
.jp-live-nav .m-navbar__bar::before{opacity:1}
.jp-live-nav .m-navbar__title{display:grid;justify-items:center;gap:6px;opacity:1}
.jp-live-nav__t{max-width:100%;overflow:hidden;text-overflow:ellipsis;font:var(--m-type-footnote);font-weight:600;color:var(--m-text)}
.jp-live-steps{width:100%}

/* Status row under the navbar: LIVE badge, step name, pace */
.jp-live-sub{display:flex;align-items:center;gap:8px;min-height:24px;margin-top:6px}
.jp-live-sub .m-badge .m-icon{width:12px;height:12px}
.jp-live-sub__step{flex:1 1 0;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:var(--m-type-footnote);font-weight:600;color:var(--m-text-2)}
.jp-live-left{flex:none;display:inline-flex;align-items:center;gap:3px;padding-left:8px;border-left:1px solid var(--m-hairline);font:var(--m-type-caption);color:var(--m-text-2);white-space:nowrap}
.jp-live-left[hidden]{display:none}
.jp-live-left .m-icon{width:13px;height:13px}
.jp-live-left.is-low{color:var(--m-warning)}
.jp-live-pace{flex:none;display:inline-flex;align-items:center;gap:6px;font:var(--m-type-caption);color:var(--m-text-2);white-space:nowrap}
.jp-live-pace::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--m-text-3)}
.jp-live-pace[data-level="1"]::before{background:var(--m-success)}
.jp-live-pace[data-level="-1"]::before{background:var(--m-gold)}

/* Teacher stage: Mochi-chan in a paper disc inside the ensō (lesson progress, gold at night); her caption bubble
   points at her. A row keeps board + action above the control bar on a 390x844 phone in Telegram fullscreen. */
.jp-live-stage{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px}
.jp-live-ring{--_s:136px}
.jp-live-mochi{position:relative;width:112px;height:112px;border-radius:50%;overflow:hidden;
  background:radial-gradient(circle at 50% 38%,var(--m-paper-50),var(--m-surface-2) 62%,var(--m-surface-sunken));box-shadow:inset 0 0 0 1px var(--m-hairline)}
[data-theme=dark] .jp-live-mochi{background:radial-gradient(circle at 50% 42%,color-mix(in srgb,var(--m-kin-300) 30%,var(--m-surface)),color-mix(in srgb,var(--m-kin-300) 8%,var(--m-surface)) 70%);box-shadow:inset 0 0 0 1px var(--m-card-border)}
.jp-live-mochi__bob{position:absolute;inset:0;transform-origin:50% 100%;will-change:transform}
.jp-live-mochi__img{position:absolute;left:50%;bottom:-6px;width:126px;max-width:none;height:auto;transform:translateX(-50%);opacity:0;transition:opacity 180ms var(--m-ease-out);pointer-events:none;-webkit-user-select:none;user-select:none}
.jp-live-mochi__img.is-on{opacity:1}
.jp-live-mochi.is-talking:not(.has-level) .jp-live-mochi__bob{animation:jp-live-breathe 2.4s var(--m-ease-in-out) infinite}
@keyframes jp-live-breathe{50%{transform:scale(1.012)}}
.jp-live-cap{justify-self:start;max-width:100%;margin-left:6px}
.jp-live-cap__t{text-wrap:pretty;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.jp-live-cap.is-empty{color:var(--m-text-3)}
.jp-live-cap.is-off{visibility:hidden}
.jp-live--text .jp-live-cap__t{-webkit-line-clamp:5}
.jp-live-cap .jp{font-weight:600}
@media (max-height:860px){.jp-live-ring{--_s:124px}.jp-live-mochi{width:102px;height:102px}.jp-live-mochi__img{width:116px}}
@media (min-height:900px){.jp-live-ring{--_s:156px}.jp-live-mochi{width:130px;height:130px}.jp-live-mochi__img{width:146px}}

/* Board card */
.jp-live-board{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;gap:6px;padding:16px 18px 18px}
.jp-live-kicker{font:var(--m-type-caption);font-weight:600;letter-spacing:.04em;color:var(--m-accent-text)}
[data-theme=dark] .jp-live-kicker{color:var(--m-gold)}
.jp-live-title{font:var(--m-type-title-2);font-family:var(--m-font-display);letter-spacing:var(--m-tracking-title);text-wrap:balance}
.jp-live-label{margin-top:6px;font:var(--m-type-footnote);font-weight:600;color:var(--m-text-2)}
.jp-live-jpbtn{display:block;max-width:100%;margin:0;padding:0;text-align:left;border-radius:var(--m-radius-xs);-webkit-tap-highlight-color:#0000}
.jp-live-jp{display:block;color:var(--m-text);font-weight:600}
.jp-live-jp--phrase{font-size:32px;line-height:1.3}
.jp-live-jp--line{font-size:20px;line-height:1.4;font-weight:500}
.jp-live-jp--word{font-size:56px;line-height:1.15;font-weight:500}
.jp-live-jp--char{font-size:96px;line-height:1;font-weight:500}
.jp-live-kana{font-size:17px;line-height:1.4;color:var(--m-text-2)}
.jp-live-romaji{font:italic var(--m-type-callout);color:var(--m-text-2)}
.jp-live-romaji[hidden]{display:none}
.jp-live-en{font:var(--m-type-body);color:var(--m-text)}
.jp-live-when{display:flex;align-items:flex-start;gap:6px;font:var(--m-type-footnote);color:var(--m-text-2)}
.jp-live-when .m-icon{width:16px;height:16px;margin-top:1px;color:var(--m-text-3)}
.jp-live-center{justify-content:center;text-align:center}
.jp-live-situation{font:var(--m-type-title-3);font-family:var(--m-font-display);font-weight:600;text-wrap:balance}
.jp-live-sithint{margin-top:-2px;font:var(--m-type-footnote);color:var(--m-text-2);text-wrap:pretty}
.jp-live-hidden{display:flex;align-items:center;gap:8px;width:100%;margin-top:4px;padding:12px 14px;border-radius:var(--m-radius-md);background:var(--m-surface-sunken);color:var(--m-text-2);font:var(--m-type-subhead)}
.jp-live-hidden .m-icon{width:18px;height:18px;flex:none}
.jp-live-answer{display:grid;gap:4px;width:100%;padding-top:10px;border-top:1px solid var(--m-hairline);animation:jp-live-in var(--m-dur-slow) var(--m-ease-out)}
@keyframes jp-live-in{from{opacity:0;transform:translateY(4px)}}
.jp-live-where{display:flex;align-items:flex-start;gap:8px;font:var(--m-type-subhead);color:var(--m-text-2)}
.jp-live-where .m-icon{width:18px;height:18px;flex:none;margin-top:1px}
.jp-live-goalchips{display:flex;flex-wrap:wrap;gap:6px}
.jp-live-goalchip{display:inline-flex;align-items:flex-start;gap:6px;padding:6px 12px;border-radius:16px;background:var(--m-surface-2);box-shadow:inset 0 0 0 1px var(--m-hairline);font:var(--m-type-footnote);font-weight:600;color:var(--m-text-2)}
.jp-live-goalchip .m-icon{width:14px;height:14px;margin-top:2px;flex:none;color:var(--m-success)}
.jp-live-chipbtn{flex:none}
.jp-live-chipbtn.is-sent{--_bg:var(--m-success-tint);--_fg:var(--m-success)}

/* Listen */
.jp-live-dots{display:flex;gap:6px;padding:2px 0}
.jp-live-dots>i{width:8px;height:8px;border-radius:50%;background:var(--m-hairline);transition:background-color var(--m-dur-base)}
.jp-live-dots>i.is-on{background:var(--m-accent)}
[data-theme=dark] .jp-live-dots>i.is-on{background:var(--m-gold)}
.jp-live-lines{display:grid;gap:10px;width:100%;margin-top:4px}
.jp-live-line{position:relative;padding-left:14px;animation:jp-live-in var(--m-dur-slow) var(--m-ease-out)}
.jp-live-line::before{content:"";position:absolute;left:0;top:6px;bottom:6px;width:3px;border-radius:2px;background:var(--m-hairline)}
.jp-live-line.is-cur::before{background:var(--m-accent)}
[data-theme=dark] .jp-live-line.is-cur::before{background:var(--m-gold)}

/* Back-chain parts */
.jp-live-bc{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin-top:6px}
.jp-live-bc__part{padding:4px 10px;border-radius:999px;background:var(--m-surface-sunken);color:var(--m-text-3);font-size:15px;line-height:20px;transition:background-color var(--m-dur-base),color var(--m-dur-base)}
.jp-live-bc__part.is-on{background:var(--m-accent-tint);color:var(--m-accent-text)}
.jp-live-bc__part.is-cur{box-shadow:inset 0 0 0 1.5px var(--m-accent)}
.jp-live-bc__arrow{width:14px;height:14px;color:var(--m-text-3)}

/* Kana tiles */
.jp-live-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;width:100%;margin-top:4px}
.jp-live-tile{display:grid;justify-items:center;align-content:start;gap:2px;padding:10px 6px 12px;border-radius:var(--m-radius-md);background:var(--m-surface-2);box-shadow:inset 0 0 0 1px var(--m-hairline);text-align:center}
.jp-live-tile__g{font-size:56px;line-height:1.1;font-weight:500}
.jp-live-tile__r{font:var(--m-type-subhead);font-weight:600}
.jp-live-tile__m{font:var(--m-type-caption);color:var(--m-text-2);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* Write + result */
.jp-live-prompt{font:var(--m-type-title-3);font-weight:500}
.jp-live-prompt b{font-weight:700}
.jp-live-target{display:flex;align-items:center;gap:20px;width:100%}
.jp-live-target__s{display:grid;justify-items:start;gap:8px}
.jp-live-chip--danger{--_bg:var(--m-danger-tint);--_fg:var(--m-danger)}
.jp-live-pad{position:relative;justify-self:center;width:min(100%,300px);aspect-ratio:1;border-radius:var(--m-radius-lg);background:var(--m-surface);border:1px solid var(--m-card-border);box-shadow:var(--m-elev-1);overflow:hidden;touch-action:none}
.jp-live-pad__grid{position:absolute;inset:0;pointer-events:none}
.jp-live-pad__grid::before,.jp-live-pad__grid::after{content:"";position:absolute;border:0 dashed var(--m-hairline)}
.jp-live-pad__grid::before{left:50%;top:10px;bottom:10px;border-left-width:1px}
.jp-live-pad__grid::after{top:50%;left:10px;right:10px;border-top-width:1px}
.jp-live-pad__guide{position:absolute;inset:0;display:grid;place-items:center;font-size:min(210px,56vw);line-height:1;font-weight:400;color:var(--m-text);opacity:0;transition:opacity var(--m-dur-base);pointer-events:none;-webkit-user-select:none;user-select:none}
.jp-live-pad.is-guide .jp-live-pad__guide{opacity:.11}
.jp-live-pad__canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}
.jp-live-padbar{display:flex;align-items:center;gap:8px;width:min(100%,300px);justify-self:center}
.jp-live-padbar>.m-btn--primary{flex:1}
.jp-live-typebtn{justify-self:center}
.jp-live-typed{display:grid;gap:6px}
.jp-live-input{width:100%;min-height:52px;padding:0 16px;border-radius:var(--m-radius-md);border:1px solid var(--m-hairline);background:var(--m-surface);color:var(--m-text);font-size:20px;box-shadow:var(--m-elev-1)}
.jp-live-input:focus-visible{outline:0;box-shadow:var(--m-focus-ring)}
.jp-live-checking{display:flex;align-items:center;gap:14px;padding:14px;border-radius:var(--m-radius-lg);background:var(--m-surface);border:1px solid var(--m-card-border);box-shadow:var(--m-elev-1)}
.jp-live-checking__img{flex:none;width:72px;height:72px;border-radius:var(--m-radius-sm);background:#fff;box-shadow:inset 0 0 0 1px var(--m-hairline)}
.jp-live-checking__b{display:grid;gap:8px;flex:1;min-width:0}
.jp-live-checking__t{font:var(--m-type-headline)}
.jp-live-shimmer{height:3px}
.jp-live-result{display:grid;gap:8px}
.jp-live-tip{display:flex;align-items:flex-start;gap:8px;padding:12px 14px;border-radius:var(--m-radius-md);background:var(--m-gold-tint);font:var(--m-type-subhead)}
.jp-live-tip .m-icon{width:18px;height:18px;flex:none;margin-top:1px;color:var(--m-gold)}

/* Role-play */
.jp-live-goals{display:grid;gap:4px;width:100%;margin-top:4px}
.jp-live-goal{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:6px 4px;border-radius:var(--m-radius-sm);text-align:left;font:var(--m-type-subhead);color:var(--m-text)}
.jp-live-goal:active{background:var(--m-surface-sunken)}
.jp-live-goal__tick{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--m-text-3);color:#0000;transition:background-color var(--m-dur-base),color var(--m-dur-base)}
.jp-live-goal__tick .m-icon{width:16px;height:16px}
.jp-live-goal[aria-pressed=true] .jp-live-goal__tick{background:var(--m-success);box-shadow:none;color:var(--m-surface)}
.jp-live-goal[aria-pressed=true] .jp-live-goal__t{color:var(--m-text-2);text-decoration:line-through;text-decoration-color:var(--m-text-3)}
.jp-live-hint{display:grid;gap:4px;width:100%;margin-top:4px;padding:10px 14px;border-radius:var(--m-radius-md);background:var(--m-gold-tint);animation:jp-live-in var(--m-dur-slow) var(--m-ease-out)}
.jp-live-hint__t{display:flex;align-items:center;gap:8px;font:var(--m-type-footnote);font-weight:600;color:var(--m-text-2)}
.jp-live-hint__t .m-icon{width:16px;height:16px;color:var(--m-gold)}
.jp-live-hint__jp{font-size:24px;line-height:1.3;font-weight:600}
.jp-live-reply{display:grid;gap:4px;padding:12px 14px;border-radius:var(--m-radius-md);background:var(--m-surface);border:1px solid var(--m-card-border)}
.jp-live-composer{display:flex;gap:8px;align-items:center}
.jp-live-composer .jp-live-input{flex:1;font-size:17px}

/* Wrap-up */
.jp-live-score{display:flex;align-items:baseline;gap:6px;font:700 var(--m-fs-large-title)/1.1 var(--m-font-ui);font-variant-numeric:var(--m-numeric)}
.jp-live-score__of{font:var(--m-type-title-3);font-weight:500;color:var(--m-text-2)}
.jp-live-recap{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:100%}
.jp-live-recap>li{display:grid;gap:1px;padding:8px 12px;border-radius:var(--m-radius-md);background:var(--m-surface-2);box-shadow:inset 0 0 0 1px var(--m-hairline)}
.jp-live-recap__jp{font-size:20px;font-weight:600}
.jp-live-recap__en{font:var(--m-type-footnote);color:var(--m-text-2)}
.jp-live-weak{display:flex;flex-wrap:wrap;gap:6px}
.jp-live-weak>li{padding:4px 10px;border-radius:999px;background:var(--m-danger-tint);color:var(--m-danger);font-size:15px;font-weight:600}
.jp-live-mission{width:100%;margin-top:8px}

/* Action area */
.jp-live-action{display:grid;gap:12px}
.jp-live-talk{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 4px}
.jp-live-wave{flex:none;width:52px;height:24px;gap:2px}
.jp-live-wave>i{width:2.5px}
.jp-live-talk .jp-live-status{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:var(--m-type-footnote)}
.jp-live-nextline{margin-top:4px}
.jp-live-talk__btns{display:flex;gap:4px;margin-left:auto}
.jp-live-status{font:var(--m-type-subhead);color:var(--m-text-2);min-height:20px}
.jp-live-mic{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:var(--m-radius-lg);background:var(--m-surface);border:1px solid var(--m-card-border);box-shadow:var(--m-elev-1)}
.jp-live-micring{--lv:0;position:relative;display:grid;place-items:center;flex:none;width:56px;height:56px;color:var(--m-accent-text)}
.jp-live-micring svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.jp-live-micring__lv{fill:var(--m-accent-tint);transform-origin:50% 50%;transform:scale(calc(.74 + var(--lv) * .34));transition:transform 80ms linear}
.jp-live-micring__base{fill:var(--m-surface);stroke:var(--m-accent);stroke-width:1.6;stroke-opacity:calc(.35 + var(--lv) * .65)}
[data-theme=dark] .jp-live-micring{color:var(--m-gold)}
[data-theme=dark] .jp-live-micring__base{stroke:var(--m-gold)}
.jp-live-micring>.m-icon{position:relative;width:22px;height:22px}
.jp-live-mic__body{display:grid;gap:2px;flex:1;min-width:0}
.jp-live-mic__label{display:flex;align-items:center;justify-content:space-between;gap:8px;font:var(--m-type-footnote);font-weight:600;color:var(--m-text-2)}
.jp-live-mic .jp-live-status{font:var(--m-type-caption);color:var(--m-text-3);min-height:16px}
.jp-live-heard{font:var(--m-type-callout);color:var(--m-text);min-height:21px;overflow-wrap:anywhere}
.jp-live-heard.is-ok{color:var(--m-success)}
.jp-live-heard.is-miss{color:var(--m-danger)}
.jp-live-dim{color:var(--m-text-3)}
.jp-live-attempts{display:inline-flex;gap:4px}
.jp-live-attempts>i{width:8px;height:8px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--m-text-3)}
.jp-live-attempts>i.is-used{background:var(--m-text-2);box-shadow:none}
.jp-live-mic>.m-btn{flex:none;align-self:center}
.jp-live-btns{display:flex;gap:10px}
.jp-live-btns>.m-btn{flex:1}
.jp-live-btns--col{flex-direction:column}
.jp-live-btns--col>.m-btn{flex:none}

/* Fixed bottom dock (wrap-up Done) where the control bar was */
.jp-live-dock{position:fixed;left:calc(var(--m-safe-left) + var(--m-gutter));right:calc(var(--m-safe-right) + var(--m-gutter));bottom:calc(var(--m-safe-bottom) + 12px);z-index:var(--m-z-tabbar);display:grid;gap:8px}
.jp-live-dock::before{content:"";position:absolute;inset:-16px calc(-1 * var(--m-gutter)) calc(-12px - var(--m-safe-bottom));z-index:-1;background:linear-gradient(#0000,var(--m-bg) 28px);pointer-events:none}

/* Help chips: pinned right above the control bar, scroll sideways when narrow */
.jp-live-help{position:fixed;left:0;right:0;bottom:calc(var(--m-safe-bottom) + 132px);z-index:var(--m-z-tabbar);display:flex;gap:6px;padding:6px calc(var(--m-safe-right) + var(--m-gutter)) 6px calc(var(--m-safe-left) + var(--m-gutter));overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;pointer-events:none}
.jp-live-help>*{pointer-events:auto}
.jp-live-help::-webkit-scrollbar{display:none}
.jp-live-help[hidden]{display:none}
.jp-live-help .m-chip{height:30px;box-shadow:inset 0 0 0 1px var(--m-hairline),var(--m-elev-1)}
/* the paper band behind chips + control bar (on the bar's wrapper: the chip row scrolls sideways, so it would clip
   its own ::before); fades in over --jp-live-fade, then solid down to the screen bottom; shorter when the chips hide */
.jp-live-ctrlwrap:not(:empty)::before{content:"";position:fixed;left:0;right:0;bottom:0;z-index:calc(var(--m-z-tabbar) - 1);height:var(--jp-live-band);
  background:linear-gradient(#0000,var(--m-bg) var(--jp-live-fade));pointer-events:none}
.jp-live-help[hidden]+.jp-live-ctrlwrap::before{height:calc(var(--m-safe-bottom) + var(--jp-live-ctrl-h) + var(--jp-live-fade))}

/* Control bar: End is the one vermilion element; it goes quiet (ink) while the action area shows its own primary */
.jp-live-ctrl .m-ctrl[aria-pressed=true] .m-ctrl__c{background:var(--m-surface-sunken);color:var(--m-text)}
.jp-live-ctrl .m-ctrl[data-act=mute][aria-pressed=true] .m-ctrl__c{background:var(--m-danger-tint);color:var(--m-danger)}
.jp-live-end.is-quiet .m-ctrl__c{background:var(--m-text);color:var(--m-bg);box-shadow:0 0 0 4px var(--m-surface),var(--m-elev-2)}

/* Transcript sheet */
.jp-live-log{display:grid;gap:10px;align-content:start}
.jp-live-msg{display:grid;gap:2px;max-width:86%;padding:8px 12px;border-radius:var(--m-radius-md);background:var(--m-surface-2);box-shadow:inset 0 0 0 1px var(--m-hairline)}
.jp-live-msg--user{justify-self:end;background:var(--m-accent-tint);box-shadow:none}
.jp-live-msg__who{font:var(--m-type-caption);color:var(--m-text-2)}
.jp-live-msg__t{font:var(--m-type-callout)}

/* Intro */
.jp-live-intro{padding-top:12px}
.jp-live-hello{align-items:center}
.jp-live-hello .m-bubble{max-width:none;flex:1}
.jp-live-introcard{display:grid;justify-items:start;gap:8px}
.jp-live-chips{display:flex;flex-wrap:wrap;gap:6px}
.jp-live-itemchip{font-size:15px;font-weight:600;color:var(--m-text)}
.jp-live-vm{display:grid;gap:8px;padding:14px 16px}
.jp-live-vm__l{display:flex;justify-content:space-between;align-items:center;font:var(--m-type-subhead);font-weight:600}
.jp-live-vm__l>span{display:inline-flex;align-items:center;gap:6px}
.jp-live-vm__l .m-icon{width:18px;height:18px;color:var(--m-text-2)}
.jp-live-warn{background:var(--m-warning-tint)}
.jp-live-warn::before{background:var(--m-warning)}
.jp-live-warn .m-callout__title{color:var(--m-warning)}
.jp-live-note{display:flex;align-items:flex-start;gap:8px;margin-top:4px;font:var(--m-type-footnote);color:var(--m-warning)}
.jp-live-note .m-icon{width:16px;height:16px;flex:none;margin-top:1px}
.jp-live--intro{padding-bottom:calc(var(--m-safe-bottom) + 140px)}
.jp-live-dock__row{display:flex;gap:8px}
.jp-live-dock{grid-template-columns:minmax(0,1fr)}
.jp-live-dock__row>.m-btn{flex:1 1 auto;min-width:0}
.jp-live-textbtn{justify-self:center}
.jp-live-empty{min-height:60dvh;align-content:center}

@media (prefers-reduced-motion:reduce){
  .jp-live-mochi__bob,.jp-live-answer,.jp-live-line,.jp-live-hint{animation:none!important;transform:none!important}
  .jp-live-mochi__img{transition:none}
  .jp-live-micring__lv{transform:none;opacity:calc(.35 + var(--lv) * .65);transition:none}
}
