/* jt-famsheet.css · 每日记忆 / 单元达标: the family sheet opened from a word card's 词族与构词 chain (one word or the whole
   family), the "复习这个词族" button that replaced the 分组学习 link, and room under the runner for the phone rating dock.
   Hand-written; loaded after jt-lcard.css on the 31 task pages. */

/* ---- in the card ---- */
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-lcard button.node{transition:border-color var(--jt-dur,.18s),background-color var(--jt-dur,.18s),transform .12s}
@media (hover:hover){html[data-jt]:root body[data-jt-task][data-jt-page] .jt-lcard button.node:not(.cur):hover{border-color:var(--fam)}}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-lcard button.node:not(.cur):active{background:#F6F1FB;transform:translateY(1px)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-lcard button.node.cur:active{transform:translateY(1px)}

html[data-jt]:root body[data-jt-task][data-jt-page] .jt-lcard .jt-fam-open{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto 14px;align-items:center;gap:10px;width:100%;min-height:52px;margin:18px 0 2px;padding:10px 14px 10px 16px;
  border:1px solid var(--fam-line);border-left:3px solid var(--fam);border-radius:3px;background:var(--fam-bg);color:var(--ink);font:inherit;text-align:left;cursor:pointer;
  transition:background-color var(--jt-dur,.18s),transform .12s}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-lcard .jt-fam-open::after{content:"";width:8px;height:8px;border:solid var(--fam);border-width:1.5px 1.5px 0 0;transform:rotate(45deg);justify-self:center}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-lcard .jt-fam-open-k{font:500 15px/1.3 var(--jt-display,serif);letter-spacing:.06em;color:var(--fam)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-lcard .jt-fam-open-t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--serif);font-size:15px;color:var(--ink2)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-lcard .jt-fam-open-n{font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums}
@media (hover:hover){html[data-jt]:root body[data-jt-task][data-jt-page] .jt-lcard .jt-fam-open:hover{background:#E8DFF4}}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-lcard .jt-fam-open:active{background:#E3D8F1;transform:translateY(1px)}

/* the phone rating dock grows when a rating is picked: keep its height free under the runner (set by jt-lcard.js) */
@media (max-width:860px){
  html[data-jt]:root body[data-jt-task][data-jt-page] .jt-task-main :is(#runnerHost,#unitTestHost){padding-bottom:var(--jt-dock-h,0px)}
}

/* ---- the sheet ---- */
html.jt-fsheet-open{overflow:hidden}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:var(--jt-ink,#2C2A25);overflow:hidden}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet[open]{display:flex;align-items:flex-end;justify-content:center}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet::backdrop{background:rgba(44,42,37,.38)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet *{box-sizing:border-box}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet :focus-visible{outline:2px solid var(--jt-brand,#6B5C6E);outline-offset:2px;border-radius:3px}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet [lang="en"]{font-family:var(--jt-serif,"Source Serif 4",Georgia,serif)}

html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-panel{position:relative;display:flex;flex-direction:column;width:100%;max-height:min(80vh,640px);background:var(--jt-surface,#FAF7F0);
  border-top:var(--jt-hair,.5px) solid var(--jt-line-strong,#B9AE98);border-radius:12px 12px 0 0;box-shadow:0 -10px 30px rgba(44,42,37,.16);
  padding-bottom:env(safe-area-inset-bottom,0px);animation:jtFsUp .3s var(--jt-ease-out,cubic-bezier(.16,1,.3,1))}
@keyframes jtFsUp{from{transform:translateY(24px);opacity:.4}to{transform:none;opacity:1}}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-grip{width:36px;height:4px;border-radius:2px;background:var(--jt-line,#D6CCBA);margin:8px auto 0}
@media (min-width:861px){
  html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet[open]{align-items:center}
  html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-panel{width:min(480px,calc(100% - 48px));max-height:min(78vh,620px);border:var(--jt-hair,.5px) solid var(--jt-line-strong,#B9AE98);border-radius:6px;box-shadow:var(--jt-float-shadow,0 8px 24px rgba(44,42,37,.14))}
  html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-grip{display:none}
}
@media (prefers-reduced-motion:reduce){html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-panel{animation:none}}

html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto 44px;align-items:center;gap:8px;padding:6px 6px 10px 16px;border-bottom:var(--jt-hair,.5px) solid var(--jt-line,#D6CCBA)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-title{grid-column:2;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 18px/1.3 var(--jt-display,serif);letter-spacing:var(--jt-track-head,.06em);color:var(--jt-ink,#2C2A25)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-count{grid-column:3;font:400 13px/1 var(--jt-num,Georgia,serif);color:var(--jt-muted,#6B655A);font-variant-numeric:tabular-nums}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-back{grid-column:1;display:inline-flex;align-items:center;gap:2px;min-height:40px;padding:0 8px 0 0;margin-left:-6px;font-size:14px;color:var(--jt-fam,#5F3A93)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-back[hidden]{display:none}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-back svg,html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-x svg,html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-step svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-x{grid-column:4;display:grid;place-items:center;width:44px;height:44px;color:var(--jt-ink-2,#5F5A50);border-radius:50%}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-x:active{background:var(--jt-sunken,#EDE6D9)}

html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-body{flex:1 1 auto;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:4px 16px 8px;outline:none}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-foot{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px 12px;border-top:var(--jt-hair,.5px) solid var(--jt-line,#D6CCBA)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-foot:empty{display:none}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-note{flex:1;margin:0;text-align:center;font-size:12.5px;color:var(--jt-muted,#6B655A)}

/* list */
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-list{list-style:none;margin:0;padding:0}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-list li+li{border-top:var(--jt-hair,.5px) solid var(--jt-line,#D6CCBA)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-row{display:flex;flex-direction:column;gap:3px;width:100%;min-height:56px;padding:10px 10px 10px 12px;text-align:left;border-left:3px solid transparent;transition:background-color var(--jt-dur,.18s)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-row:active{background:var(--jt-sunken,#EDE6D9)}
@media (hover:hover){html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-row:hover{background:rgba(238,231,247,.6)}}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-row.is-cur{border-left-color:var(--jt-fam,#5F3A93);background:rgba(238,231,247,.55)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-row-top{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 10px}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-row-w{font-size:18px;font-weight:600;line-height:1.25;color:var(--jt-ink,#2C2A25)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-row-pos{font:italic 400 13px/1.2 var(--jt-serif,Georgia,serif);color:var(--jt-muted,#6B655A)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-row-cur{font-style:normal;font-size:11.5px;line-height:1;padding:3px 6px;border-radius:2px;background:var(--jt-fam,#5F3A93);color:#fff;letter-spacing:.08em}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-row-cn{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:1.5;color:var(--jt-ink-2,#5F5A50)}

/* one word */
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-word{padding:12px 2px 6px}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-wline{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-word .fs-hw{font-family:var(--jt-serif,"Source Serif 4",Georgia,serif);margin:0;font-size:30px;font-weight:600;line-height:1.15;letter-spacing:-.005em;color:var(--jt-ink,#2C2A25)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-play{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:1px solid var(--jt-line,#D6CCBA);background:var(--jt-ground,#F4EFE4);color:var(--jt-ink-2,#5F5A50);transition:background-color var(--jt-dur,.18s),color var(--jt-dur,.18s)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-play.playing,html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-play:active{background:var(--jt-brand,#6B5C6E);border-color:var(--jt-brand,#6B5C6E);color:var(--jt-on-brand,#F7F3EA)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-ipa{font:400 15px/1.2 var(--jt-ipa,serif);color:var(--jt-muted,#6B655A)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:10px 0 0}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-pos{font:italic 400 13px/1 var(--jt-serif,Georgia,serif);padding:4px 7px;border:var(--jt-hair,.5px) solid var(--jt-line-strong,#B9AE98);border-radius:2px;color:var(--jt-ink-2,#5F5A50)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-cn{margin:12px 0 0;font-size:17px;line-height:1.6;font-weight:500;color:var(--jt-ink,#2C2A25)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-en{margin:4px 0 0;font-size:15px;line-height:1.55;font-style:italic;color:var(--jt-ink-2,#5F5A50)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-build{margin:14px 0 0;padding:8px 12px;border-radius:3px;background:var(--jt-mem-bg,#FBF1DB);font-size:14px;line-height:1.6;color:var(--jt-ink,#2C2A25)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-k{font-size:12px;font-weight:600;letter-spacing:.12em;color:var(--jt-mem,#7E5408);margin-right:10px}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-ex{margin:14px 0 0;padding:2px 0 2px 12px;border-left:2px solid var(--jt-use,#0A5F55)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-ex-s{margin:0;font-size:16px;line-height:1.6;color:var(--jt-ink,#2C2A25)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-ex-s b{font-weight:600;color:var(--jt-use,#0A5F55)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-ex-zh{margin:4px 0 0;font-size:13.5px;line-height:1.6;color:var(--jt-muted,#6B655A)}

html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-step{display:inline-flex;align-items:center;gap:4px;max-width:48%;min-height:44px;padding:0 12px;border:var(--jt-hair,.5px) solid var(--jt-line-strong,#B9AE98);border-radius:3px;background:var(--jt-ground,#F4EFE4);font-size:15px;color:var(--jt-ink,#2C2A25)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-step span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-step:active{background:var(--jt-sunken,#EDE6D9)}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-step[disabled]{visibility:hidden}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-next{margin-left:auto}
html[data-jt]:root body[data-jt-task][data-jt-page] .jt-fsheet .fs-row-badge{font-style:normal;font-size:11.5px;line-height:1;padding:3px 6px;border-radius:2px;border:var(--jt-hair,.5px) solid var(--jt-rel,#23508A);color:var(--jt-rel,#23508A);letter-spacing:.04em}
