/* OD-59 build (B-PROTO-ALL): the owner-picked OD-53 changes, each behind its switch (tools/features.py) */
/* OD-57 #8 short Pretest result (switch pretest_short) */
.prs .prs-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prs .prs-row small { color: var(--muted); font-size: 14px; }
.prs .prs-big { font: 800 44px/1 var(--display, var(--text)); color: var(--ink); }
.prs .prs-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; }
.prs .prs-b { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 12px var(--text); color: var(--muted); }
.prs .prs-b i { display: flex; align-items: flex-end; width: 100%; height: 56px; border-radius: 8px; background: var(--track); overflow: hidden; }
.prs .prs-b b { display: block; width: 100%; background: var(--lilac2); border-radius: 8px 8px 0 0; }
.prs .prs-b.f b { background: var(--mint); } .prs .prs-b.f { color: #1E7A57; }   /* pick 1.x: the one green of the goal chip / Listening box */
.prs .prs-b.none { opacity: .5; }
.prs .prs-line { margin: 0; font: 700 15px/1.4 var(--text); color: var(--ink); }
.prs .prs-li { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.prs .prs-tile { flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--lilac); color: var(--violet-d); display: grid; place-items: center; }
.prs .prs-t { display: flex; flex-direction: column; min-width: 0; } .prs .prs-t small { color: var(--muted); font-size: 14px; }
.prs .prs-sec { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px;
  border-radius: 16px; background: #fff; box-shadow: 0 2px 0 var(--lilac); color: var(--ink); font: 700 15px var(--text); }
.prs .prs-sec span { flex: 1; } .prs .prs-sec small { color: var(--muted); font-weight: 400; font-size: 14px; }
.prs .prs-sec svg { color: var(--violet); }
.prs .prs-sec:focus-visible { outline: 3px solid var(--violet-d); outline-offset: 3px; }
.prs .prs-act { margin-top: 4px; } .prs .prs-act .fbtn { display: flex; width: 100%; min-height: 54px; }

/* OD-56 plan done "วันนี้พอแล้ว" (switch plan_done_enough): white page cards on the violet sheet, lime only on the reward */
.pdone.pde { gap: 10px; padding: 0 0 16px; text-align: left; align-items: stretch; }
.pde .pde-band { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 16px 6px; text-align: center; }
.pde .pde-ic { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; color: var(--lime); }
.pde .pde-ic svg { width: 34px; height: 34px; }
.pde .pde-band p { margin: 0; color: #E9E3FF; font-size: 15px; }
.pde .pde-xp { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font: 700 15px var(--text); }
.pde .pde-card { margin: 0 14px; background: #fff; color: var(--ink); border-radius: 20px; padding: 6px 16px; }
.pde .pde-k { display: block; padding: 10px 0 2px; font-size: 15px; }
.pde .pde-li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; border-top: 1px solid var(--line2); font-size: 15px; }
.pde .pde-li:first-of-type { border-top: 0; } .pde .pde-li b { color: var(--violet-d); white-space: nowrap; }
.pde .pde-tom { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 15px; }
.pde .pde-tom svg { color: var(--violet); flex: none; }
.pde .pde-lnk { all: unset; cursor: pointer; align-self: center; min-height: 44px; padding: 0 12px; color: #fff; text-decoration: underline; text-underline-offset: 3px; font: 600 15px var(--text); }
.pde .pde-lnk:focus-visible { outline: 3px solid #fff; border-radius: 8px; }
.pde .pde-main { margin: 0 14px; background: #fff; color: var(--violet-d); box-shadow: 0 4px 0 var(--violet-d); }
.pde .pde-main:hover { color: var(--violet-d); }

/* OD-59 picks 1.x / 5.x: celebration ribbons falling from the top */
.rbn { position: fixed; inset: 0; pointer-events: none; z-index: 2147482000; overflow: hidden; }
.rbn i { position: absolute; top: -40px; border-radius: 3px; opacity: .95; animation-name: rbn-fall; animation-timing-function: cubic-bezier(.3,.6,.5,1); animation-fill-mode: forwards; }
@keyframes rbn-fall { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(110vh) rotate(var(--r)); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .rbn { display: none; } }
/* pick 1.4: the easy-steps screen keeps its look; its main button becomes the new full-width one */
html.new-pretest-short :is(.es-page, .wsd-sheet) .ws-nav { flex-wrap: wrap; }
html.new-pretest-short :is(.es-page, .wsd-sheet) .ws-nav .btn-violet { order: 9; flex: 1 0 100%; height: 54px; border-radius: 16px; font-size: 16px; margin-top: 8px; }

/* pick 5.x: the gain rows move in one by one; each picture draws itself (no motion when the phone asks for less) */
.pde .pde-li { justify-content: flex-start; }
.pde .pde-li .pde-t { flex: 1; min-width: 0; } .pde .pde-g { flex: none; width: 40px; display: grid; place-items: center; }
.pde .pde-g svg { max-width: 40px; height: auto; } .pde .pde-big { font: 800 22px var(--display, var(--text)); color: var(--violet-d); }
.pde .pde-sc { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 15px; } .pde .pde-sc > span:first-child { flex: 1; } .pde .pde-sc .af-tag { flex: none; } .pde .pde-sc b { white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .pde .pde-li { animation: pde-in .45s cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(.35s + var(--i) * .22s); }
  .pde .pde-g svg, .pde .pde-big { animation: pde-pop .6s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(.55s + var(--i) * .22s); }
  .pde .pde-sc { animation: pde-in .45s ease both; animation-delay: 1.2s; }
}
@keyframes pde-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pde-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

/* pick 5.x redesign: pictures first */
.pd2 .pd2-score { padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.pd2 .pd2-sh { display: flex; align-items: center; justify-content: space-between; } .pd2 .pd2-sh small { color: var(--muted); font-size: 14px; }
.pd2 .pd2-big { font: 800 40px/1 var(--display, var(--text)); color: var(--ink); }
.pd2 .pd2-bar { position: relative; height: 10px; border-radius: 6px; background: var(--track); margin: 4px 0 16px; }
.pd2 .pd2-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--mint); transition: width 1.2s cubic-bezier(.2,.8,.3,1) .5s; }
.pd2.go .pd2-bar i { width: var(--to) !important; }
.pd2 .pd2-bar em { position: absolute; right: 0; top: 13px; font: 600 12px var(--text); color: var(--muted); font-style: normal; }
.pd2 .pd2-steps { padding: 12px 12px 10px; } .pd2 .pd2-steps > small { color: var(--muted); font-size: 14px; padding-left: 4px; }
.pd2 .pd2-row { display: flex; justify-content: space-around; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.pd2 .pd2-st { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; }
.pd2 .pd2-st b { font: 700 15px var(--text); color: var(--ink); } .pd2 .pd2-st small { font-size: 12px; color: var(--muted); }
.pd2 .pd2-ring { width: 56px; height: 56px; }
.pd2 .pd2-ring circle + circle { transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.3,1); transition-delay: var(--d); }
.pd2.go .pd2-ring circle + circle { stroke-dashoffset: var(--to); }
.pd2 .pd2-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--lilac); color: var(--violet-d); display: grid; place-items: center; }
.pd2 .pd2-tiles { margin: 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd2 .pd2-tile { background: #fff; color: var(--ink); border-radius: 18px; padding: 14px 10px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
/* owner 2026-11-24: centred, one 64px graphic box per tile so the numbers line up; a lone last tile takes the whole row */
.pd2 .pd2-tile .pd2-g { height: 64px; display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.pd2 .pd2-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pd2 .pd2-tile b { font: 800 24px/1 var(--display, var(--text)); color: var(--violet-d); } .pd2 .pd2-tile small { font-size: 13px; color: var(--muted); }
.pd2 .pd2-tom { margin: 0 16px; display: flex; align-items: center; gap: 6px; color: #fff; font-size: 15px; }
@media (prefers-reduced-motion: no-preference) {
  .pd2 .pd2-tile { animation: pde-pop .55s cubic-bezier(.3,1.5,.5,1) both; animation-delay: var(--d); }
  .pd2 .pd2-score, .pd2 .pd2-steps { animation: pde-in .45s ease both; } .pd2 .pd2-steps { animation-delay: .25s; }
}
@media (prefers-reduced-motion: reduce) { .pd2 .pd2-ring circle + circle { stroke-dashoffset: var(--to); } .pd2 .pd2-bar i { width: var(--to) !important; } }
/* pick 1.x: Pretest result bars at full colour (owner: opacity 100%) */
.prs .prs-b b { background: var(--violet); } .prs .prs-b.none { opacity: 1; }

/* owner 2026-11-22: plan done = a FULL PAGE as passed in flow-od53 scene 5 (violet band on top, white cards on the page colour,
   one violet main button fixed at the bottom), not a floating card */
.scrim:has(> .pd2-page) { padding: 0; align-items: stretch; justify-content: center; background: var(--bg); }
.pdone.pd2-page { width: 100%; max-width: 560px; height: 100dvh; max-height: 100dvh; border-radius: 0; background: var(--bg); color: var(--ink);
  padding: 0 0 104px; gap: 12px; overflow-y: auto; }
.pd2-page .pde-band { background: var(--violet); color: #fff; border-radius: 0 0 28px 28px; padding: 28px 16px 22px; }
.pd2-page .pde-card { box-shadow: 0 2px 0 var(--lilac); }
.pd2-page .pd2-tile { box-shadow: 0 2px 0 var(--lilac); }
.pd2-page .pd2-tom { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin: 0 14px; color: var(--ink); font-size: 15px; }
.pd2-page .pd2-tom svg { color: var(--violet); flex: none; }
.pd2-page .pde-lnk { color: var(--violet-d); } .pd2-page .pde-lnk:focus-visible { outline-color: var(--violet-d); }
.pd2-page .pd2-act { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg);
  display: flex; justify-content: center; }
.pd2-page .pd2-act .pde-main { width: 100%; max-width: 528px; margin: 0; min-height: 54px; background: var(--violet); color: #fff; box-shadow: 0 4px 0 var(--violet-d); }
.pd2-page .pd2-act .pde-main:hover { color: #fff; }
.pd2 .pd2-rw { position: relative; width: 56px; height: 56px; } .pd2 .pd2-rw .pd2-ring { position: absolute; inset: 0; }
.pd2 .pd2-ri { position: absolute; inset: 0; display: grid; place-items: center; color: var(--violet-d); }
.pd2 .pd2-ri svg { width: 22px; height: 22px; }

/* owner 2026-11-22: short Pretest result exactly as flow-od53 scene 2 (full page, card in the violet band, no tab bar) */
.prs-page { min-height: 100dvh; max-width: 560px; margin: 0 auto; background: var(--bg); display: flex; flex-direction: column; gap: 12px; padding: 0 0 100px; }
.prs-page .prs-band { background: var(--violet); border-radius: 0 0 28px 28px; padding: 18px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.prs-page .prs-band .ttl { margin: 0; color: #fff; font: 700 26px/1.1 var(--display, var(--text)); }
.prs-page .prs-card { background: #fff; border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.prs-page > .prs-card { margin: 0 14px; box-shadow: 0 2px 0 var(--lilac); }
.prs-page .prs-goal { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 10px; background: var(--mint); color: var(--ink); font: 700 13px var(--text); }
.prs-page .prs-plan .prs-k { font-size: 15px; color: var(--violet-d); }
.prs-page .prs-li { border-top: 1px solid var(--line2); padding: 8px 0; } .prs-page .prs-li:first-of-type { border-top: 0; }
.prs-page .prs-tile .fic { width: 20px; height: 20px; }
.prs-page .prs-sec { margin: 0 14px; } .prs-page .prs-chev { width: 18px; height: 18px; color: var(--muted); flex: none; }
.prs-page .prs-act { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); display: flex; justify-content: center; z-index: 5; }
.prs-page .prs-act .fbtn { width: 100%; max-width: 528px; }

/* OD-59 round B: Home "ภารกิจวันนี้" (switch one_ui; flow-od53 V.home / allSheet) */
.hmx { background: #fff; border: 2px solid var(--violet); border-radius: 24px; padding: 16px; display: flex; flex-direction: column; }
.hmx-h { display: flex; align-items: center; gap: 8px; } .hmx-h .k { font: 700 14px var(--text); color: var(--violet-d); flex: 1; }
.hmx-xp { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 11px; border-radius: 15px; background: var(--lilac); color: var(--violet-d); font: 700 14px var(--text); white-space: nowrap; }
.hmx-xp.lime { background: var(--lime); color: var(--ink); }
.hmx-path { display: flex; align-items: flex-start; margin-top: 12px; } .hmx-path.n2 { justify-content: center; } .hmx-path.n2 .ln { max-width: 150px; }
.hmx-path .pn { display: flex; flex-direction: column; align-items: center; width: 44px; flex: 0 0 44px; }
.hmx-path .pn small { font: 500 14px var(--text); color: var(--muted); white-space: nowrap; margin-top: 6px; }
.hmx-path .nd { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--muted); font: 700 18px var(--text); }
.hmx-path .nd .fic { width: 20px; height: 20px; }
.hmx-path .nd.done { background: var(--violet); border-color: var(--violet); color: #fff; }
.hmx-path .nd.cur { border-color: var(--violet); background: var(--lilac); color: var(--violet-d); box-shadow: 0 0 0 5px rgba(117,72,234,.15); }
.hmx-path .ln { flex: 1; height: 3px; background: var(--line); margin-top: 21px; } .hmx-path .ln.on { background: var(--violet); }
.hmx-step { display: flex; align-items: center; gap: 12px; background: var(--soft); border-radius: 18px; padding: 12px; margin: 14px 0; }
.hmx-step .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .hmx-step .t b { font: 700 16px/1.35 var(--text); }
.hmx-step .t small { font: 400 15px/1.4 var(--text); color: var(--muted); } .hmx-step .q { color: var(--muted); font: 500 15px var(--text); white-space: nowrap; }
.hmx-tile { width: 44px; height: 44px; border-radius: 14px; background: var(--lilac); color: var(--violet-d); display: grid; place-items: center; flex: 0 0 44px; font: 700 20px var(--text); }
.hmx-tile .fic { width: 22px; height: 22px; } .hmx-tile.mint { background: #D8F5E9; color: var(--green); }
.hmx > .fbtn { width: 100%; }
.hmx-lnk { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center; min-height: 44px; width: 100%; color: var(--violet-d); font: 700 15px var(--text); }
.hmx-lnk:focus-visible { outline: 2px solid var(--violet); border-radius: 12px; }
.scrim .dialog.hmx-sheet { max-height: 88vh; overflow: auto; padding-top: 10px; }
.hmx-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.hmx-sh { display: flex; align-items: center; gap: 8px; } .hmx-sh h2 { flex: 1; margin: 0; font: 700 19px/1.3 var(--text); }
.hmx-x { all: unset; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font: 700 18px var(--text); }
.hmx-grp { display: flex; align-items: center; gap: 8px; margin: 16px 0 4px; font: 700 15px var(--text); color: var(--violet-d); } .hmx-grp .fic { width: 18px; height: 18px; }
.hmx-srow { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; border: 1.5px solid var(--line); border-radius: 16px; padding: 10px 12px; margin-top: 8px; font: 700 16px/1.35 var(--text); color: var(--ink); }
.hmx-srow small { margin-left: auto; color: var(--muted); font: 600 15px var(--text); white-space: nowrap; }
.hmx-srow.cur { border-color: var(--violet); background: #F2EEFF; } .hmx-srow.dn { opacity: .6; cursor: default; }

/* OD-59 A3 (switch one_ui): tab headers like Home; Practice 10.2 pick + one button at the bottom */
.ppx-pick { display: flex; flex-direction: column; gap: 4px; } .ppx-pick .k { font: 700 14px var(--text); color: var(--violet-d); } .ppx-pick b { font: 700 19px/1.3 var(--text); }
/* the page's ONE main button: always at the same place, just above the tab bar (owner 2026-11-22: "ปุ่ม ... ข้างล่าง") */
.ppx-act { position: fixed; left: 0; right: 0; bottom: calc(71px + env(safe-area-inset-bottom)); z-index: 45; padding: 12px 16px 10px;
  background: linear-gradient(rgba(244,241,234,0), var(--bg) 28%); display: flex; flex-direction: column; align-items: center; }
.ppx-act .fbtn { width: 100%; max-width: 528px; }
.fh:has(> .ppx-act) { padding-bottom: 92px; }
@media (min-width: 761px) { .ppx-act { left: auto; right: auto; width: min(560px, calc(100% - 300px)); bottom: 16px; } }
.new-one-ui .pp-ph .nm small, .new-one-ui .pp-ph .pl-tag.recm { display: none; }   /* 10.2: no detail lines on the Part rows */
/* 10.11 Tests */
.new-one-ui .fhdr .sub:has(+ .ftsum), .new-one-ui .fhdr .ftsum, .new-one-ui .fhdr .fseries { display: none; }
.ftx-next { gap: 6px; } .ftx-next .k { font: 700 14px var(--text); color: var(--violet-d); }
.ftx-list { padding: 4px 16px; } .ftx-list .ftr { background: none; border: 0; border-top: 1px solid var(--line2); border-radius: 0; padding: 12px 0; box-shadow: none; }
.ftx-list .ftr:first-child { border-top: 0; }
/* 10.12 Ranking: you on the podium = your row's colours (violet block, lime face); a break before your own row */
.pd[data-me] .face { background: var(--lime); color: var(--ink); box-shadow: 0 0 0 3px var(--violet); }
.pd[data-me] .blk { background: var(--violet); color: #fff; } .pd[data-me] .pn { color: var(--violet-d); font-weight: 700; }
.rkx-gap { text-align: center; color: var(--muted); font: 700 18px/1 var(--text); letter-spacing: 2px; padding: 2px 0; }
/* 12.x one question bar (Pretest / Practice / Full Test) + 10.6 exit sheet */
.tbar.qx-bar { gap: 10px; padding: 10px 16px; }
.qx-x { all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.qx-x:focus-visible { outline: 2px solid var(--violet); }
.qx-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.qx-m b { font: 700 15px var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qx-p { display: block; height: 8px; border-radius: 4px; background: var(--lilac); overflow: hidden; } .qx-p i { display: block; height: 100%; background: var(--violet); border-radius: 4px; transition: width .5s ease-out; }
.qx-bar .chip, .qx-bar .pchip { flex: none; }
.new-one-ui .qprog .bar, .new-one-ui .qprog .lbl > b { display: none; }   /* the bar above carries "ข้อ n/N" and the progress */
.scrim .dialog.qx-sheet { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.qx-sheet h2 { margin: 0; font: 700 19px/1.3 var(--text); } .qx-sheet p { margin: 0 0 4px; color: var(--muted); }
.qx-sheet .fbtn { width: 100%; } .qx-sheet .qx-rep { color: var(--muted); font-weight: 600; }
.tbar.qx-bar .chip.timer, .tbar.qx-bar .chip.on-fb { order: 3; }
/* 10.4 / 10.5 new buttons: the main button full width at the bottom, the hint above it */
.new-one-ui .qfoot { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
.new-one-ui .qfoot .btn-violet { width: 100%; height: 56px; border-radius: 18px; font: 700 18px var(--text); box-shadow: 0 5px 0 var(--violet-d); }
.new-one-ui .qfoot .hint { text-align: center; }
/* 10.7 short result */
.lrx-h { display: flex; flex-direction: column; min-width: 0; } .lrx-h b { font: 700 20px/1.25 var(--display); } .lrx-h small { color: #E9E3FF; font: 500 14px var(--text); }
.lrx-sc { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; } .lrx-sc .a-score { font: 700 44px/1.05 var(--display); }
.lrx-sc .af-xp { justify-self: end; } .lrx-sc .fmuted { grid-column: 1 / -1; }
.lrx-path .hmx-path { margin-top: 0; }
.lrx-line { display: flex; align-items: center; gap: 10px; font: 500 16px/1.4 var(--text); } .lrx-line .ic { flex: none; color: var(--violet-d); }
.fcard.lrx-line { flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; }
/* 10.18 goal: violet header, compact cards, chips like the app, one violet button at the bottom */
.obx { background: var(--bg); min-height: 100vh; padding: 0 0 120px; }
.obx > .topbar-ob, .obx .ob > div:first-child { display: none !important; }
.obx-h { border-radius: 0 0 28px 28px; padding: 18px 16px 20px; }
.obx .ob-wrap { padding: 14px 16px 0; } .obx .ob { gap: 12px; max-width: 528px; margin: 0 auto; }
.obx .ob-card { padding: 16px !important; gap: 12px !important; border-radius: 24px; } .obx .ob-target { font-size: 40px; }
.obx .chipbtn { border: 1.5px solid var(--line); border-radius: 14px; } .obx .chipbtn.on { background: var(--violet); border-color: var(--violet); color: #fff; }
.obx-act { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); display: flex; flex-direction: column; align-items: center; }
.obx-act .fbtn { width: 100%; max-width: 528px; } .obx-out { color: var(--muted); font-weight: 600; min-height: 36px; }
/* 10.15 account menu = one bottom sheet on phones */
@media (max-width: 760px) {
  .new-one-ui .menu { position: fixed; left: 0; right: 0; bottom: 0; top: auto !important; border: 0; border-radius: 26px 26px 0 0; padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 0 0 100vmax rgba(31,26,46,.45); max-height: 88vh; overflow: auto; animation: none; }
  .new-one-ui .menu::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
  .new-one-ui .menu .who { font-size: 14px; padding: 4px 2px 12px; } .new-one-ui .menu .who b { font-size: 16px; }
  .new-one-ui .menu > a, .new-one-ui .menu > button { display: flex; align-items: center; min-height: 52px; padding: 0 2px; border-radius: 0; border-top: 1px solid var(--line2); font: 500 16px var(--text); }
  .new-one-ui .menu > a::after, .new-one-ui .menu > button::after { content: "›"; margin-left: auto; color: var(--muted); font-size: 20px; }
  .new-one-ui .menu > .who + * { border-top: 0; }
}
/* 10.16 delete account (looks only) */
.welcome.delx { display: block; background: var(--bg); min-height: 100vh; padding-bottom: 32px; }
.delx-h { border-radius: 0 0 28px 28px; padding: 18px 16px 20px; } .delx > .left { display: none; }
.delx > .right { padding: 14px 16px; max-width: 560px; margin: 0 auto; }
.delx .form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.delx .form h2 { font: 700 19px/1.3 var(--text); margin: 0; }
.delx .delx-keep { order: 8; width: 100%; text-decoration: none; }
.delx .form button[type=submit] { order: 9; width: 100%; background: #fff; color: var(--red-d, #B42318); border: 1.5px solid currentColor; box-shadow: none; height: 52px; border-radius: 16px; }
.delx .form > a[href="/privacy"] { order: 10; text-align: center; color: var(--muted); }
@media (max-width: 760px) { .new-one-ui .menu { z-index: 70; } }
/* 10.10 Word Rush end: the buttons at the bottom of the dark screen */
.new-one-ui .rover-acts { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.new-one-ui .rover-acts .fbtn { width: 100%; max-width: 528px; } .new-one-ui .rover-acts .flinkbtn { color: #E9E3FF; }
.new-one-ui .rush main { padding-bottom: 130px; }
/* ทางลัด ง่ายๆ: ✕ top-left, ‹ + one full-width button, the full lesson as a link under it */
.new-one-ui .ws-hd { gap: 8px; }
.ws-x2 { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink); margin-right: 2px; }
.ws-x2:focus-visible, .ws-back2:focus-visible, .ws-full2:focus-visible { outline: 3px solid var(--violet); }
.ws-nav2 { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ws-nav2 .fbtn { flex: 1; min-height: 52px; }
.ws-back2 { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 52px; height: 52px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; font: 700 22px var(--text); color: var(--violet-d); }
.ws-full2 { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; text-align: center; min-height: 40px; padding-top: 10px; font: 700 15px var(--text); color: var(--violet-d); }
html.new-one-ui :is(.es-page, .wsd-sheet) .ws-nav2 .fbtn { order: 0; flex: 1; margin-top: 0; }
/* Full Test start page in the app's language (no logo header, no lime, the button at the bottom) */
.ftx-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 0; max-width: 560px; margin: 0 auto; }
.ftx-dur { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; }
.ftx-dur > div { border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 2px; } .ftx-dur .l { background: #D8F5E9; } .ftx-dur .r { background: #DDF1F8; }
.ftx-dur span { font: 600 13px var(--text); color: var(--ink2); } .ftx-dur b { font: 700 22px var(--display); } .ftx-dur small { font: 500 13px var(--text); color: var(--muted); }
.ftx-rules { gap: 10px; } .ftx-rules span { display: flex; align-items: center; gap: 10px; font: 500 15px/1.45 var(--text); } .ftx-rules .ic { flex: none; color: var(--violet-d); }
.ftx-in .ft-ready { background: var(--lilac); color: var(--ink); border-radius: 18px; padding: 12px 14px; }
.ftx-in .hpcheck { background: #fff; border: 1px solid var(--line); max-width: none; } .ftx-in .hpcheck .t span { color: var(--muted); }
.ftx-in .hpcheck button { background: var(--lilac); color: var(--violet-d); } .ftx-in .hpcheck button.ok { background: #D8F5E9; color: var(--green); }
.ftx-in .notice { margin: 0; }
.ftx-foot { color: var(--muted); font: 500 13px var(--text); margin-top: 6px; }
.ftx-res { gap: 8px; } .ftx-res b { font: 700 16px var(--text); } .ftx-res small { color: var(--muted); }
/* 10.14 Pretest seen later */
.prh-sc { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; } .prh-sc .a-score { font: 700 44px/1.05 var(--display); }
.prh-now { justify-self: end; background: var(--lilac); color: var(--violet-d); border-radius: 14px; padding: 4px 10px; font: 700 14px var(--text); }
.prh-sc .ftchips { grid-column: 1 / -1; }
.prh-rows { padding: 4px 16px; } .prh-rows .hm-row { padding: 14px 0; font-size: 16px; }
/* 10.13 Insights shorter: the numbers, bars and charts stay; the explaining paragraphs go */
.new-one-ui .fscore > .fmuted, .new-one-ui .fscore .fanchor, .new-one-ui .iw-week ~ .fnote, .new-one-ui .fcard > .fnote:last-child:not(:only-child), .new-one-ui .pb .pb-empty { display: none; }
/* 10.17 sign-in / sign-up: the app's buttons (violet main with its edge, white outlined second), today's background */
html.new-one-ui .lgn .lg-submit { border-radius: 18px; min-height: 56px; background: var(--violet); box-shadow: 0 5px 0 var(--violet-d); font: 700 17px var(--text); }
html.new-one-ui .lgn .lg-submit:active { box-shadow: 0 2px 0 var(--violet-d); }
html.new-one-ui .lgn .lg-pill { border-radius: 18px; font: 700 16px var(--text); }
html.new-one-ui .lgn .lg-pill-light { background: #fff; border: 1.5px solid var(--line); box-shadow: none; }
/* 9.5 back on the missed item */
.tk-backbar { position: fixed; left: 16px; right: 16px; top: 74px; z-index: 60; display: flex; align-items: center; gap: 8px; max-width: 528px; margin: 0 auto;
  background: var(--green-bg); color: var(--green-ink); border: 1.5px solid var(--green-bd); border-radius: 16px; padding: 12px 14px; font: 700 15px var(--text); animation: fbIn .25s var(--ease) both; }
/* 11.x motion (switch "motion", consist-proposal F1/F2/F4/F5): only at the focus points; off when the phone asks for less */
@media (prefers-reduced-motion: no-preference) {
  html.new-motion .hmx-path .nd.cur { animation: mo-ring 1.8s ease-in-out infinite; }                          /* F1 the stage to do */
  html.new-motion .hmx-path .nd.cur .fic { animation: mo-nudge 1.8s ease-in-out infinite; }
  html.new-motion .opt.right { animation: mo-pop .4s ease-out; }                                               /* F2 answer */
  html.new-motion .opt.wrong { animation: mo-shake .4s; }
  html.new-motion .qx-bar .lp-xp { animation: mo-bump .7s cubic-bezier(.3,1.6,.5,1) .15s; }
  html.new-motion .hmx-path .nd.just { animation: mo-popin .55s cubic-bezier(.3,1.6,.5,1); }                   /* F4 stage done */
  html.new-motion .hmx-path .ln.just { background: linear-gradient(var(--violet), var(--violet)) left / 0% 100% no-repeat, var(--line); animation: mo-draw .45s .05s forwards; }
  html.new-motion .pde .pde-ic { animation: mo-bounce 1s cubic-bezier(.3,1.6,.5,1) .1s both; }                 /* F5 day done */
  html.new-motion .hmx[role=status] .hmx-tile.mint { animation: mo-popin .55s cubic-bezier(.3,1.6,.5,1); }
  html.new-motion .hm:has(.hmx[role=status]) .hm-head .fchip:first-of-type { animation: mo-bump .7s cubic-bezier(.3,1.6,.5,1) .3s; }
}
@keyframes mo-ring { 0%, 100% { box-shadow: 0 0 0 4px rgba(117,72,234,.18); } 50% { box-shadow: 0 0 0 11px rgba(117,72,234,.04); } }
@keyframes mo-nudge { 0%, 70%, 100% { transform: none; } 80% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } }
@keyframes mo-pop { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes mo-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes mo-popin { 0% { transform: scale(.4); } 100% { transform: none; } }
@keyframes mo-draw { to { background-size: 100% 100%; } }
@keyframes mo-bounce { 0% { transform: scale(.3); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes mo-bump { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: none; } }
/* the Pretest's Parts page */
.ppt { gap: 4px; } .ppt .h { display: flex; align-items: center; gap: 6px; font: 700 14px var(--text); color: var(--violet-d); margin-bottom: 4px; }
.ppt-r { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line2); }
.ppt .h + .ppt-r { border-top: 0; }
.ppt-r .nm { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .ppt-r .nm b { font: 600 15px var(--text); }
.ppt-r .bar { display: block; height: 8px; border-radius: 4px; background: var(--lilac); overflow: hidden; } .ppt-r .bar i { display: block; height: 100%; background: var(--violet); border-radius: 4px; }
.ppt-r .v { display: flex; flex-direction: column; align-items: flex-end; } .ppt-r .v b { font: 700 16px var(--text); } .ppt-r .v small { color: var(--muted); font-size: 13px; }
/* Insights on one page */
.insx-sc { gap: 8px; } .insx-sc .sect { display: flex; align-items: center; justify-content: space-between; } .insx-sc .big { font: 700 44px/1.05 var(--display); }
.insx-deep { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.insx-deep > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 16px 40px 16px 16px; font: 700 16px var(--text); position: relative; }
.insx-deep > summary::-webkit-details-marker { display: none; }
.insx-deep > summary::after { content: "▾"; position: absolute; right: 16px; top: 18px; color: var(--muted); }
.insx-deep > summary small { font: 500 13px var(--text); color: var(--muted); }
.insx-deep[open] > summary::after { content: "▴"; }
.insx-db { display: flex; flex-direction: column; gap: 12px; padding: 0 10px 12px; background: var(--bg); }
.insx-db .fscore { display: none; }                      /* already on top */
.prh-rows button.hm-row { border: 0; border-top: 1px solid var(--track); background: none; width: 100%; box-sizing: border-box; cursor: pointer; font: 500 16px var(--text); text-align: left; }
.prh-rows > button.hm-row:first-child { border-top: 0; } .prh-rows button.hm-row::after { content: "›"; color: var(--muted); margin-left: 4px; }
.prh-rows button.hm-row:focus-visible { outline: 3px solid var(--violet); border-radius: 12px; }
/* Insights "ข้อมูลเชิงลึก": charts, little text */
.idp { gap: 10px; } .idp-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .idp-h b { font: 700 16px var(--text); }
.idp-k { display: flex; align-items: center; gap: 4px; font: 500 12px var(--text); color: var(--muted); white-space: nowrap; }
.idp-k i { width: 9px; height: 9px; border-radius: 50%; margin-left: 6px; } .idp-k i.was { background: #fff; border: 2px solid var(--muted3); } .idp-k i.now { background: var(--violet); }
.idp-b, .idp-d { display: grid; grid-template-columns: minmax(0, 40%) 1fr 54px; align-items: center; gap: 10px; min-height: 30px; }
.idp-b .lb, .idp-d .lb { font: 500 13.5px/1.3 var(--text); color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.idp-b .lb .fl { color: var(--violet-d); display: inline-grid; } .idp-b .lb .fl .fic { width: 14px; height: 14px; }
.idp-b .trk { height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; } .idp-b .trk i { display: block; height: 100%; background: var(--violet); border-radius: 0 4px 4px 0; }
.idp-b .v, .idp-d .v { font: 700 14px var(--text); text-align: right; white-space: nowrap; color: var(--ink); }
.idp-d .v em { display: block; font: 700 11.5px var(--text); font-style: normal; } .idp-d .v em.up { color: var(--green); } .idp-d .v em.dn { color: var(--orange); }
.idp-d .trk { position: relative; height: 22px; } .idp-d .trk::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--track); border-radius: 1px; }
.idp-d .seg { position: absolute; top: 9px; height: 4px; border-radius: 2px; background: var(--muted3); } .idp-d .seg.up { background: var(--green); } .idp-d .seg.dn { background: var(--orange); }
.idp-d b { position: absolute; top: 6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.idp-d b.was { background: #fff; border: 2px solid var(--muted3); width: 6px; height: 6px; } .idp-d b.now { background: var(--violet); }
.idp-t { width: 100%; border-collapse: collapse; font: 500 14px var(--text); } .idp-t th { font: 600 12px var(--text); color: var(--muted); text-align: right; padding: 0 0 6px; }
.idp-t td { padding: 8px 0; border-top: 1px solid var(--line2); text-align: right; } .idp-t td:first-child, .idp-t th:first-child { text-align: left; }
.idp-t td small { display: block; color: var(--muted); font-size: 12px; }
/* long Thai topic names: the name and its value on one line, the bar / dumbbell full width under them */
.idp-b, .idp-d { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lb v" "trk trk"; row-gap: 2px; column-gap: 8px; padding: 4px 0; }
.idp-b .lb, .idp-d .lb { grid-area: lb; white-space: normal; } .idp-b .v, .idp-d .v { grid-area: v; } .idp-b .trk, .idp-d .trk { grid-area: trk; }
.idp-d .v em { display: inline; margin-left: 4px; }
/* OD-59 8.11: the trick's review rounds on the real-items result */
.lrr { gap: 12px; } .lrr-h { font: 700 15px var(--text); color: var(--violet-d); }
.lrr-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.lrr-d { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.lrr-d + .lrr-d::before { content: ""; position: absolute; top: 15px; right: calc(50% + 18px); width: calc(100% - 36px); height: 2px; background: var(--line2); }
.lrr-d i { width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid var(--line2); background: #fff; display: grid; place-items: center; box-sizing: border-box; }
.lrr-d.ok i { background: var(--violet); border-color: var(--violet); color: #fff; } .lrr-d.ok i .ic { width: 16px; height: 16px; }
.lrr-d.now i { background: var(--violet-bg, #ece6ff); border-color: var(--violet); }
.lrr-d small { font: 500 13px var(--text); color: var(--muted); white-space: nowrap; } .lrr-d.now small { color: var(--violet-d); font-weight: 700; }
.lrr-l { font: 500 15px/1.4 var(--text); color: var(--ink2); }
/* owner 2026-11-23: the Full Test result in the Pretest result's language */
.prs-page .ftx-top { display: flex; align-items: center; gap: 10px; }
.prs-page .ftx-back { flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; }
.prs-page .ftx-sc { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prs-page .ftx-lr { display: flex; gap: 8px; } .prs-page .ftx-lr span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 10px; background: var(--track); font: 700 13px var(--text); color: var(--ink2); }
.prs-page .ftx-lr span:first-child { background: var(--mint); color: var(--ink); } .prs-page .ftx-lr span:last-child { background: var(--sky); color: var(--ink); }
.prs-page .ftx-ab { display: flex; align-items: center; justify-content: space-around; gap: 8px; text-align: center; }
.prs-page .ftx-ab span { display: flex; flex-direction: column; } .prs-page .ftx-ab small { font: 500 13px var(--text); color: var(--muted); } .prs-page .ftx-ab b { font: 800 26px var(--display, var(--text)); color: var(--ink); }
.prs-page .ftx-ab .fic, .prs-page .ftx-ab .ic { color: var(--violet-d); }
.prs-page > .prs-sec { margin: 0 14px; }
/* owner 2026-11-23: Tests after a test is done = the 10.11 design (pills light, locked rows without a tile, done rows score ›) */
.ftx-next .ftchips i.l { background: #DDF6EC; color: #14805E; } .ftx-next .ftchips i.r { background: #DDF0FA; color: #1D6F95; }
.ftx-list .ftr:not(.ftx-done) .ftnum { display: none; } .ftx-list .ftr:not(.ftx-done) { display: flex; justify-content: space-between; }
.ftx-list .ftr:not(.ftx-done) > span { display: flex; justify-content: space-between; width: 100%; gap: 10px; } .ftx-list .ftr:not(.ftx-done) b { font-weight: 500; }
.ftx-list .ftx-done { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.ftx-list .ftx-done > span:not(.ftnum) { flex: 1; display: flex; flex-direction: column; } .ftx-list .ftx-done small { color: var(--muted); }
.ftx-list .ftx-done .ftnum.ok { background: var(--mint); color: var(--ink); } .ftx-list .ftx-done .a-score { font-size: 24px; }
.ftx-list .ftx-h { display: block; padding: 12px 0 2px; font: 700 14px var(--text); color: var(--violet-d); }
.ftx-list .ftx-h + .ftr { border-top: 0; }
/* owner 2026-11-23 audit: 10.2 Practice = one list card (light tiles, plain %), 10.4 the main button at the bottom edge, 10.8 plain deck rows */
.ppx-list { padding: 4px 16px; } .ppx-list .ppx-row { border-top: 1px solid var(--line2); } .ppx-list .ppx-row:first-child { border-top: 0; }
.ppx-list .pp-ph { background: none; border: 0; box-shadow: none; padding: 12px 0; min-height: 56px; }
.ppx-list .pp-ph .nm b { font: 500 16px var(--text); color: var(--ink); } .ppx-list .pp-ph .pa b { font: 500 15px var(--text); color: var(--ink2); }
.ppx-list .ftile { width: 40px; height: 40px; border-radius: 12px; } .ppx-list .ftile.l { background: #DDF6EC; color: #14805E; } .ppx-list .ftile.r { background: #DDF0FA; color: #1D6F95; }
.new-one-ui #app:has(.qfoot:not(.rdfoot)) { padding-bottom: 96px; }
.new-one-ui .qfoot:not(.rdfoot) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: 600px; margin: 0 auto; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--bg); }
.new-one-ui .qfoot:not(.rdfoot) .hint:empty { display: none; }
/* hotfix 2026-11-23 (owner: landscape split view, the submit bar covered the question and choice D): in the split view (app.css
   RDG, landscape phones) the footer stays at the bottom of the question pane as before, never fixed over both panes */
@media (orientation: landscape) and (max-height: 500px) {
  /* owner 2026-11-24 (check every screen in landscape): on a short landscape screen the fixed bar took ~1/3 of the height over
     the question (Listening, Part 5); there it follows the choices in the page instead, one compact row */
  .new-one-ui #app:has(.qfoot:not(.rdfoot)) { padding-bottom: 0; }
  .new-one-ui .qfoot:not(.rdfoot) { position: static; max-width: none; margin: 12px 0 0; padding: 0 0 calc(10px + env(safe-area-inset-bottom)); z-index: auto; background: none; }
  .new-one-ui .qfoot:not(.rdfoot) { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; }
  .new-one-ui .qfoot:not(.rdfoot) .hint { flex: 1; min-width: 0; text-align: left; }
  .new-one-ui .qfoot .btn-violet { width: auto; height: 46px; padding: 0 28px; font-size: 16px; }
  .new-one-ui #app:has(.shell.rdg) { padding-bottom: 0; }
  .new-one-ui .shell.rdg .qfoot:not(.rdfoot) { position: static; max-width: none; margin: 0; padding: 0; z-index: auto; }
  .new-one-ui .shell.rdg .qfoot .btn-violet { height: 34px; border-radius: 12px; font: 700 13px var(--text); box-shadow: none; }
}
/* owner 2026-11-24: "อีก N ขั้นครบภารกิจวันนี้" above the main button of a step end that is not the last (result, Word Rush) */
.mx-left { margin: 0 0 8px; text-align: center; font: 700 14px/1.4 var(--text); color: var(--violet-d); }
.rover-acts .mx-left { width: 100%; }
/* owner 2026-11-24 (Word Rush end, checked on a phone): .rover's entry animation (transform) made the "fixed" buttons sit on the
   card's own bottom, over "ถูก N จาก M" and "จำได้ดีขึ้น"; they follow the card's content instead */
.new-one-ui .rover-acts { position: static; padding: 0; margin-top: 6px; }
.new-one-ui .rover-acts .flinkbtn { color: var(--violet-d); }
.new-one-ui .rush main { padding-bottom: 24px; }
.new-one-ui .qfoot .btn-violet:disabled { background: #CFC3F5 !important; color: #fff !important; box-shadow: 0 5px 0 #B9A9EE !important; opacity: 1 !important; }
.wlx { gap: 6px; } .wlx .k { font: 700 14px var(--text); color: var(--violet-d); } .wlx b { font: 800 40px var(--display, var(--text)); color: var(--ink); } .wlx b small { font: 500 17px var(--text); color: var(--muted); }
.wlx-decks { padding: 4px 16px; } .wlx-d { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 52px; border-top: 1px solid var(--line2); font: 500 16px var(--text); color: var(--ink); }
.wlx-d:first-child { border-top: 0; } .wlx-d small { font: 500 15px var(--text); color: var(--muted); }
.ppx-list .pp-ph { display: flex !important; align-items: center; gap: 14px; width: 100%; min-height: 0; padding: 10px 0 !important; }
.ppx-list .pp-ph .nm { flex: 1; min-width: 0; } .ppx-list .pp-ph .pa { display: flex; align-items: center; gap: 8px; margin-left: auto; }
/* 10.17 sign-up: Google = the main violet button, the email form's button white (owner pick) */
html.new-one-ui .lgn .lg-panel .lg-google-pill, html.new-one-ui .lgn .lg-up-google { background: var(--violet); color: #fff; border: 0; box-shadow: 0 5px 0 var(--violet-d); min-height: 56px; width: 100%; }
html.new-one-ui .lgn .lg-panel .lg-google-pill svg, html.new-one-ui .lgn .lg-up-google svg { background: #fff; border-radius: 50%; padding: 3px; box-sizing: content-box; }
html.new-one-ui .lgn .lg-panel .lg-pill-dark { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
html.new-one-ui .lgn .lg-nup .lg-submit { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
html.new-one-ui .lgn .lg-nup .lg-or { margin: 14px 0 6px; }
/* B-UI-FIT-1 (owner 2026-11-24, Android upright, Part 7 "ข้อ 1–5/5"): in the upright split view (app.css .shell.split, phones
   <= 760px) the question pane scrolls on its own, but the one_ui fixed bar sat over its last ~100px, so choice D and the
   submit button could never come out from under it. There the bar is the pane's own sticky bottom row: the choices scroll
   above it, the button is always on screen, and the page itself no longer scrolls. Not on a short landscape phone
   (app.css .shell.rdg side-by-side view has its own bar). */
@media (max-width: 760px) and (orientation: portrait), (max-width: 760px) and (min-height: 501px) {
  .new-one-ui #app:has(.shell.split) { padding-bottom: 0; }
  .new-one-ui .shell.split .qpane { scroll-padding-bottom: 84px; }
  .new-one-ui .shell.split .qpane > #foot { position: sticky; bottom: 0; z-index: 3; flex: none; margin: auto -16px 0;
    background: var(--bg); box-shadow: 0 -8px 12px -10px rgba(31,26,46,.25); }
  .new-one-ui .shell.split .qfoot:not(.rdfoot) { position: static; max-width: none; margin: 0; z-index: auto;
    padding: 8px 16px calc(10px + env(safe-area-inset-bottom)); flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 12px; }
  .new-one-ui .shell.split .qfoot:not(.rdfoot) .hint { flex: 1; min-width: 0; text-align: left; }
  .new-one-ui .shell.split .qfoot:not(.rdfoot) .btn { width: auto; flex: none; height: 48px; padding: 0 24px; }
  .new-one-ui .shell.split .qfoot.rdfoot { padding: 8px 16px calc(10px + env(safe-area-inset-bottom)); }
  /* short phones (320x568, Full Test / Pretest Part 6 with its directions card): the passage gives way so the question
     pane keeps room for a question, its choices and the bar; the directions are one small paragraph */
  .new-one-ui .shell.split .rset > .docpane { max-height: min(42%, calc(100% - 250px)); min-height: 96px; }
  .new-one-ui .shell.split .rset-head .dirs { padding: 6px 12px; gap: 0; display: block; font: 400 12.5px/1.4 var(--text); }
  .new-one-ui .shell.split .rset-head .dirs b { font: 700 12.5px var(--text); margin-right: 4px; }
}
/* B-UI-FIT-1 (proportion audit): the Insights score chart's labels were 9.5-10px on a phone; 11px is the floor */
.new-one-ui .pb-chart .gy, .new-one-ui .pb-chart .tg span, .new-one-ui .pb-chart .vl.est, .new-one-ui .pb-x span { font-size: 11px; }
.new-one-ui .pb-x span b { font-size: 11.5px; }
/* B-UI-PRETEST-START-1 (owner 2026-11-25, plan A): the Pretest's one-time sound check (in the sound tap's place), the Thai
   card over the first screen's English directions, and the resting page "Pretest ค้างไว้" (the goal screen's frame) */
.gate.ptsc { cursor: default; gap: 12px; padding: 28px 22px 22px; width: 380px; }
.gate.ptsc:active { transform: none; }
.gate.ptsc b { font-size: 24px; }
.gate.ptsc .fbtn { width: 100%; }
.ptsc-note { font: 500 12.5px/1.5 var(--text); color: var(--muted2); }
.ptsc-two { display: flex; gap: 8px; width: 100%; } .ptsc-two .fbtn { flex: 1; min-height: 50px; padding: 0 10px; }
.ptsc .hmx-lnk { min-height: 40px; gap: 6px; font-size: 14px; } .ptsc .hmx-lnk .fic { width: 14px; height: 14px; }
.ptsc .ptsc-later { color: var(--muted); }
.ptsc-chk { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.ptsc-chk li { display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 14px; padding: 9px 12px; font: 500 14px/1.4 var(--text); color: var(--ink2); }
.ptsc-chk .fic { flex: 0 0 auto; color: var(--violet); }
.gate.ptsc .ptsc-chk span { font: 500 14px/1.4 var(--text); color: var(--ink2); }
.ptdir { border: 2px solid var(--violet); gap: 8px; }
.ptdir-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ptdir-h b { font: 700 17px var(--display); color: var(--ink); }
.ptdir-cd { font: 700 26px/1 var(--display); color: var(--violet); font-variant-numeric: tabular-nums; }
.ptdir-now { margin: 0; font: 500 14px/1.45 var(--text); color: var(--ink2); }
.ptdir-t { margin: 4px 0 0; font: 700 15px var(--display); color: var(--ink); }
.ptdir-bar { display: block; height: 6px; border-radius: 6px; background: var(--track); overflow: hidden; margin-top: -2px; }
.ptdir-bar i { display: block; height: 100%; width: 0; background: var(--violet); border-radius: 6px; transition: width .5s linear; }
.ptd-demo { display: flex; gap: 12px; align-items: center; }
.ptd-photo { position: relative; flex: 0 0 auto; width: 112px; height: 84px; border-radius: 14px; overflow: hidden; }
.ptd-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ptd-photo::after { content: ""; position: absolute; inset: 0; border-radius: 14px; box-shadow: inset 0 0 0 3px var(--lime); opacity: 0; }
.ptd-opts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.ptd-opts li { display: flex; align-items: center; gap: 8px; height: 22px; padding: 0 8px; border-radius: 8px; position: relative; isolation: isolate; }
.ptd-opts li::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 8px; background: var(--lilac); opacity: 0; }
.ptd-opts li > i { font: 700 13px var(--text); font-style: normal; color: var(--ink2); width: 12px; }
.ptd-opts li .fic { width: 17px; height: 17px; margin-left: auto; color: var(--green); stroke-width: 3; }
.ptd-wave { display: flex; align-items: center; gap: 3px; height: 14px; }
.ptd-wave b { display: block; width: 3px; height: 14px; border-radius: 2px; background: var(--violet2); transform: scaleY(.3); }
@media (prefers-reduced-motion: reduce) { .ptd-opts li.ok { background: var(--green-bg); } .ptd-opts li.ok > i { color: var(--green-ink); } }
.ptd-flow { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font: 600 14px/1.4 var(--text); color: var(--ink2); }
.ptd-flow .fic { width: 14px; height: 14px; color: var(--violet); }
.ptd-tip { margin: 0; font: 400 14px/1.45 var(--text); color: var(--ink2); }
/* the loop (8 s): the photo is looked at, A-D play one by one, the matching one is picked. Reduced motion: the end frame */
@media (prefers-reduced-motion: no-preference) {
  .ptd-photo::after { animation: ptd-look 8s ease-in-out infinite; }
  .ptd-opts li::before { animation: ptd-row 8s ease-in-out infinite; animation-delay: calc(1.2s + var(--i) * 1.4s); }
  .ptd-wave b { animation: ptd-say 8s linear infinite; animation-delay: calc(1.2s + var(--i, 0) * 1.4s); }
  .ptd-wave b:nth-child(even) { animation-name: ptd-say2; }
  .ptd-opts li.ok { animation: ptd-pick 8s ease-in-out infinite; }
  .ptd-opts li .fic { animation: ptd-tick 8s ease-in-out infinite; }
  .ptsc-live .ring { animation: mo-ring 1.1s ease-in-out infinite; }
  .ptp-bar i { animation: barGrow .9s cubic-bezier(.2,.8,.2,1) both; }
  .ptp-mas { animation: ptp-float 3.2s ease-in-out infinite; }                                  /* waiting, no hurry */
}
@keyframes ptd-look { 0%, 2% { opacity: 0; } 5%, 13% { opacity: 1; } 16%, 100% { opacity: 0; } }
@keyframes ptd-row { 0%, 100% { opacity: 0; } 2%, 15% { opacity: 1; } 18% { opacity: 0; } }
@keyframes ptd-say { 0% { transform: scaleY(.3); } 3% { transform: scaleY(1); } 6% { transform: scaleY(.45); } 9% { transform: scaleY(.9); } 12% { transform: scaleY(.5); } 15%, 100% { transform: scaleY(.3); } }
@keyframes ptd-say2 { 0% { transform: scaleY(.3); } 3% { transform: scaleY(.55); } 6% { transform: scaleY(1); } 9% { transform: scaleY(.4); } 12% { transform: scaleY(.85); } 15%, 100% { transform: scaleY(.3); } }
@keyframes ptd-pick { 0%, 85% { background: transparent; transform: none; } 88% { background: var(--green-bg); transform: scale(1.04); } 91%, 98% { background: var(--green-bg); transform: none; } 100% { background: transparent; } }
@keyframes ptd-tick { 0%, 86% { opacity: 0; transform: scale(.3); } 90% { opacity: 1; transform: scale(1.2); } 93%, 98% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ptdir-en { border-radius: 16px; background: var(--soft); padding: 10px 14px; }
.ptdir-en summary { cursor: pointer; font: 600 13px var(--text); color: var(--muted); }
.ptdir-en[open] summary { margin-bottom: 8px; }
.ptp-card { gap: 10px !important; }
.ptp-k { font: 700 22px/1.25 var(--display); color: var(--ink); }
.ptp-bar { display: block; height: 8px; border-radius: 8px; background: var(--track); overflow: hidden; } .ptp-bar i { display: block; height: 100%; background: var(--violet); border-radius: 8px; }
.ptp-s { display: flex; align-items: center; gap: 8px; font: 500 14.5px/1.45 var(--text); color: var(--ink2); } .ptp-s .fic { color: var(--violet); flex: 0 0 auto; }
.ptp .obx-act .hmx-lnk { min-height: 36px; }
.ptp-mas { display: block; width: 112px; height: auto; margin: 28px auto 0; }
@keyframes ptp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* B-PLAN-FIRST7-1 (OD-67 / OD-68 / OD-65, design/friendly/first7-1.html): mission pages, the one line, the notify card */
.f7-why { margin: 2px 0 6px; color: var(--muted); font-size: 14px; }
.pde .f7-c { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; font-size: 15px; line-height: 1.5; }
.pde .f7-c small { color: var(--muted); font-size: 13px; }
.pde .f7-c b { color: var(--violet-d); }
.pde .f7-big { font: 800 26px/1.1 var(--display, var(--text)); color: var(--violet-d); }
.af-tag.f7-dn { background: var(--track); color: var(--ink2); }            /* OD-65: the real drop, plain ink, never red */
.f7-line { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; padding: 8px 10px; border-radius: 14px; background: var(--soft); color: var(--ink2); font-size: 14px; line-height: 1.45; }
.f7-line img { flex: none; width: 30px; height: 30px; }
.f7-line.f7-sample { outline: 2px dashed var(--lilac2); }                  /* sandbox: a case forced with example values */
.pde .f7-inv { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; font-size: 15px; }
.pde .f7-inv small { color: var(--muted); font-size: 13px; }
.f7-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.f7-chip { all: unset; box-sizing: border-box; cursor: pointer; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--track); color: var(--ink); font: 700 13px var(--text); display: inline-flex; align-items: center; }
.f7-chip.on { background: var(--violet-d); color: #fff; }
.f7-chip:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.f7-two { display: flex; gap: 8px; } .f7-two .btn { flex: 1; min-height: 44px; }
.f7-ok { margin: 0; color: var(--green-ink); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .f7-line { animation: pde-in .45s ease both; animation-delay: .4s; }
  .f7-line img { animation: f7-nod .6s ease 1s 1; transform-origin: 50% 90%; }
}
@keyframes f7-nod { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(-8deg); } 70% { transform: rotate(6deg); } }
/* B-PLAN-FIRST7-1 round 2 (owner 2026-11-26 "ใช้ graphic เป็นหลัก"): tiles, icon chips, a bell card */
.pd2 .f7-big-ic { width: 56px; height: 56px; border-radius: 18px; background: var(--lilac); color: var(--violet-d); display: grid; place-items: center; }
.pd2 .f7-big-ic .fic { width: 30px; height: 30px; }
.pd2 .pd2-tile b.f7-nm { font-size: 18px; }
.pd2 .f7-cal { width: 58px; height: 62px; border-radius: 14px; background: #fff; border: 2px solid var(--violet); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.pd2 .f7-cal b { font: 800 24px var(--display, var(--text)); color: var(--violet-d); } .pd2 .f7-cal small { font-size: 11px; color: var(--muted); }
.pde .f7-cl { padding: 2px 12px; }
.pde .f7-tom { padding: 10px 14px; } .pde .f7-tom > small { color: var(--muted); font-size: 13px; }
.f7-tcs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.f7-tc { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 999px; background: var(--soft); color: var(--violet-d); }
.f7-tc .fic { width: 18px; height: 18px; } .f7-tc b { font: 700 14px var(--text); color: var(--ink); }
.f7-invh { display: flex; align-items: center; gap: 10px; } .f7-invh .pu-bell { flex: none; }
.f7-chip .fic, .f7-chip svg { width: 14px; height: 14px; margin-right: 4px; }
.f7-invd { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); min-height: 40px; }
/* owner 2026-11-26 Emotional Design (switch done_pride): pride band -> progress -> come back */
.pde .pr-band { gap: 4px; padding-top: 22px; }
.pde .pr-band .pr-heart { width: 58px; height: 58px; }
.pde .pr-band h2 { font: 800 28px/1.2 var(--display, var(--text)); color: #fff; margin: 4px 0 0; }
.pde .pr-band .pr-day { color: #fff; font: 700 17px var(--text); margin: 0; }
.pde .pr-band .pr-day b { font: 800 22px var(--display, var(--text)); color: var(--lime); }
.pde .pr-band .pr-line { color: #E9E3FF; font-size: 15px; margin: 0 0 4px; }
.pr-dots { display: flex; gap: 8px; margin: 4px 0 6px; }
.pr-dots i { width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; }
.pr-dots i.on { background: var(--lime); }
.pr-dots i.now { width: 26px; height: 26px; margin-top: -5px; background: #fff; box-shadow: 0 0 0 3px var(--lime); }
.pr-dots i.now .pr-spark { width: 18px; height: 18px; }
.pr-dots i.now .pr-spark path, .pr-dots i.now .pr-spark circle { fill: var(--violet); }
.pde .pr-close { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--lilac); color: var(--ink); }
.pde .pr-close b { display: flex; align-items: center; gap: 8px; color: var(--violet-d); font: 800 17px var(--text); }
.pde .pr-close b .pr-heart { width: 24px; height: 24px; flex: none; }
.pde .pr-close span { font-size: 15px; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .pde .pr-band .pr-heart { animation: pr-beat 1.1s ease .3s 2; }
  .pde .pr-band h2 { animation: pde-pop .6s cubic-bezier(.3,1.6,.5,1) both .15s; }
  .pr-dots i { animation: pde-pop .4s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(.5s + var(--i) * .09s); }
  .pde .pr-close { animation: pde-in .5s ease both 1.6s; }
}
@keyframes pr-beat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.18); } 40% { transform: scale(.96); } 60% { transform: scale(1.1); } }
/* owner 2026-11-26 round 4: one message spot (pride title + the day's line) and every end page on ONE screen (switch done_pride) */
.pde .pr-close { flex-direction: row; align-items: center; gap: 10px; }
.pde .pr-close .pr-mas { width: 38px; height: 38px; flex: none; }
.pde .pr-close > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pr-fit.pdone.pde { gap: 8px; padding-bottom: 92px; }
.pr-fit .pde-band.pr-band { padding: 12px 16px 12px; gap: 2px; border-radius: 0 0 24px 24px; }
.pde.pr-fit .pr-band .pr-heart { width: 34px; height: 34px; }
.pde.pr-fit .pr-band h2 { font-size: 23px; margin: 0; }
.pde.pr-fit .pr-band .pr-day { font-size: 15px; } .pde.pr-fit .pr-band .pr-day b { font-size: 18px; }
.pde.pr-fit .pr-band .pr-line { font-size: 13px; margin: 0; }
.pr-fit .pr-dots { gap: 6px; margin: 2px 0; } .pr-fit .pr-dots i { width: 12px; height: 12px; }
.pr-fit .pr-dots i.now { width: 22px; height: 22px; margin-top: -5px; } .pr-fit .pr-dots i.now .pr-spark { width: 15px; height: 15px; }
.pr-fit .pde-band .pde-xp { padding: 2px 10px; font-size: 13px; }
.pr-fit .pde-band .pde-ic { width: 44px; height: 44px; } .pr-fit .pde-band h2 { font-size: 22px; margin: 0; }
.pr-fit .pde-band { padding: 14px 16px 12px; }
.pde .pr-score { display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.pde .pr-score small { flex: 1; color: var(--muted); font-size: 14px; } .pde .pr-score .pd2-big { font-size: 26px; }
.pr-fit .pd2-steps { padding: 8px 10px 6px; } .pr-fit .pd2-steps > small { font-size: 12px; }
.pr-fit .pd2-row { margin-top: 2px; gap: 2px; }
.pr-fit .pd2-ring, .pr-fit .pd2-rw, .pr-fit .pd2-ic { width: 44px !important; height: 44px !important; }
.pr-fit .pd2-ic .fic, .pr-fit .pd2-ri .fic, .pr-fit .pd2-ri svg { width: 18px; height: 18px; }
.pr-fit .pd2-st { min-width: 54px; } .pr-fit .pd2-st b { font-size: 13px; } .pr-fit .pd2-st small { font-size: 11px; }
.pr-fit .pd2-tiles { gap: 8px; }
.pr-fit .pd2-tile { padding: 8px 6px 8px; gap: 2px; }
.pr-fit .pd2-tile .pd2-g { height: 46px; margin: 0; } .pr-fit .pd2-tile .pd2-g svg { max-height: 46px; width: auto; }
.pr-fit .pd2-tile .f7-big-ic { width: 42px; height: 42px; border-radius: 14px; } .pr-fit .pd2-tile .f7-cal { width: 44px; height: 46px; }
.pr-fit .pd2-tile .f7-cal b { font-size: 18px; }
.pr-fit .pd2-tile b { font-size: 18px; } .pr-fit .pd2-tile small { font-size: 12px; }
.pr-fit .f7-tom { padding: 8px 12px; display: flex; align-items: center; gap: 8px; } .pr-fit .f7-tom > small { flex: none; }
.pr-fit .f7-tcs { margin: 0; gap: 6px; } .pr-fit .f7-tc { min-height: 30px; padding: 0 10px; } .pr-fit .f7-tc b { font-size: 13px; }
.pr-fit .f7-inv { padding: 8px 12px; gap: 6px; } .pr-fit .f7-chips { gap: 4px; } .pr-fit .f7-chip { min-height: 30px; padding: 0 9px; font-size: 12px; }
.pr-fit .f7-two .btn { min-height: 36px; }
.pr-fit .pr-close { padding: 10px 12px; } .pde.pr-fit .pr-close b { font-size: 15px; } .pde.pr-fit .pr-close span { font-size: 14px; line-height: 1.4; }
.pr-fit .pde-lnk { min-height: 30px; }
.pr-fit .pd2-act { padding-top: 8px; }
.pr-dx { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pr-fit .pr-row { flex-wrap: nowrap; justify-content: space-around; align-items: flex-start; }
.pr-fit .pr-row .pd2-tile { background: none; box-shadow: none; padding: 0; min-width: 0; animation: none; }
.pr-fit .pr-row .pd2-tile .pd2-g { height: 44px; } .pr-fit .pr-row .pd2-tile .pd2-g svg { max-height: 44px; }
.pr-fit .pr-row .pd2-tile b { font-size: 15px; } .pr-fit .pr-row .pd2-tile small { font-size: 11px; }
.f7-invh { display: flex; align-items: center; gap: 8px; } .f7-invh b { flex: 1; }
.pr-fit .f7-invh .pu-bell { width: 32px; height: 32px; } .pr-fit .f7-invh .pu-bell svg { width: 18px; height: 18px; }
.f7-later { all: unset; cursor: pointer; min-height: 32px; padding: 0 6px; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.f7-later:focus-visible { outline: 3px solid var(--violet); border-radius: 6px; }
.f7-invr { display: flex; align-items: center; gap: 6px; } .f7-invr .f7-chips { flex: 1; flex-wrap: nowrap; overflow-x: auto; }
.f7-invr .f7-on { flex: none; min-height: 36px; padding: 0 16px; }
.f7-invr .f7-on { width: auto !important; } .f7-invr .f7-chips { min-width: 0; }
/* owner 2026-11-26 round 5 ("พื้นที่ว่างยังเหลือ ปรับให้เหมาะสม ครบทุกกรณี"): the end page fills the phone's height. Sizes follow the
   screen height (small phone = the compact sizes above, tall phone = bigger pictures and words); what is left is shared evenly. */
.pdone.pd2-page.pr-fit { justify-content: space-between; gap: clamp(6px, calc(var(--k, 1) * 1.4vh), 16px); }
.pdone.pd2-page.pr-fit > * { flex: none; }
.pr-grow .pde-band.pr-band, .pr-grow .pde-band { padding: clamp(12px, calc(var(--k, 1) * 3vh), 34px) 16px clamp(12px, calc(var(--k, 1) * 2.6vh), 28px); gap: clamp(2px, .7vh, 8px); }
.pde.pr-grow .pr-band .pr-heart { width: clamp(34px, calc(var(--k, 1) * 7vh), 72px); height: clamp(34px, calc(var(--k, 1) * 7vh), 72px); }
.pde.pr-grow .pr-band h2, .pr-grow .pde-band h2 { font-size: clamp(22px, calc(var(--k, 1) * 3.7vh), 34px); }
.pde.pr-grow .pr-band .pr-day { font-size: clamp(15px, calc(var(--k, 1) * 2.2vh), 20px); } .pde.pr-grow .pr-band .pr-day b { font-size: clamp(18px, calc(var(--k, 1) * 3vh), 28px); }
.pde.pr-grow .pr-band .pr-line { font-size: clamp(13px, calc(var(--k, 1) * 1.9vh), 17px); }
.pr-grow .pr-dots i { width: clamp(12px, calc(var(--k, 1) * 1.7vh), 18px); height: clamp(12px, calc(var(--k, 1) * 1.7vh), 18px); }
.pr-grow .pr-dots i.now { width: clamp(22px, calc(var(--k, 1) * 3vh), 30px); height: clamp(22px, calc(var(--k, 1) * 3vh), 30px); }
.pr-grow .pde-band .pde-xp { font-size: clamp(13px, calc(var(--k, 1) * 1.8vh), 16px); padding: 2px clamp(10px, calc(var(--k, 1) * 1.6vh), 14px); }
.pr-grow .pde-band .pde-ic { width: clamp(44px, calc(var(--k, 1) * 7vh), 64px); height: clamp(44px, calc(var(--k, 1) * 7vh), 64px); }
.pr-grow .pd2-steps { padding: clamp(8px, calc(var(--k, 1) * 1.6vh), 16px) 10px; } .pr-grow .pd2-steps > small { font-size: clamp(12px, calc(var(--k, 1) * 1.6vh), 14px); }
.pr-grow .pd2-ring, .pr-grow .pd2-rw, .pr-grow .pd2-ic { width: clamp(44px, calc(var(--k, 1) * 7.4vh), 68px) !important; height: clamp(44px, calc(var(--k, 1) * 7.4vh), 68px) !important; }
.pr-grow .pd2-ic .fic, .pr-grow .pd2-ri .fic, .pr-grow .pd2-ri svg { width: clamp(18px, calc(var(--k, 1) * 2.8vh), 26px); height: clamp(18px, calc(var(--k, 1) * 2.8vh), 26px); }
.pr-grow .pd2-st b { font-size: clamp(13px, calc(var(--k, 1) * 1.9vh), 17px); } .pr-grow .pd2-st small { font-size: clamp(11px, calc(var(--k, 1) * 1.5vh), 14px); }
.pr-grow .pd2-tile { padding: clamp(8px, calc(var(--k, 1) * 1.5vh), 16px) 6px; }
.pr-grow .pd2-tile .pd2-g, .pr-grow .pr-row .pd2-tile .pd2-g { height: clamp(44px, calc(var(--k, 1) * 8.5vh), 80px); }
.pr-grow .pd2-tile .pd2-g svg, .pr-grow .pr-row .pd2-tile .pd2-g svg { max-height: clamp(44px, calc(var(--k, 1) * 8.5vh), 80px); height: clamp(44px, calc(var(--k, 1) * 8.5vh), 80px); width: auto; }
.pr-grow .pd2-tile .f7-big-ic { width: clamp(42px, calc(var(--k, 1) * 7vh), 64px); height: clamp(42px, calc(var(--k, 1) * 7vh), 64px); }
.pr-grow .pd2-tile .f7-cal { width: clamp(44px, calc(var(--k, 1) * 7vh), 62px); height: clamp(46px, calc(var(--k, 1) * 7.6vh), 68px); }
.pr-grow .pd2-tile b, .pr-grow .pr-row .pd2-tile b { font-size: clamp(15px, calc(var(--k, 1) * 2.6vh), 24px); }
.pr-grow .pd2-tile small, .pr-grow .pr-row .pd2-tile small { font-size: clamp(11px, calc(var(--k, 1) * 1.6vh), 14px); }
.pde.pr-grow .pr-score { padding: clamp(8px, calc(var(--k, 1) * 1.4vh), 14px) 14px; } .pde.pr-grow .pr-score .pd2-big { font-size: clamp(26px, calc(var(--k, 1) * 4vh), 38px); }
.pde.pr-grow .pr-score small { font-size: clamp(14px, calc(var(--k, 1) * 1.9vh), 16px); }
.pr-grow .f7-tom { padding: clamp(8px, calc(var(--k, 1) * 1.4vh), 14px) 12px; } .pr-grow .f7-tc { min-height: clamp(30px, calc(var(--k, 1) * 4.6vh), 42px); } .pr-grow .f7-tc b { font-size: clamp(13px, calc(var(--k, 1) * 1.8vh), 16px); }
.pr-grow .f7-chip { min-height: clamp(30px, calc(var(--k, 1) * 4.4vh), 40px); font-size: clamp(12px, calc(var(--k, 1) * 1.7vh), 15px); } .pr-grow .f7-invr .f7-on { min-height: clamp(36px, calc(var(--k, 1) * 5vh), 46px); }
.pr-grow .pr-close { padding: clamp(10px, calc(var(--k, 1) * 2vh), 20px) 14px; gap: clamp(10px, calc(var(--k, 1) * 1.6vh), 14px); }
.pr-grow .pr-close .pr-mas { width: clamp(38px, calc(var(--k, 1) * 6.4vh), 60px); height: clamp(38px, calc(var(--k, 1) * 6.4vh), 60px); }
.pde.pr-grow .pr-close b { font-size: clamp(15px, calc(var(--k, 1) * 2.3vh), 20px); } .pde.pr-grow .pr-close span { font-size: clamp(14px, calc(var(--k, 1) * 2vh), 17px); }
.pde.pr-grow .pr-close b .pr-heart { width: clamp(20px, calc(var(--k, 1) * 2.8vh), 26px); height: clamp(20px, calc(var(--k, 1) * 2.8vh), 26px); }
.pr-fit .pd2-steps .pd2-row { flex-wrap: nowrap; } .pr-fit .pd2-steps .pd2-st { min-width: 0; flex: 1 1 0; } .pr-fit .pd2-steps .pd2-st small { white-space: nowrap; }
/* owner 2026-11-26 round 6: one picture language = a ring with the step's icon in the middle (full mint ring = done) */
.pd2 .pr-badge.pd2-rw { width: 64px !important; height: 64px !important; }
.pr-fit .pd2-tile .pr-badge.pd2-rw { width: clamp(44px, 7vh, 64px) !important; height: clamp(44px, 7vh, 64px) !important; }
.pr-grow .pd2-tile .pr-badge.pd2-rw { width: clamp(44px, calc(var(--k, 1) * 8.5vh), 80px) !important; height: clamp(44px, calc(var(--k, 1) * 8.5vh), 80px) !important; }
.pd2 .pr-badge .pd2-ri .fic, .pd2 .pr-badge .pd2-ri svg { width: 40% !important; height: 40% !important; }
.pd2 .pr-badge .pd2-ri { position: absolute; inset: 0; display: grid; place-items: center; color: var(--violet-d); }
.pd2 .pr-num { font: 800 22px var(--display, var(--text)); color: var(--violet-d); }
.pr-fit .pr-row .pd2-tile { flex: 1 1 0; align-items: center; text-align: center; } .pr-fit .pr-row .pd2-tile b.f7-nm { font: 700 clamp(13px, calc(var(--k, 1) * 1.9vh), 17px) var(--text); color: var(--ink); }
.pd2 .pr-badge.pd2-rw .pd2-ring { width: 100% !important; height: 100% !important; inset: 0; }   /* the ring fills its box, so the centred icon is in the ring centre */
.pr-fit .pr-row .pd2-tile .pr-badge.pd2-rw { width: clamp(44px, 7.4vh, 68px) !important; height: clamp(44px, 7.4vh, 68px) !important; } .pr-grow .pr-row .pd2-tile .pr-badge.pd2-rw { width: clamp(44px, calc(var(--k, 1) * 7.4vh), 68px) !important; height: clamp(44px, calc(var(--k, 1) * 7.4vh), 68px) !important; }
/* B-UI-MISSION-PATH-1 (OD-69, switch mission_path): one path of Today's steps on every screen of the mission */
.mp-path { display: flex; align-items: flex-start; }
.mp-path .mp-pn { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; min-width: 0; }
.mp-path .mp-pn small { font: 500 12px var(--text); color: var(--muted); white-space: nowrap; margin-top: 5px; max-width: 64px; overflow: hidden; text-overflow: ellipsis; }
.mp-path .mp-n { --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; box-sizing: border-box; border: 2.5px solid var(--line); background: #fff; color: var(--muted); display: grid; place-items: center; }
.mp-path .mp-n .fic { width: 48%; height: 48%; }
.mp-path .mp-n.done { background: var(--mint); border-color: var(--mint); color: #fff; }
.mp-path .mp-n.cur { border-color: var(--violet); color: var(--violet-d); box-shadow: 0 0 0 4px rgba(117,72,234,.15); background: conic-gradient(var(--lilac) 0 var(--p, 0%), #fff 0); }
.mp-path .mp-ln { flex: 1 1 6px; min-width: 6px; height: 3px; background: var(--line); margin-top: calc(40px / 2 - 1.5px); }
.mp-path .mp-ln.on { background: var(--mint); }
.mp-path .mp-fl { width: 40px; height: 40px; display: grid; place-items: center; color: var(--violet); }
.mp-path .mp-fl .fic { width: 24px; height: 24px; } .mp-path .mp-fl.on { color: var(--green-ink, #1f8a5b); }
.mp-path.sm .mp-n { --s: 26px; border-width: 2px; box-shadow: none; } .mp-path.sm .mp-n.cur { box-shadow: 0 0 0 3px rgba(117,72,234,.15); }
.mp-path.sm .mp-ln { margin-top: 11.5px; } .mp-path.sm .mp-fl { width: 26px; height: 26px; } .mp-path.sm .mp-fl .fic { width: 18px; height: 18px; }
.hmx > .mp-path { margin: 16px 0 4px; } .hmx > .f7-why + .mp-path { margin-top: 10px; }   /* Home card: room between the title line, the rings (and their glow) and the step */
.pstrip.mp { flex-direction: row; align-items: center; gap: 10px; } .pstrip.mp .mp-path { flex: 1; min-width: 0; }
.lplan.mp { height: 30px; gap: 8px; } .lplan.mp .mp-path { width: 150px; } .lplan.mp .mp-path.sm .mp-n { --s: 20px; } .lplan.mp .mp-path.sm .mp-ln { margin-top: 8.5px; }
.lplan.mp .mp-path.sm .mp-fl { width: 20px; height: 20px; } .lplan.mp .mp-path.sm .mp-fl .fic { width: 14px; height: 14px; }
.mp-end .mp-body, .mp-start .mp-body { display: flex; flex-direction: column; gap: 12px; padding: 4px 16px 0; }
.mp-card { padding: 14px 12px; display: flex; flex-direction: column; gap: 12px; }
.mp-top { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 2px; }
.mp-big { width: 84px; height: 84px; border-radius: 50%; background: var(--mint); color: #fff; display: grid; place-items: center; }
.mp-big .fic { width: 42px; height: 42px; }
.mp-big.ring { background: conic-gradient(var(--violet) 0 var(--p), var(--lilac) 0); color: var(--violet-d); position: relative; }
.mp-big.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--bg); }
.mp-big.ring b { position: relative; font: 700 22px var(--display); }
.mp-3 { display: flex; gap: 10px; } .mp-3 span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--mint); }
.mp-3 span.no { background: var(--red, #EF5B7A); } .mp-3 .fic { width: 22px; height: 22px; }
.mp-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--lime); color: var(--ink); border-radius: 99px; padding: 5px 12px; font: 700 14px var(--text); }
.mp-badge .fic { width: 16px; height: 16px; }
.mp-nx { display: flex; align-items: center; gap: 8px; } .mp-nt { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px; background: var(--lilac); color: var(--violet-d); display: grid; place-items: center; }
.mp-nt .fic { width: 20px; height: 20px; } .mp-nm { flex: 1; min-width: 0; font: 700 15px var(--text); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-ch { display: inline-flex; align-items: center; gap: 4px; background: var(--lilac); color: var(--violet-d); border-radius: 99px; padding: 4px 9px; font: 700 13px var(--text); white-space: nowrap; }
.mp-ch .fic { width: 15px; height: 15px; }
.mp-xp { display: flex; align-items: center; gap: 8px; } .mp-gain { display: inline-flex; align-items: center; gap: 3px; background: var(--lime); border-radius: 99px; padding: 3px 9px; font: 700 13px var(--text); color: var(--ink); white-space: nowrap; }
.mp-tr { flex: 1; height: 10px; border-radius: 99px; background: var(--track); overflow: hidden; } .mp-tr i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: var(--mint); }
.mp-fx { display: inline-flex; align-items: center; gap: 2px; color: var(--violet-d); font: 700 13px var(--text); } .mp-fx .fic { width: 17px; height: 17px; }
.mp-hero { display: flex; align-items: center; gap: 12px; background: var(--violet); color: #fff; border-radius: 18px; padding: 16px; }
.mp-hero b { flex: 1; font: 700 18px/1.3 var(--text); } .mp-hi { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.mp-hi .fic { width: 26px; height: 26px; } .mp-hero .mp-ch { background: rgba(255,255,255,.18); color: #fff; }
.mp-act { padding: 16px; display: flex; flex-direction: column; gap: 6px; } .mp-inv { margin-top: -2px; }
/* owner 2026-11-27: a full day keeps normal rings: the flag sits on the last ring (.mp-fb), 6 steps = 40px, 7 = 36px, 8 = 32px */
.mp-path.many { padding: 0 6px 0 0; } .mp-path.many .mp-n { position: relative; } .mp-path.many .mp-ln { min-width: 4px; margin-top: calc(var(--rs) / 2 - 1.5px); }
.mp-path.many { --rs: 40px; } .mp-path.many.n7 { --rs: 36px; } .mp-path.many.n8 { --rs: 32px; } .mp-path.many .mp-n { --s: var(--rs); }
.mp-path.sm.many { --rs: 26px; } .mp-path.sm.many.n7 { --rs: 24px; } .mp-path.sm.many.n8 { --rs: 22px; }
.mp-fb { position: absolute; right: -7px; top: -8px; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--violet); display: grid; place-items: center; box-shadow: 0 0 0 1.5px var(--line); }
.mp-path .mp-n .mp-fb .fic { width: 13px; height: 13px; } .mp-fb.on { background: var(--green-ink, #1f8a5b); color: #fff; box-shadow: 0 0 0 2px #fff; }
.mp-path.sm .mp-fb { right: -5px; top: -6px; width: 14px; height: 14px; } .mp-path.sm .mp-n .mp-fb .fic { width: 10px; height: 10px; }
.lplan.mp .mp-path { width: auto; } .lplan.mp .mp-path.sm.many { padding-right: 3px; } .lplan.mp .mp-path.sm.many .mp-n { --s: 16px; border-width: 1.5px; } .lplan.mp .mp-path.sm.many .mp-n > .fic { display: none; }
.lplan.mp .mp-path.sm.many .mp-ln { min-width: 2px; margin-top: 6.5px; } .lplan.mp .mp-path.sm .mp-fb { right: -4px; top: -5px; width: 10px; height: 10px; } .lplan.mp .mp-path.sm .mp-n .mp-fb .fic { width: 8px; height: 8px; }
.mp-big.ring { flex-direction: column; gap: 0; } .mp-big.ring .mp-ri, .mp-big.ring b { position: relative; } .mp-big.ring .mp-ri .fic { width: 18px; height: 18px; } .mp-big.ring b { font-size: 20px; line-height: 1.1; }
.mp-big.ring { display: flex; align-items: center; justify-content: center; }
.mp-gain small, .mp-fx small { font: 600 11px var(--text); margin-left: 3px; opacity: .8; } .mp-fx small { margin: 0 2px 0 0; }
.pde-xp small { font-weight: 600; opacity: .8; margin-left: 2px; }
.mp-big.ring.stage small { position: relative; font: 600 12px var(--text); color: var(--violet-d); line-height: 1; } .mp-big.ring.stage b { font-size: 22px; }
.mp-big.ring.stage .mp-ok { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg); }
.mp-big.ring.stage .mp-ok .fic { width: 16px; height: 16px; }
.mp-row { display: flex; align-items: center; gap: 8px; } .mp-row.ok .mp-nt { background: var(--mint); color: #fff; }
.mp-ch.ok { background: var(--green-bg, #dff6ec); color: var(--green-ink, #1f8a5b); }
.mp-dots { display: inline-flex; gap: 4px; } .mp-dots i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--mint); }
.mp-dots i.no { background: var(--red, #EF5B7A); } .mp-dots .fic { width: 12px; height: 12px; }
.mp-pass { display: flex; justify-content: flex-end; margin-top: -4px; } .mp-nxl { display: flex; flex-direction: column; gap: 4px; border-top: 1px dashed var(--line); padding-top: 10px; }
.mp-nxl > small { font: 600 12px var(--text); color: var(--muted); }
.tk-ov.has-mp { display: flex; flex-direction: column; } .tk-ov.has-mp .tk-mp { flex: none; padding: 8px 14px calc(8px); } .tk-ov.has-mp .tk-ovf { flex: 1; height: auto; min-height: 0; }
.mp-hero { flex-wrap: wrap; } .mp-hero b { flex: 1 1 calc(100% - 64px); } .mp-hero .mp-ch { margin-left: 60px; } .mp-hero .mp-ch + .mp-ch { margin-left: 0; }
@media (max-height: 500px) { .ppx-act.mp-act { position: fixed; bottom: 0; left: 50%; right: auto; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); margin: 0; z-index: 45; flex-direction: row; justify-content: center; align-items: center; gap: 16px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: 0 -10px 14px -10px rgba(31,26,46,.18); } .ppx-act.mp-act .fbtn { flex: 1; max-width: 320px; } .ppx-act.mp-act .flinkbtn { white-space: nowrap; } .fh:has(> .mp-act) { padding-bottom: 80px; } }   /* FLOW-2 (c): a phone sideways: the buttons stay at the bottom of the screen (as the mission-end page), the page scrolls above them */
@media (orientation: landscape) and (max-height: 500px) { .mp-end .mp-body { flex-direction: row; flex-wrap: wrap; } .mp-end .mp-top { flex: 0 0 auto; padding: 0 8px; } .mp-end .mp-card { flex: 1 1 260px; } .mp-big { width: 64px; height: 64px; } }
@media (prefers-reduced-motion: no-preference) {
  html.new-motion .mp-path .mp-n.cur { animation: mo-ring 1.8s ease-in-out infinite; }
  html.new-motion .mp-path .mp-n.just { animation: mo-popin .55s cubic-bezier(.3,1.6,.5,1); }
  html.new-motion .mp-path .mp-ln.just { background: linear-gradient(var(--mint), var(--mint)) left / 0% 100% no-repeat, var(--line); animation: mo-draw .45s .05s forwards; }
  html.new-motion .mp-big, html.new-motion .mp-badge { animation: mo-bounce .45s cubic-bezier(.3,1.6,.5,1) both; }
  html.new-motion .mp-3 span { animation: mo-bounce .4s cubic-bezier(.3,1.6,.5,1) both; } html.new-motion .mp-3 span:nth-child(2) { animation-delay: .15s; } html.new-motion .mp-3 span:nth-child(3) { animation-delay: .3s; }
  html.new-motion .mp-badge { animation-delay: .5s; }
  html.new-motion .mp-tr i { animation: mp-fill .7s .3s ease-out both; }
  html.new-motion .mp-path .mp-fl.on .fic, html.new-motion .mp-path .mp-fb.on .fic { animation: mo-nudge 1.2s ease-in-out 2; }
}
@keyframes mp-fill { from { width: 0; } }

/* B-HOTFIX-1129 (owner 2026-11-29, Android walk of 9a4ea353) ---------------------------------------------------------- */
/* H1: a full day (6-9 rings) always fits the card: the rings share the width (never more than --rs), the flag stays on the last ring */
.mp-path.many { padding: 0 8px 0 0; align-items: center; }
.mp-path.many .mp-pn { flex: 0 1 var(--rs); min-width: 0; }
.mp-path.many .mp-n { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.mp-path.many .mp-ln { flex: 1 1 3px; min-width: 2px; margin-top: 0; }
.lplan.mp .mp-path.many .mp-pn { flex: 0 0 auto; } .lplan.mp .mp-path.many .mp-n { width: var(--s); height: var(--s); aspect-ratio: auto; }
/* H1/H3: the cards of the step pages line up with the bottom buttons (the app already pads the page by 16px) */
.mp-end .mp-body, .mp-start .mp-body { padding-left: 0; padding-right: 0; }
.mp-note { margin: 4px 4px 0; font: 500 14px/1.5 var(--text); color: var(--muted); text-align: center; }
/* H1: Home header: when the name does not fit beside the chips, the chips drop to a second row (hmFit in core.js) */
.hm-head .top.two { flex-wrap: wrap; row-gap: 8px; }
.hm-head .top.two .ttl { order: 0; flex: 1 1 calc(100% - 58px); }
.hm-head .top.two .fav { order: 1; } .hm-head .top.two .fchip { order: 2; }
/* H7: the mission-end page with 5+ steps done: the rings go on two rows (4 + the rest, centred) so numbers and names never touch */
.pr-fit .pd2-steps .pd2-row:has(> :nth-child(5)) { flex-wrap: wrap; justify-content: center; row-gap: 12px; column-gap: 0; }
.pr-fit .pd2-steps .pd2-row:has(> :nth-child(5)) > * { flex: 0 0 25%; max-width: 25%; }
/* H9: the spinner over the (hidden) player while its step end is saved */
.tk-ov .tk-wait { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg); }
body.pd-hold #app { visibility: hidden; }
.pd-hold-sp { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; pointer-events: none; }
/* H2: a Reading set on a phone turned sideways: every pixel of height is for the text (the fake window bar of a document goes) */
@media (orientation: landscape) and (max-height: 500px) { .rset .rv-chrome { display: none; } }

/* B-UI-MISSION-GROUPS-1 (owner 2026-11-29, design/friendly/mission-groups-1.html): the mission as groups, steps hidden until a group is tapped */
.mg { display: flex; flex-direction: column; width: 100%; }
.mg-row { display: flex; align-items: flex-start; margin: 4px 0 2px; }
.mg-g { all: unset; box-sizing: border-box; cursor: pointer; flex: 1 1 0; min-width: 0; max-width: 92px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px 8px; border-radius: 16px; transition: background .2s; -webkit-tap-highlight-color: transparent; }
.mg-g:focus-visible { outline: 3px solid var(--violet); }
.mg-g.open { background: var(--lilac); }
.mg-n { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid var(--line); background: #fff; color: var(--muted); display: grid; place-items: center; box-sizing: border-box; }
.mg-n .fic { width: 22px; height: 22px; }
.mg-g.done .mg-n { background: var(--mint); border-color: var(--mint); color: #fff; }
.mg-g.cur .mg-n { border-color: var(--violet); color: var(--violet-d); background: conic-gradient(var(--lilac2, #c9c1f2) 0 var(--p, 0%), #fff 0); box-shadow: 0 0 0 4px rgba(117,72,234,.15); }
.mg-g.open.cur .mg-n { background: conic-gradient(var(--violet) 0 var(--p, 0%), #fff 0); } .mg-g.open.cur .mg-n .fic { background: #fff; border-radius: 50%; padding: 2px; width: 26px; height: 26px; }
.mg-nm { font: 600 13px/1.2 var(--text); color: var(--ink); text-align: center; } .mg-ct { font: 700 12px var(--text); color: var(--muted); }
.mg-g.done .mg-ct { color: var(--green-ink); } .mg-g.cur .mg-ct { color: var(--violet-d); }
.mg-ln { flex: 0 1 14px; min-width: 4px; height: 3px; background: var(--line); margin-top: 28px; } .mg-ln.on { background: var(--mint); }
.mg-fl { flex: 0 0 auto; width: 18px; margin: 12px 0 0 2px; color: var(--violet); } .mg-fl .fic { width: 18px; height: 18px; } .mg-fl.on { color: var(--green-ink, #1f8a5b); }
.mg-pl { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; display: flex; flex-direction: column; gap: 6px; } .mg-pl[hidden] { display: none; }
@keyframes mgIn { from { opacity: 0; transform: translateY(-4px); } }
.mg-h { display: flex; align-items: center; gap: 6px; font: 700 13px var(--text); color: var(--muted); padding: 0 2px; } .mg-h b { color: var(--ink); font-size: 14px; }
.mg-s { display: flex; align-items: center; gap: 10px; border-radius: 14px; background: var(--soft); padding: 9px 12px 9px 10px; min-height: 48px; }
.mg-s.cur { background: #fff; border: 2px solid var(--violet); padding: 7px 10px 7px 8px; }
.mg-s .dot { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: #fff; color: var(--muted); } .mg-s .dot .fic { width: 15px; height: 15px; }
.mg-s.done .dot { background: var(--mint); border-color: var(--mint); color: #fff; } .mg-s.cur .dot { border-color: var(--violet); color: var(--violet-d); }
.mg-s .t { flex: 1; min-width: 0; font: 600 15px/1.25 var(--text); color: var(--ink); } .mg-s.todo .t { color: var(--muted); }
.mg-s .m { flex: 0 0 auto; font: 600 13px var(--text); color: var(--muted); } .mg-s.done .m { color: var(--green-ink); }
.mg-hint { margin: 0; text-align: center; font: 500 12px var(--text); color: var(--muted2); } .mg-hint[hidden] { display: none; }
.hmx > .mg { margin: 10px 0 4px; } .pd2-row > .mg { flex: 1 1 100%; } .mg-rings { margin-top: 0; }
.mg-s .t, .mg-s .m { overflow-wrap: anywhere; }
.mg-row:has(> .mg-g:nth-of-type(5)) .mg-nm { font-size: 12px; } .mg-row:has(> .mg-g:nth-of-type(5)) .mg-n { width: 42px; height: 42px; } .mg-row:has(> .mg-g:nth-of-type(5)) .mg-ln { margin-top: 26px; }
@media (prefers-reduced-motion: no-preference) { html.new-motion .mg-pl { animation: mgIn .22s var(--ease); } }

/* B-HOTFIX-1129 round 2: the page behind a lesson / game overlay cannot scroll (owner photos 6-9: strip cut at the top edge) */
body.tk-pin { position: fixed; top: var(--tk-y, 0); left: 0; right: 0; width: 100%; }
/* owner photos 10/11: the pride page says what its number counts (all days since the start), like Home says the month and the streak */
.pr-day .pr-sub { display: block; margin-top: 2px; font: 500 13px/1.35 var(--text); opacity: .85; }

/* B-HOTFIX-1129 round 2 / owner photo 3 (Part 7 sideways): the questions column starts at the very top of the screen; only the text column
   sits under the top bar (the old bar row left its right half empty and pushed both columns down) */
@media (orientation: landscape) and (max-height: 500px) {
  .shell.rdg .rset { grid-row: 1 / -1; padding-top: 6px !important; }
  .shell.rdg .rset > .docpane { margin-top: 30px; }
  .shell.rdg .rset-head { display: none; }
  .shell.rdg .tbar { position: relative; z-index: 4; }
}

/* B-UI-MISSION-GROUPS-2 (owner 2026-11-29 "ผ่าน"): the small strip DURING a step = previous group · the group being done · next group.
   Same four groups, icons and names as Home; always 3 slots wide so nothing overlaps at 360-412 px (design/friendly/mission-groups-2.html) */
.sg { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 0; }
.sg:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 99px; }
.sg-ln { flex: 0 0 5px; height: 3px; background: #fff9; border-radius: 2px; } .sg-ln.on { background: var(--mint); }
.sg-i { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: #fff; color: var(--muted); display: grid; place-items: center; box-sizing: border-box; }
.sg-i .fic { width: 13px; height: 13px; } .sg-i.done { background: var(--mint); border-color: var(--mint); color: #fff; }
.sg-c { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; background: #fff; border: 2px solid var(--violet); border-radius: 99px; padding: 1px 8px 1px 2px; font: 700 12px/1 var(--text); color: var(--violet-d); white-space: nowrap; }
.sg-c .sg-i { border: 0; width: 22px; height: 22px; background: conic-gradient(var(--violet) 0 var(--p, 0%), var(--lilac) 0); color: #fff; }
.sg-c .sg-i .fic { width: 16px; height: 16px; background: #fff; color: var(--violet-d); border-radius: 50%; padding: 2px; }
.pstrip.mp .sg { flex: 1; } .pstrip.mp .ps-xp { flex: 0 0 auto; }
.tk-mp .sg { margin: 0 auto; }
.tk-mgp { flex: none; margin: 0; padding: 10px 14px 12px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 18px -10px rgba(31,26,46,.35); position: relative; z-index: 2; max-height: 60%; overflow-y: auto; }
.tk-ov.has-mp .tk-mgp + .tk-ovf { flex: 1; }
.lp-sheet.lp-mg { width: min(360px, calc(100vw - 16px)); padding: 12px 12px 8px; }
.lp-sheet.lp-mg .lp-sh-h { margin-bottom: 4px; }
.lplan.mp .lp-3 { display: flex; align-items: center; gap: 3px; min-width: 0; } .lplan.mp .lp-1 { display: none; }
@media (orientation: landscape) and (max-height: 500px) { .lplan.mp .lp-3 { display: none; } .lplan.mp .lp-1 { display: flex; } }
.lplan.mp .sg-i { width: 22px; height: 22px; } .lplan.mp .sg-i .fic { width: 12px; height: 12px; } .lplan.mp .sg-c .sg-i { width: 20px; height: 20px; } .lplan.mp .sg-c .sg-i .fic { width: 14px; height: 14px; }
.lplan.mp .sg-c { font-size: 11.5px; padding-right: 7px; } .lplan.mp .sg-ln { flex-basis: 4px; }

/* owner 2026-11-29 ("หน้า home motion ของ task หายไป"): the groups get the motion the old rings had (mgSeen in learner.js) */
@property --p { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@keyframes mg-fill { from { --p: var(--p0); } }
@media (prefers-reduced-motion: no-preference) {
  html.new-motion .mg-g.cur .mg-n { animation: mo-ring 1.8s ease-in-out infinite; }                              /* the group to do */
  html.new-motion .mg-g.cur .mg-n.fill { animation: mg-fill .8s .1s ease-out both, mo-ring 1.8s ease-in-out .9s infinite; }   /* its fill sweeps on */
  html.new-motion .mg-g.just .mg-n { animation: mo-popin .55s cubic-bezier(.3,1.6,.5,1) .1s both; }               /* a group just done */
  html.new-motion .mg-ln.just { background: linear-gradient(var(--mint), var(--mint)) left / 0% 100% no-repeat, var(--line); animation: mo-draw .45s .55s forwards; }
  html.new-motion .mg-fl.on .fic { animation: mo-nudge 1.2s ease-in-out 2; }                                      /* the day is done */
}
