/* Seikai JLPT website: the round-2 正の字 Tally (concepts 06/07/18 in claude_misc\jlpt-website-additional),
   the app's tokens, one red pen. Light and dark; dark follows the system until the toggle is used. */
:root{
  --bg:#F5F3EC; --ink:#1E1C19; --pen:#D1391D; --pen-text:#B3301A; --pen-wash:rgba(209,57,29,.06);
  --guide:#D6D1C4; --rule:#E2DED4; --line:#CBC6BA; --muted:#625E57; --ochre:#94660F; --graphite:#4A4742;
  --flag:#E8B04A; --card:#FFFEFA; --chip:#ECE9E1; --sel:#EEEBE3; --hatch:#E7E3D9; --scrim:rgba(30,28,25,.42);
  --ok:#2F6B3A; --local:sans-serif;
  --mincho:"Shippori Mincho B1","Hiragino Mincho ProN","Yu Mincho",serif;
  --gothic:"Zen Kaku Gothic New",var(--local),"Hiragino Sans","Yu Gothic",system-ui,sans-serif;
  --jp:"Noto Sans JP","Hiragino Sans","Yu Gothic",sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#171614; --ink:#ECE7DE; --pen:#F0684A; --pen-text:#F47E62; --pen-wash:rgba(240,104,74,.09);
    --guide:#3B3834; --rule:#2B2926; --line:#413E39; --muted:#A8A399; --ochre:#E0A84A; --graphite:#CFC9BE;
    --flag:#8A5E0C; --card:#201E1B; --chip:#27251F; --sel:#2B2925; --hatch:#24221F; --scrim:rgba(0,0,0,.55); --ok:#7FBF8A; color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#171614; --ink:#ECE7DE; --pen:#F0684A; --pen-text:#F47E62; --pen-wash:rgba(240,104,74,.09);
  --guide:#3B3834; --rule:#2B2926; --line:#413E39; --muted:#A8A399; --ochre:#E0A84A; --graphite:#CFC9BE;
  --flag:#8A5E0C; --card:#201E1B; --chip:#27251F; --sel:#2B2925; --hatch:#24221F; --scrim:rgba(0,0,0,.55); --ok:#7FBF8A; color-scheme:dark;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0; background:var(--bg); color:var(--ink); font:400 16px/1.6 var(--gothic); -webkit-font-smoothing:antialiased; overflow-x:hidden}
a{color:inherit; text-decoration:none}
button, input, textarea, select{font:inherit; color:inherit}
h1,h2,h3,h4,p,dl,dd,ol,ul,figure{margin:0}
ol,ul{padding:0; list-style:none}
:focus-visible{outline:2px solid var(--pen); outline-offset:2px}
[hidden]{display:none !important}
.wrap{max-width:1200px; margin:0 auto; padding:0 32px}
.wrap.narrow{max-width:860px}
.muted{color:var(--muted)}
.fine{font-size:13.5px; line-height:1.55; color:var(--muted)}
.nw{white-space:nowrap}
.sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
/* warmMarkup (65-question.js) and seo.js: markup there for a moment, for its computed faces only */
.font-ghost{display:none}
.ico{width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; flex:none}
.skip{position:absolute; left:8px; top:-60px; z-index:100; background:var(--ink); color:var(--bg); padding:8px 14px; border-radius:3px}
.skip:focus{top:8px}
.jp, [lang="ja"]{font-family:var(--jp)}
kbd{display:inline-block; min-width:20px; padding:0 4px; border:1px solid var(--line); border-radius:3px; background:var(--card); font:600 12px/18px var(--gothic); text-align:center}

/* bilabel: kanji in Mincho, the language beside it */
.bl{display:inline-flex; align-items:baseline; gap:.55em; flex-wrap:wrap}
.bl b{font:800 1.3em/1.2 var(--mincho)}
.bl span{font:500 1em/1.2 var(--gothic); color:var(--muted)}

/* buttons, links, tags, segments */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:48px; padding:0 22px;
  border-radius:3px; border:1px solid transparent; font:700 16px/1.2 var(--gothic); cursor:pointer; text-align:center; transition:background .15s, border-color .15s; background:none}
.btn .ico{width:18px; height:18px}
.btn-ink{background:var(--ink); color:var(--bg)}
@media (hover:hover){ .btn-ink:hover{background:var(--graphite)} }
.btn-out{background:var(--card); border-color:var(--line); color:var(--ink)}
@media (hover:hover){ .btn-out:hover{border-color:var(--ink)} }
.btn-pen{background:var(--pen); color:#fff}
@media (hover:hover){ .btn-pen:hover{filter:brightness(.94)} }
.btn[disabled], .btn[aria-disabled="true"]{opacity:.45; cursor:default; pointer-events:none}
.btn.sm{min-height:40px; padding:0 14px; font-size:14.5px}
.btn.xs{min-height:30px; padding:0 10px 0 12px; font-size:13.5px; gap:4px}
.btn.xs .ico{width:15px; height:15px}
.btn.wide{width:100%}
.btn.two{flex-direction:column; gap:2px; padding:11px 20px}
.btn.two small{font:400 13.5px/1.3 var(--gothic); opacity:.85}
.link{display:inline-flex; align-items:center; gap:4px; font-weight:700; border-bottom:1px solid transparent; background:none; border-top:0; border-left:0; border-right:0; padding:0; cursor:pointer}
@media (hover:hover){ .link:hover{border-bottom-color:currentColor} }
.link .ico{width:17px; height:17px}
.link .bl b{font-size:1.15em}
.link .bl span{color:var(--ink); font-weight:700}
.tag{display:inline-flex; align-items:center; gap:6px; border:1px solid var(--line); border-radius:3px; padding:0 8px; font:500 12.5px/1.7 var(--gothic); color:var(--muted); white-space:nowrap}
.tag.pen{border-color:var(--pen); color:var(--pen-text)}
.seg{display:inline-flex; border:1px solid var(--line); border-radius:3px; background:var(--card); overflow:hidden}
.seg button{border:0; border-left:1px solid var(--line); background:none; padding:8px 16px; cursor:pointer; font:500 14.5px/1.2 var(--gothic); min-height:40px}
.seg button:first-child{border-left:0}
.seg button b{font:800 16px var(--mincho); margin-left:6px; font-feature-settings:"tnum" 1}
.seg button[aria-pressed="true"]{background:var(--ink); color:var(--bg)}
@media (hover:hover){ .seg button:not([aria-pressed="true"]):hover{background:var(--sel)} }
.seg button[disabled]{opacity:.45; cursor:default}
.card{background:var(--card); border:1px solid var(--line); border-radius:3px}

/* marks: ○ pass, ! near the minimum, × below it */
.mk{width:18px; height:18px; flex:none; color:var(--pen)}
.mk.warn{color:var(--ochre)}
.v-safe{color:var(--ink); font-weight:700}
.v-border{color:var(--ochre); font-weight:700}
.v-not{color:var(--pen-text); font-weight:700}
.w-pen{color:var(--pen-text); font-weight:700}

/* 正: a paper's own progress, one stroke per fifth answered */
.tl{display:block; flex:none; width:32px; height:32px; fill:none; stroke:var(--pen); stroke-linecap:round; stroke-linejoin:round; overflow:visible; stroke-width:3px}
.tl .g{stroke:var(--guide); stroke-width:2px}
.tl .p{stroke-dasharray:1.9 1.6; stroke-linecap:butt}
.tl.xs{width:19px; height:19px; stroke-width:3.8px}
.tl.xs .g{stroke-width:2.4px}

/* ---------- the wordmark ----------
   正 is drawn, 解 is a Mincho glyph. The concepts drew 正 in a 40-unit box whose strokes only filled
   y 7–33.5, so it sat smaller and higher than 解 (owner, 2026-10-30: "not aligned"). Here the box is
   cropped to the strokes and sized to 解's ink as measured in Shippori Mincho B1 800 (tools/drive.mjs
   crop + pixel count, 2026-10-30): the same height, top and bottom, and the same width. The strokes
   don't scale with the box, so the stretch never thickens them. */
.wm{display:inline-flex; align-items:center; flex:none; --wm:36px}
.wm-sho{flex:none; width:calc(var(--wm) * .862); height:calc(var(--wm) * .898); margin-right:calc(var(--wm) * .06); transform:translateY(calc(var(--wm) * .052));
  fill:none; stroke:var(--pen); stroke-width:calc(var(--wm) * .108); stroke-linecap:round; stroke-linejoin:round; overflow:visible}
.wm-sho path{vector-effect:non-scaling-stroke}
.wm .kai{font:800 var(--wm)/1 var(--mincho)}
.wm .wm-t{margin-left:12px; font:700 10.5px/1.5 var(--gothic); letter-spacing:.25em; white-space:nowrap}

/* ---------- site bar ---------- */
.site-bar .bar-in{display:flex; align-items:center; gap:22px; height:80px; border-bottom:2px solid var(--ink)}
.nav{display:flex; gap:2px; margin-left:20px}
.nav a{display:flex; flex-direction:column; align-items:center; padding:8px 12px 6px; min-width:80px; color:var(--muted); border-radius:3px}
@media (hover:hover){ .nav a:hover{background:var(--sel); color:var(--ink)} }
.nav a b{font:800 19px/1.15 var(--mincho); padding:0 3px 4px; border-bottom:3px solid transparent}
.nav a span{font:500 12px/1.2 var(--gothic); margin-top:4px; white-space:nowrap}
.nav a[aria-current="page"], .nav-m a[aria-current="page"]{color:var(--ink)}
.nav a[aria-current="page"] b, .nav-m a[aria-current="page"] b{border-bottom-color:var(--pen)}
.nav a[aria-current="page"] span, .nav-m a[aria-current="page"] span{font-weight:700}
.nav-m{display:none}
.bar-r{margin-left:auto; display:flex; align-items:center; gap:6px}
.lvl{display:inline-flex; align-items:center; gap:6px; height:42px; padding:0 9px 0 13px; border:2px solid var(--ink); border-radius:3px; background:transparent; cursor:pointer; font:800 20px/1 var(--mincho); list-style:none}
.lvl::-webkit-details-marker{display:none}
.lvl .ico{width:17px; height:17px}
@media (hover:hover){ .lvl:hover{background:var(--sel)} }
.icon-btn{position:relative; min-width:42px; height:42px; display:inline-flex; align-items:center; justify-content:center; gap:3px; padding:0 6px; border:0; background:none; border-radius:3px; cursor:pointer; list-style:none; color:var(--ink)}
.icon-btn::-webkit-details-marker{display:none}
@media (hover:hover){ .icon-btn:hover{background:var(--sel)} }
.lang-code{font:700 11.5px var(--gothic); letter-spacing:.04em; color:var(--muted)}
.theme-btn .moon{display:none}
:root[data-theme="dark"] .theme-btn .sun{display:none}
:root[data-theme="dark"] .theme-btn .moon{display:block}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .theme-btn .sun{display:none} :root:not([data-theme="light"]) .theme-btn .moon{display:block} }
.acct-dot{position:absolute; right:7px; top:8px; width:8px; height:8px; border-radius:50%; background:var(--pen); box-shadow:0 0 0 2px var(--bg)}
.get-app .short{display:none}

/* menus (level, language): <details>, so they open without JavaScript */
.menu{position:relative}
.menu[open] > summary{background:var(--sel)}
.menu-pop{position:absolute; right:0; top:calc(100% + 6px); z-index:40; min-width:230px; padding:8px; background:var(--card); border:1px solid var(--line); border-radius:3px; box-shadow:0 10px 30px rgba(0,0,0,.12)}
.menu-h{padding:4px 10px 8px; font-size:12.5px; color:var(--muted)}
.menu-pop a{display:flex; align-items:baseline; gap:12px; padding:8px 10px; border-radius:3px; font-size:15px}
@media (hover:hover){ .menu-pop a:hover{background:var(--sel)} }
.menu-pop a[aria-current="true"]{background:var(--pen-wash); box-shadow:inset 3px 0 0 var(--pen)}
.menu-pop a b{font:800 18px var(--mincho); min-width:32px}
.menu-pop a span{color:var(--muted); font-size:14px}
.menu-langs{min-width:200px; columns:2; column-gap:4px}
.menu-langs .menu-h{column-span:all}
.menu-langs a{break-inside:avoid}

/* ---------- page heads ---------- */
.page-h{padding:30px 0 4px}
.page-h .row{display:flex; justify-content:space-between; align-items:flex-end; gap:12px 20px; flex-wrap:wrap}
.page-h h1{font-size:19px}
.page-h h1.bl b{font-size:1.75em}
.page-h h1 .lvb{font:800 1.75em/1.2 var(--mincho); color:var(--ink)}
.page-h .sub{margin-top:8px; color:var(--muted); max-width:66em; font-size:15.5px}
.page-h .free-note{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:10px; font-size:14.5px}

/* ---------- footer ---------- */
.site-foot{padding:40px 0 56px; margin-top:48px}
.site-foot .foot-in{border-top:2px solid var(--ink); padding-top:26px; display:grid; grid-template-columns:auto 1fr; gap:18px 48px; align-items:start}
.site-foot .wm{--wm:26px}
.foot-links{display:flex; gap:8px 28px; flex-wrap:wrap; justify-content:flex-end; font-weight:500}
@media (hover:hover){ .foot-links a:hover, .foot-langs a:hover{text-decoration:underline} }
.foot-langs{grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:4px 16px; font-size:13.5px; color:var(--muted)}
.foot-langs a[aria-current="true"]{color:var(--ink); font-weight:700}
.site-foot .fine{grid-column:1 / -1}

.loading-box{padding:64px 0; color:var(--muted); text-align:center}
.loading-box .bar{height:3px; max-width:320px; margin:16px auto 0; background:var(--chip); border-radius:2px; overflow:hidden}
.loading-box .bar i{display:block; height:100%; width:0; background:var(--pen); transition:width .2s}
/* ?debug=1: the loading timeline */
.load-log{max-width:440px; margin:16px auto 0; text-align:left; white-space:pre-wrap; font:12px/1.5 ui-monospace, Consolas, monospace; color:var(--muted)}
.load-log.corner{position:fixed; left:8px; bottom:8px; z-index:95; margin:0; max-width:calc(100vw - 16px); max-height:40vh; overflow:auto; padding:8px 10px; background:var(--card); border:1px solid var(--line); border-radius:3px; box-shadow:0 6px 20px rgba(0,0,0,.15)}
.notice{padding:14px 16px; border-left:3px solid var(--pen); background:var(--pen-wash); border-radius:0 3px 3px 0; font-size:15px}

/* toast */
.toast{position:fixed; left:50%; bottom:24px; transform:translateX(-50%); z-index:90; max-width:min(560px, calc(100vw - 32px)); padding:12px 18px; background:var(--ink); color:var(--bg); border-radius:3px; font-size:14.5px; box-shadow:0 8px 24px rgba(0,0,0,.2)}

@media (max-width:1100px){
  .nav{margin-left:8px}
  .nav a{min-width:68px; padding:8px 8px 6px}
}
@media (max-width:900px){
  .site-bar .bar-in{flex-wrap:wrap; height:auto; padding-top:12px; gap:0 10px}
  .nav{display:none}
  .nav-m{order:3; width:100%; margin:10px 0 0; display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--rule)}
  .nav-m a{display:flex; justify-content:center; align-items:baseline; gap:7px; min-width:0; padding:10px 4px 8px; color:var(--muted)}
  .nav-m a b{font:800 17px/1.2 var(--mincho); padding:0 2px 3px; border-bottom:3px solid transparent}
  .nav-m a span{font:500 12.5px var(--gothic)}
}
@media (max-width:640px){
  .wrap{padding:0 16px}
  .site-bar .bar-in{padding-top:10px}
  .wm{--wm:31px}
  .wm .wm-t{margin-left:9px; font-size:9px}
  .bar-r{gap:0}
  .lvl{height:40px; font-size:18px; padding:0 5px 0 9px}
  .icon-btn{min-width:38px; height:40px; padding:0 4px}
  .lang-code{display:none}
  .get-app{min-height:38px; padding:0 10px; font-size:13.5px}
  .get-app .long{display:none}
  .get-app .short{display:inline}
  .page-h{padding-top:20px}
  .page-h h1{font-size:16px}
  .page-h .sub{font-size:14.5px}
  .page-h .sub .more{display:none}
  .site-foot .foot-in{grid-template-columns:1fr}
  .foot-links{justify-content:flex-start; gap:6px 20px}
  .menu-pop{position:fixed; left:12px; right:12px; top:64px; min-width:0}
}
@media (max-width:400px){
  .wm .wm-t{display:none}
  .theme-btn{display:none}
}
/* the tab names stay on one line; a long label gives way (Thai, Bengali, Sinhala) */
.nav-m a b{white-space:nowrap}
.nav-m a span{min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

/* Burmese stacks marks above and below the line: the tight line heights of labels would let lines touch */
html[lang="my"] .bl span, html[lang="my"] .hl .d b, html[lang="my"] .hl .d > span, html[lang="my"] .hl .m, html[lang="my"] .pt-en, html[lang="my"] .krow .nm span,
html[lang="my"] .secrow .nm span, html[lang="my"] .c-qm, html[lang="my"] .st-d, html[lang="my"] .menu-pop a span{line-height:1.75}


/* The usage statistics' bar (site/stats.js; owner, 2026-11-07): the EEA's question about the visitor ID, the UK's notice.
   Small and at the foot, over nothing that matters: the page stays usable while it waits for an answer. Never in a test. */
.stats-bar{position:fixed; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); z-index:70; display:flex; justify-content:center; pointer-events:none}
.stats-bar-in{pointer-events:auto; display:flex; align-items:center; gap:12px 18px; flex-wrap:wrap; max-width:760px; padding:12px 14px 12px 18px; background:var(--card); color:var(--ink);
  border:1px solid var(--line); border-radius:3px; box-shadow:0 10px 30px rgba(0,0,0,.14); font-size:14.5px; line-height:1.5}
.stats-bar-in p{flex:1 1 300px; margin:0}
.stats-bar-in a{color:inherit; text-decoration:underline; text-underline-offset:2px}
.stats-bar-acts{display:flex; gap:8px; margin-left:auto}
@media (max-width:520px){ .stats-bar-in{padding:12px} .stats-bar-acts{width:100%} .stats-bar-acts .btn{flex:1} }
html[lang="my"] .stats-bar-in{line-height:1.75}

/* ---------- home (concept 18 · 無料 Free start: the five levels are the first screen's action) ---------- */
.hero{padding:76px 0 60px}
.hero-grid{display:grid; grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); gap:80px; align-items:center}
.hero h1{font:800 46px/1.2 var(--mincho); letter-spacing:-.005em; max-width:14em}
.hero .lede{margin-top:20px; font-size:18px; line-height:1.7; color:var(--muted); max-width:34em}
.hero .fine{margin-top:16px}
.hero .acts{display:flex; align-items:center; gap:22px; flex-wrap:wrap; margin-top:22px}

.hlv{border-top:2px solid var(--ink)}
.hlv-h{display:flex; justify-content:space-between; align-items:baseline; gap:6px 14px; flex-wrap:wrap; padding:12px 0 8px}
.hlv-h .bl{font-size:15px}
.hlv-h .bl b{font-size:1.45em}
.hl{position:relative; display:grid; grid-template-columns:60px minmax(0,1fr) auto 18px; gap:14px; align-items:center; min-height:64px; padding:8px 8px 8px 12px; border-top:1px solid var(--rule); transition:background .15s}
.hl:last-child{border-bottom:1px solid var(--rule)}
@media (hover:hover){ .hl:hover{background:var(--sel)} }
.hl .n{font:800 30px/1 var(--mincho)}
@media (hover:hover){ .hl:hover .n{text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:5px} }
.hl .d b{display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-weight:700; font-size:15.5px; line-height:1.3}
.hl .d > span{display:block; font-size:13.5px; color:var(--muted); line-height:1.35}
.hl .tag{font-weight:500}
.hl .m{text-align:right; font-size:13.5px; color:var(--muted); line-height:1.3; white-space:nowrap}
.hl .m b{font:800 18px var(--mincho); color:var(--ink); margin-right:4px; font-feature-settings:"tnum" 1}
.hl .m span{display:block}
.hl .ico{width:18px; height:18px; color:var(--muted)}
@media (hover:hover){ .hl:hover .ico{color:var(--ink)} }
.hl.yours{background:var(--pen-wash)}
.hl.yours::before{content:""; position:absolute; left:0; top:-1px; bottom:-1px; width:3px; background:var(--pen)}

.sec{padding:64px 0}
.sec-faq{padding-top:8px}
.sec-h{display:flex; align-items:baseline; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:10px}
.sec-h .bl{font-size:18px}
.sec-h .bl b{font-size:1.55em}
.after{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 40px; margin-top:14px}
.after > div{padding:16px 0 4px; border-top:2px solid var(--ink)}
.after .bl{font-size:15px}
.after .bl b{font-size:1.45em}
.after p{margin-top:10px; font-size:16px; line-height:1.65; color:var(--muted)}
.after p b{color:var(--ink); font-weight:700}

.faq{max-width:860px; margin-top:14px; border-top:2px solid var(--ink)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{list-style:none; cursor:pointer; position:relative; padding:18px 48px 18px 0; font:700 18px/1.45 var(--gothic)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:""; position:absolute; right:10px; top:26px; width:9px; height:9px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:rotate(45deg); transition:transform .15s}
.faq details[open] summary::after{transform:rotate(-135deg); top:30px}
@media (hover:hover){ .faq summary:hover{color:var(--pen-text)} }
.faq .a{padding:0 48px 22px 0; font-size:16.5px; line-height:1.7; color:var(--muted); max-width:46em}
.faq .a b{color:var(--ink); font-weight:700}

.appline{display:flex; align-items:center; gap:16px 28px; padding:22px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); flex-wrap:wrap}
.appline .bl{font-size:15px}
.appline p{flex:1; min-width:260px; color:var(--muted)}
.appline p b{color:var(--ink); font-weight:700}
/* Google's own badge in the page's language (tools/fetch_play_badges.py), as Google asks: never redrawn or
   stretched, on phones too; at least 28 px high, a quarter of its height clear around it (the line's gaps). */
.play-badge{display:block; flex:none; border-radius:7px}
.play-badge img{display:block; width:auto; height:52px}

/* "Which level?" before Full tests or Practice (/tests/, /practice/): the home's level rows */
.pick{max-width:760px; padding-bottom:16px}
.pick-q{margin-top:22px; font:800 30px/1.25 var(--mincho)}
.pick .sub{margin-top:8px; color:var(--muted); font-size:15.5px}
.pick .hlv{margin-top:20px}

/* about, privacy */
.prose > p{margin-top:16px; font-size:16.5px; line-height:1.75; max-width:44em}
.prose h2{margin-top:36px; font:700 19px/1.4 var(--gothic)}
.prose h2.bl{font:inherit; font-size:17px}
.prose h2.bl b{font-size:1.45em}
.prose a:not(.link):not(.btn){color:var(--pen-text); text-decoration:underline; text-underline-offset:3px}
.iphone-cta{margin-top:22px}
.sub-h{display:flex; margin-top:44px !important; padding-bottom:8px; border-bottom:2px solid var(--ink)}
.facts-t{width:100%; margin-top:14px; border-collapse:collapse; font-size:15px}
.facts-t th, .facts-t td{padding:10px 8px; border-bottom:1px solid var(--rule); text-align:left}
.facts-t thead th{font-size:13px; color:var(--muted); font-weight:500; border-bottom:1.5px solid var(--ink)}
.facts-t tbody th{font:800 18px var(--mincho)}
@media (hover:hover){ .facts-t tbody th a:hover{text-decoration:underline} }
.contact{margin-top:14px; display:flex; flex-direction:column; gap:12px; max-width:640px}
.contact textarea, .field{width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:3px; background:var(--card); font-size:15.5px; line-height:1.5; resize:vertical}
.contact textarea:focus, .field:focus{outline:2px solid var(--pen); outline-offset:0; border-color:transparent}
.contact-row{display:flex; align-items:center; gap:16px; flex-wrap:wrap}
.plain{margin-top:14px; display:flex; flex-direction:column; gap:10px}
.nf-levels{margin-top:28px; max-width:620px}

@media (max-width:1000px){
  .hero-grid{grid-template-columns:1fr; gap:40px}
}
@media (max-width:860px){
  .after{grid-template-columns:1fr}
  .after > div + div{margin-top:22px}
}
@media (max-width:640px){
  .hero{padding:30px 0 34px}
  .hero-grid{gap:26px}
  .hero h1{font-size:33px; line-height:1.22}
  .pick-q{margin-top:16px; font-size:25px}
  .pick .sub{font-size:14.5px}
  .hero .lede{font-size:16.5px; margin-top:14px}
  .hero .acts{margin-top:14px}
  .hlv-h .fine{display:none}
  .hl{grid-template-columns:42px minmax(0,1fr) auto 16px; gap:10px; min-height:60px; padding:8px 4px 8px 10px}
  .hl .n{font-size:25px}
  .hl .d b{font-size:15px}
  .hl .d > span{font-size:12.5px}
  .hl .m{font-size:12.5px}
  .hl .m b{font-size:16px}
  .sec{padding:44px 0}
  .sec-h .bl b{font-size:1.4em}
  .after p{font-size:15px}
  .faq summary{font-size:16.5px; padding:16px 36px 16px 0}
  .faq summary::after{right:6px; top:23px}
  .faq details[open] summary::after{top:27px}
  .faq .a{padding:0 0 18px; font-size:15.5px}
  .appline p{min-width:0; flex:1 1 100%}
  .prose > p{font-size:15.5px}
  .facts-t{font-size:13.5px}
  .facts-t th, .facts-t td{padding:8px 4px}
}

/* ---------- full tests: the shelf (concept 06); on phones the app's paper cards (TestsTab.kt) ---------- */
.tbar{display:flex; justify-content:space-between; align-items:center; gap:12px 20px; flex-wrap:wrap; margin:20px 0 12px}
.tbar .seg{flex-wrap:wrap}
.tbar .seg button{padding:6px 14px; min-height:38px; font-size:14px}
.sort{display:flex; align-items:center; gap:10px; font-size:13.5px; color:var(--muted)}
.sort .seg{flex-wrap:nowrap}
.cat-h, .pr{display:grid; grid-template-columns:20px 160px 150px 84px 74px minmax(0,1fr) auto; gap:0 14px; align-items:center}
.cat-h{padding:0 8px 7px; border-bottom:1.5px solid var(--ink); font-size:12.5px; color:var(--muted); font-weight:500}
.cat-h .c-q{text-align:right}
.pr{position:relative; min-height:38px; padding:0 8px; border-bottom:1px solid var(--rule); font-size:14px}
@media (hover:hover){ .pr:hover{background:var(--sel)} }
.pr .tl{grid-column:1}
.c-t{grid-column:2; min-width:0; white-space:nowrap; display:flex; align-items:center; gap:8px}
.c-t a{font:800 16px/1.2 var(--mincho); font-feature-settings:"tnum" 1,"lnum" 1}
.c-t a::after{content:""; position:absolute; inset:0}
@media (hover:hover){ .pr:hover .c-t a{text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px} }
.c-t .q-m{display:none}
.c-s{grid-column:3}
.c-q{grid-column:4}
.c-m{grid-column:5}
.c-st{grid-column:6}
.c-a{grid-column:7}
.c-qm{display:none}
.c-tags{display:none}
.c-s, .c-m{color:var(--muted); white-space:nowrap}
.c-q{color:var(--muted); text-align:right; font-feature-settings:"tnum" 1; white-space:nowrap}
.c-st{min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:flex; align-items:center; gap:10px}
.c-st .st-f{display:inline-flex; align-items:center; gap:10px; min-width:0}
.c-st .st-d{color:var(--muted); overflow:hidden; text-overflow:ellipsis}
.c-st .st-m{display:none}
.c-st .tag{margin-right:2px}
.vd{display:inline-flex; align-items:center; gap:4px}
.est{display:inline-flex; align-items:baseline; gap:3px}
.est small{font-size:12.5px; color:var(--muted)}
.est b{font:800 18px/1 var(--mincho); font-feature-settings:"tnum" 1}
.c-a{justify-self:end; display:flex; align-items:center; gap:14px; position:relative; z-index:1}
.act-l{display:inline-flex; align-items:center; gap:4px; font-weight:700; font-size:13.5px; white-space:nowrap; background:none; border:0; padding:0; cursor:pointer}
@media (hover:hover){ .act-l:hover{text-decoration:underline; text-underline-offset:3px} }
.act-l .ico{width:15px; height:15px}
.act-l.pen{color:var(--pen-text)}
.act-go{display:inline-flex; align-items:center; gap:3px; font-weight:700; font-size:13.5px; opacity:0; transition:opacity .12s; pointer-events:none}
.act-go .ico{width:15px; height:15px}
.pr:focus-within .act-go{opacity:1}
@media (hover:hover){ .pr:hover .act-go{opacity:1} }
.cat-fine{margin-top:14px; display:flex; justify-content:space-between; gap:12px 24px; flex-wrap:wrap}
.m-only{display:none !important}
@media (max-width:640px){ .m-only{display:inline-flex !important} .d-only{display:none !important} }

@media (max-width:1060px){
  .cat-h, .pr{grid-template-columns:20px 160px 84px minmax(0,1fr) auto}
  .cat-h .c-s, .cat-h .c-m, .pr .c-s, .pr .c-m{display:none}
  .c-q{grid-column:3}
  .c-st{grid-column:4}
  .c-a{grid-column:5}
}
/* phones: the app's 試験 tab, one paper card per test */
@media (max-width:640px){
  .tbar{margin:14px 0 10px; gap:8px}
  .tbar > .seg{width:100%}
  .tbar > .seg button{flex:1 1 50%; padding:6px; font-size:13.5px}
  .tbar > .seg button:nth-child(3){border-left:0}
  .tbar > .seg button:nth-child(n+3){border-top:1px solid var(--line)}
  .sort{margin-left:auto}
  .sort .seg button{min-height:36px; padding:4px 12px; font-size:13.5px}
  .cat-h{display:none}
  .cat{display:flex; flex-direction:column; gap:10px}
  .pr{grid-template-columns:26px minmax(0,1fr) auto; grid-template-areas:"tl t st" "tl qm st" "tags tags tags" "a a a";
    gap:0 10px; align-items:start; padding:12px 12px 6px; background:var(--card); border:1px solid var(--line); border-radius:3px; min-height:0}
  @media (hover:hover){ .pr:hover{background:var(--card)} }
  .pr .tl{grid-area:tl; width:26px; height:26px; stroke-width:3.4px; align-self:center}
  .pr .tl .g{stroke-width:2.2px}
  .c-t{grid-area:t}
  .c-t a{font-size:15px}
  .c-t .t-tag{display:none}
  .c-qm{grid-area:qm; display:block; font-size:12px; color:var(--muted); font-weight:500}
  .c-s, .c-q, .c-m{display:none}
  .c-tags{grid-area:tags; display:flex; flex-wrap:wrap; gap:5px; padding:6px 0 0 36px}
  .c-tags:empty{display:none}
  .c-st{grid-area:st; flex-direction:column; align-items:flex-end; gap:0; overflow:visible}
  .c-st .st-f{display:none}
  .c-st .st-m{display:flex; flex-direction:column; align-items:flex-end; font-size:12px; line-height:1.35}
  .c-st .st-m .score{display:flex; align-items:baseline}
  .c-st .st-m .score b{font:800 20px/1.1 var(--mincho)}
  .c-st .st-m .score small{font:400 12px var(--mincho); color:var(--muted)}
  .c-st .st-m .d{font-size:11px; color:var(--muted)}
  .c-a{grid-area:a; justify-self:stretch; justify-content:flex-end; gap:4px; padding-top:2px}
  .c-a:empty{display:none}
  .act-l{min-height:40px; padding:0 8px; font-size:13px}
  .act-go{display:none}
}

/* ---------- practice (concept 07); on phones the app's 練習 tab (PracticeTab.kt) ---------- */
.pr-grid{padding:28px 0 32px}
.psec + .psec, .open-prac:not([hidden]) + .psec{margin-top:40px}
.psec-h{display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding-bottom:9px; border-bottom:2px solid var(--ink); flex-wrap:wrap}
.psec-h .bl{font-size:16px}
.psec-h .bl b{font-size:1.45em}
.psec-h .n{font-size:14px; color:var(--muted)}
.psec-h .n b{font:800 16px var(--mincho); color:var(--ink); font-feature-settings:"tnum" 1}
.pt{display:grid; grid-template-columns:200px minmax(0,1fr) 52px 92px; gap:20px; align-items:center; padding:12px 8px 12px 0; border-bottom:1px solid var(--rule); transition:background .15s}
@media (hover:hover){ .pt:hover{background:var(--sel)} }
.pt-nm{padding-left:2px}
.pt-jp{display:block; font:800 16.5px/1.35 var(--mincho)}
.pt-en{display:block; font-size:13.5px; color:var(--muted); line-height:1.35}
.pt-what{font-size:15px; line-height:1.5}
.pt-n{font:800 16px var(--mincho); text-align:right; font-feature-settings:"tnum" 1}
.pt-go{display:inline-flex; align-items:center; justify-content:flex-end; gap:2px; font-weight:700; font-size:14.5px}
.pt-go .ico{width:16px; height:16px}
@media (hover:hover){ .pt:hover .pt-go{color:var(--pen-text)} }
.all-area{min-height:38px; margin-top:12px; padding:0 14px; font-size:14px; background:transparent}
.open-prac{padding:14px 16px 6px}
.op-h{padding-bottom:8px; border-bottom:1px solid var(--rule)}
.op-h .bl{font-size:15px}
.op-h .bl b{font-size:1.35em}
.op-list li{display:flex; align-items:center; gap:10px; border-bottom:1px solid var(--rule)}
.op-list li:last-child{border-bottom:0}
.op-list a{flex:1; display:flex; align-items:center; gap:12px; min-width:0; padding:10px 0}
.op-list a .t{display:block; font:800 15px/1.3 var(--mincho); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.op-list a .s{display:block; font-size:12.5px; font-weight:500; color:var(--pen-text)}
@media (hover:hover){ .op-list a:hover .t{text-decoration:underline} }
.op-list .x{width:40px; height:40px; display:grid; place-items:center; border:0; background:none; border-radius:3px; cursor:pointer; color:var(--muted)}
@media (hover:hover){ .op-list .x:hover{background:var(--sel); color:var(--ink)} }

@media (max-width:1100px){
  .pt{grid-template-columns:170px minmax(0,1fr) 46px 84px; gap:14px}
}
@media (max-width:640px){
  .pr-grid{padding-top:16px}
  .psec{background:var(--card); border:1px solid var(--line); border-radius:3px; padding:10px 12px 12px 14px}
  .psec + .psec, .open-prac + .psec{margin-top:12px}
  .psec-h{border-bottom:1px solid var(--rule); padding-bottom:8px}
  .psec-h .bl{font-size:14px}
  .psec-h .n{font-size:13px}
  .psec-h .n b{font-size:13px; font-weight:400; color:var(--muted)}
  .pt{grid-template-columns:minmax(0,1fr) auto 16px; gap:10px; padding:9px 0}
  .pt-jp{font-size:14px}
  .pt-en{font-size:12px; font-weight:500}
  .pt-what{display:none}
  .pt-n{font-size:16px}
  .pt-go span{display:none}
  .pt-go .ico{color:var(--muted)}
  .all-area{width:100%; min-height:44px; margin-top:10px; background:var(--card)}
}

/* ---------- sheets: the test menu, the practice setup, the unlock sheet, confirmations ----------
   The app's screens (TestIntroScreen.kt, PracticeSetupScreen.kt, UnlockSheet.kt) on paper: a panel
   over the list on wide screens, a full screen with a bar and a bottom button on phones. */
.sheet{position:fixed; inset:0; z-index:60; display:flex; align-items:center; justify-content:center; padding:24px; background:var(--scrim)}
.sheet-in{position:relative; display:flex; flex-direction:column; width:100%; max-width:600px; max-height:calc(100vh - 48px); background:var(--bg); border:1px solid var(--line); border-radius:3px; box-shadow:0 20px 60px rgba(0,0,0,.25); overflow:hidden}
.sheet.small .sheet-in{max-width:460px}
.sheet-bar{display:flex; align-items:center; gap:12px; min-height:60px; padding:8px 10px 8px 18px; border-bottom:2px solid var(--ink)}
.sheet-bar .bl{flex:1; min-width:0; font-size:15px}
.sheet-bar .bl b{font-size:1.35em}
.sheet-bar .bl span{white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.x-btn{width:42px; height:42px; display:grid; place-items:center; border:0; background:none; border-radius:3px; cursor:pointer; flex:none}
@media (hover:hover){ .x-btn:hover{background:var(--sel)} }
.sheet-body{flex:1; overflow:auto; padding:18px 22px 22px; overscroll-behavior:contain}
.sheet-foot{padding:12px 22px 18px; border-top:1px solid var(--rule); display:flex; flex-direction:column; gap:8px; background:var(--bg)}
.sheet-foot .btn{width:100%}
/* The test menu and the practice setup as a page of their own (/run/?test=…, /run/?practice=…). The page scrolls, not
   a box inside it: that box, with nothing of its own to scroll, held on to the mouse wheel (overscroll-behavior), so
   the page would not move under the pointer. Start stays at the foot of the window, as in the sheet (owner, 2026-11-06). */
.setup-page .sheet-body{flex:none; overflow:visible; overscroll-behavior:auto; padding:0}
.setup-page .sheet-foot{position:sticky; bottom:0; z-index:5; margin-top:16px; padding:12px 0 calc(14px + env(safe-area-inset-bottom)); border-top:1px solid var(--rule); background:var(--bg)}
.sheet h3.sh-title{font:800 24px/1.25 var(--mincho)}
.sheet .lead{margin-top:6px; font-size:14px; color:var(--muted); line-height:1.5}
.stitle{display:flex; align-items:baseline; gap:8px; margin:20px 0 8px; font-size:14px; color:var(--muted); font-weight:500}
.stitle b{font:800 17px var(--mincho); color:var(--ink)}
.stitle .grow{flex:1}
.paper{background:var(--card); border:1px solid var(--line); border-radius:3px}
.secrows{padding:2px 14px}
.secrow{display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--rule)}
.secrow:last-of-type{border-bottom:1.5px solid var(--ink)}
.secrow .nm{flex:1; min-width:0}
.secrow .nm b{display:block; font:800 15px/1.3 var(--mincho)}
.secrow .nm span{display:block; font-size:12.5px; color:var(--muted); font-weight:500}
.secrow .v{font:700 14px var(--mincho); white-space:nowrap}
.sectotal{padding:10px 0; text-align:right; font:700 14px var(--mincho)}
.chips{display:flex; flex-wrap:wrap; gap:8px}
.chip{min-height:38px; padding:0 14px; border:1px solid var(--line); border-radius:3px; background:var(--card); cursor:pointer; font:500 14px var(--gothic)}
@media (hover:hover){ .chip:hover{border-color:var(--ink)} }
.chip[aria-pressed="true"]{background:var(--ink); color:var(--bg); border-color:var(--ink)}
.chip[disabled]{opacity:.45; cursor:default}
.note{margin-top:8px; font-size:13px; line-height:1.5; color:var(--muted)}
.note.pen{color:var(--pen-text)}
.rules{display:flex; flex-direction:column; gap:8px; margin-top:4px}
.rules li{position:relative; padding-left:18px; font-size:14.5px; line-height:1.55}
.rules li::before{content:"•"; position:absolute; left:2px; top:0; color:var(--pen-text)}

/* how many of each type */
.kinds{padding:2px 6px 2px 14px}
.krow{display:flex; align-items:center; gap:10px; padding:6px 0; border-bottom:1px solid var(--rule)}
.krow:last-child{border-bottom:0}
.krow .nm{flex:1; min-width:0}
.krow .nm b{display:block; font:800 14.5px/1.3 var(--mincho); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.krow .nm span{display:block; font-size:12px; color:var(--muted); font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.stepper{display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:3px; background:var(--bg)}
.stepper button{width:40px; height:40px; border:0; background:none; cursor:pointer; font:700 20px/1 var(--gothic); color:var(--ink)}
@media (hover:hover){ .stepper button:hover{background:var(--sel)} }
.stepper button[disabled]{opacity:.3; cursor:default}
.stepper output, .stepper input{width:46px; height:40px; border:0; border-left:1px solid var(--line); border-right:1px solid var(--line); background:var(--card); text-align:center; font:800 16px var(--mincho); padding:0}
/* No browser arrows in the number: − and + are the stepper's own (Firefox draws them otherwise). */
.stepper input{-moz-appearance:textfield; appearance:textfield}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button{-webkit-appearance:none; appearance:none; margin:0}

/* sources */
.search{position:relative; margin-bottom:8px}
.search .ico{position:absolute; left:12px; top:50%; transform:translateY(-50%); width:17px; height:17px; color:var(--muted)}
.search input{width:100%; height:42px; padding:0 12px 0 38px; border:1px solid var(--line); border-radius:3px; background:var(--card); font-size:14.5px}
.search input:focus{outline:2px solid var(--pen); outline-offset:0; border-color:transparent}
.srcs{padding:2px 8px; max-height:300px; overflow:auto}
.src{display:flex; align-items:center; gap:10px; min-height:42px; padding:0 4px; border-bottom:1px solid var(--rule); cursor:pointer}
.src:last-child{border-bottom:0}
.src input{width:18px; height:18px; accent-color:var(--ink); flex:none}
.src span{font:800 14.5px var(--mincho)}

/* the unlock sheet: the pass first, a free unlock as the quiet way out */
.unlock .sheet-body{padding-top:20px}
.unlock h3{font:800 19px/1.35 var(--mincho); margin:10px 0 12px}
.incl{display:flex; flex-direction:column; gap:6px; margin-bottom:16px}
.incl li{display:flex; gap:8px; align-items:flex-start; font-size:14px; line-height:1.45}
.incl .ico{width:17px; height:17px; color:var(--pen); margin-top:1px}
.text-btn{display:block; width:100%; min-height:44px; padding:8px; border:0; background:none; cursor:pointer; font:700 14.5px var(--gothic); color:var(--ink); border-radius:3px; text-align:center}
@media (hover:hover){ .text-btn:hover{background:var(--sel)} }
.text-btn.quiet{font-weight:500; font-size:13px; color:var(--muted)}

/* confirm dialog */
.confirm .sheet-body{padding:22px}
.confirm p{font-size:15.5px; line-height:1.55}
.confirm .row{display:flex; justify-content:flex-end; gap:10px; margin-top:20px}
.confirm .row .btn{min-height:42px; font-size:15px}

@media (max-width:640px){
  .sheet{padding:0; align-items:stretch}
  .sheet-in{max-width:none; max-height:none; height:100%; border:0; border-radius:0}
  .sheet-bar{padding-left:6px; min-height:56px}
  .sheet-bar .x-btn{order:-1}
  .sheet-body{padding:14px 16px 20px}
  .sheet-foot{padding:10px 16px calc(14px + env(safe-area-inset-bottom))}
  .sheet.small, .sheet.unlock, .sheet.confirm{align-items:flex-end}
  .sheet.small .sheet-in, .sheet.unlock .sheet-in, .sheet.confirm .sheet-in{height:auto; max-height:90vh; border-radius:10px 10px 0 0}
  .sheet h3.sh-title{font-size:22px}
}

/* ---------- the runner: one question at a time in one column, the answer sheet behind the n/N button
   (owner pick 2026-10-31, as the app's RunnerScreen) ---------- */
body.runner-mode .site-bar, body.runner-mode .site-foot{display:none}
body.runner-mode{min-height:100vh}
.rn{min-height:100vh; display:flex; flex-direction:column}
.rn-top{position:sticky; top:0; z-index:20; background:var(--bg); border-bottom:1px solid var(--line)}
.rn-top-in{max-width:1080px; margin:0 auto; padding:10px 40px 8px}
.rn-r1{display:flex; align-items:center; gap:14px; min-height:56px}
.rn-ttl{flex:1; min-width:0}
.rn-ttl b{display:block; font:800 22px/1.25 var(--mincho); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.rn-ttl span{display:block; font-size:13.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.rn-clock{display:flex; align-items:center; gap:10px; text-align:right}
.rn-clock .ico{width:22px; height:22px; color:var(--muted)}
.rn-clock b{display:block; font:800 38px/1 var(--mincho); font-feature-settings:"tnum" 1}
.rn-clock span{display:block; font-size:12.5px; color:var(--muted)}
.rn-clock.low b{color:var(--pen-text)}
.rn-r2{display:flex; align-items:center; gap:14px; margin-top:8px}
.sheet-btn{display:inline-flex; align-items:center; gap:10px; height:46px; padding:0 14px; border:1px solid var(--line); border-radius:3px; background:var(--card); cursor:pointer}
@media (hover:hover){ .sheet-btn:hover{border-color:var(--ink)} }
/* "3/6" as one figure on one baseline, as the app writes it; the gap is only between the icon and it (owner, 2026-11-07:
   "3 /6" sat apart, the total centred and not on the number's line) */
.sheet-btn .sb-n{display:inline-flex; align-items:baseline; color:var(--ink); line-height:1}
.sheet-btn b{font:800 22px/1 var(--mincho)}
.sheet-btn [data-qof]{font:700 15px/1 var(--mincho); color:var(--muted)}
.rn-prog{flex:1; height:4px; background:var(--chip); border-radius:2px; overflow:hidden}
.rn-prog i{display:block; height:100%; background:var(--ink); transition:width .2s}
.sq-btn{width:52px; height:46px; display:grid; place-items:center; border:1px solid var(--line); border-radius:3px; background:var(--card); cursor:pointer; font:700 19px var(--jp)}
@media (hover:hover){ .sq-btn:hover{border-color:var(--ink)} }
.sq-btn[aria-pressed="true"]{border:2px solid var(--ink)}
.sq-btn.flag[aria-pressed="true"]{background:var(--flag); border-color:var(--flag); color:#1E1C19}
/* the first question with readings: ふ lights up and says what it is (Runner.teachReadings) */
.sq-btn[data-furi]{position:relative}
.sq-btn.teach{border-color:var(--pen); box-shadow:0 0 0 4px var(--pen-wash); animation:furi-ring 1.2s ease-in-out 3}
@keyframes furi-ring{50%{box-shadow:0 0 0 8px var(--pen-wash), 0 0 0 2px var(--pen)}}
@media (prefers-reduced-motion:reduce){ .sq-btn.teach{animation:none} }
.furi-tip{position:absolute; top:calc(100% + 11px); right:-2px; z-index:30; white-space:nowrap; padding:7px 11px; background:var(--ink); color:var(--bg); border-radius:3px; font:500 13px/1.3 var(--gothic); pointer-events:none}
.furi-tip::before{content:""; position:absolute; right:20px; top:-6px; border:6px solid transparent; border-top:0; border-bottom-color:var(--ink)}
.rn-steps{display:flex; gap:6px 22px; flex-wrap:wrap; margin-top:10px; font-size:13px; color:var(--muted)}
.rn-steps li{display:inline-flex; align-items:center; gap:6px}
.rn-steps b{font:800 13.5px var(--mincho); color:var(--ink)}
.rn-steps .done .ico{width:14px; height:14px; color:var(--pen)}
.rn-steps .now::before{content:""; width:7px; height:7px; border-radius:50%; background:var(--ink)}
.rn-steps .next::before{content:""; width:7px; height:7px; border-radius:50%; border:1px solid var(--line)}
.rn-steps .now span{font-weight:700; color:var(--ink)}

.rn-body{flex:1; width:100%}
.rn-main{max-width:1080px; margin:0 auto; padding:30px 40px 40px}

/* Wide screens (owner pick 2026-10-31, "bar=on"): the site's bar stays over the runner's, both the
   site's width (.wrap), the runner's rule as wide as they are. Phones and tablets: the runner's bar only. */
@media (min-width:901px){
  body.runner-mode .site-bar{display:block}
  .rn-top{border-bottom:0}
  .rn-top-in, .rn-main{max-width:1200px; padding-left:32px; padding-right:32px}
  .rn-top-in{position:relative}
  .rn-top-in::after{content:""; position:absolute; left:32px; right:32px; bottom:0; height:1px; background:var(--line)}
}

.qh{display:flex; align-items:stretch; gap:20px; margin-bottom:18px}
.qh .num{font:800 56px/1 var(--mincho); min-width:44px; padding-right:20px; border-right:1px solid var(--line); display:flex; align-items:center}
.qh .kd{display:flex; flex-direction:column; justify-content:center; gap:4px; min-width:0}
.qh .kd .k1{display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.qh .kd .ar{font:700 13.5px var(--mincho); border:1px solid var(--ink); padding:0 6px; line-height:22px}
.qh .kd .kj{font:800 20px var(--mincho)}
.qh .kd .sub{font-size:13.5px; color:var(--muted)}
.instr{font:400 15px/2.2 var(--jp); color:var(--graphite); margin-bottom:12px}
.q-cols{display:block}
.q-cols.has-psg{display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:28px; align-items:start}
.psg{padding:18px 20px}
/* Only beside the question in the runner does the passage stay in view while the question scrolls; in the
   results' review it is an ordinary block above the question (sticky there, the choices ran over it). */
.q-cols.has-psg .psg{max-height:calc(100vh - var(--top-h, 170px) - 60px); overflow:auto; position:sticky; top:calc(var(--top-h, 170px) + 20px)}
.rev-detail .psg{margin-bottom:18px}
/* The passage is what a reading question is about: close to the choices' size, not far under the question's
   (owner, 2026-11-07: 17px under a 24px question and 21px choices looked much smaller). */
.psg h4{font:700 19px var(--jp); margin-bottom:8px}
.psg p{font:400 20px/2.1 var(--jp); text-indent:0}
.psg p + p{margin-top:6px}
/* The passage's layout (content format v3, owner 2026-11-10; 40-text.js layoutBlocks): right and centred lines, rules
   (above and below an email or a letter, as on the paper), gaps, and real tables whose ^ / < cells are merged. */
.psg .al-r, .psg-tr .al-r{text-align:right}
.psg .al-c, .psg-tr .al-c{text-align:center}
/* Content format v4 (owner 2026-11-12): indented lines ({+} one step, {++} two) and a cell's own alignment ({<} {>} {^}). */
.psg .al-i1, .psg-tr .al-i1{padding-left:2em}
.psg .al-i2, .psg-tr .al-i2{padding-left:4em}
.ptab td.al-l{text-align:left} .ptab td.al-r{text-align:right} .ptab td.al-c{text-align:center} .ptab td.top{vertical-align:top}
.psg .prule, .psg-tr .prule{border:0; border-top:2px solid var(--line); margin:12px 0}
.psg .pgap, .psg-tr .pgap{height:1.1em}
.ptab-wrap{overflow-x:auto; margin:10px 0; -webkit-overflow-scrolling:touch}
.ptab{border-collapse:collapse; min-width:100%; font:400 17px/1.9 var(--jp)}
.ptab td{border:1px solid var(--graphite); padding:4px 10px; vertical-align:middle; text-align:left}
.ptab td.sh, .ptab .nw{white-space:nowrap}
.ptab td .tr{display:block; font:400 13.5px/1.45 var(--gothic); color:var(--muted); margin-top:2px}
.psg-tr .ptab{font-size:15px}
.psg .psg-tr, .psg-tr-open{margin-top:14px; padding-top:12px; border-top:1px dashed var(--line)}
.psg-warn{margin-top:8px; font-size:12.5px; line-height:1.5; color:var(--muted)}
.psg-tr .pair{margin-top:8px}
.prompt{font:400 24px/2.4 var(--jp); margin:6px 0 18px; word-break:normal; overflow-wrap:anywhere}
.prompt.spoken{font-size:15px; line-height:1.6; color:var(--muted); font-family:var(--gothic)}
.qimg{display:block; max-width:min(100%, 560px); height:auto; margin:6px 0 16px; border:1px solid var(--line); border-radius:3px; background:#fff; cursor:zoom-in}
:root[data-theme="dark"] .qimg{filter:invert(.88) hue-rotate(180deg)}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .qimg{filter:invert(.88) hue-rotate(180deg)} }
.img-zoom{position:fixed; inset:0; z-index:80; background:rgba(0,0,0,.85); display:flex; align-items:center; justify-content:center; padding:20px; cursor:zoom-out}
.img-zoom img{max-width:100%; max-height:100%; background:#fff}

/* furigana */
ruby rt{font-size:.5em; color:var(--muted); font-family:var(--jp); line-height:1; -webkit-user-select:none; user-select:none}
.furi-off ruby rt{visibility:hidden}
u.tg{text-decoration:underline; text-decoration-thickness:1.5px; text-underline-offset:.28em}
.star{color:var(--pen)}

/* choices */
.choices{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:8px}
.choices.long{grid-template-columns:1fr}
.ch{position:relative; display:flex; align-items:center; gap:18px; min-height:80px; padding:12px 20px; border:1px solid var(--line); border-radius:3px; background:var(--card); cursor:pointer; text-align:left; width:100%}
@media (hover:hover){ .ch:hover{border-color:var(--ink)} }
.ch .no{flex:none; width:38px; height:38px; display:grid; place-items:center; border:1.5px solid var(--ink); border-radius:2px; font:800 19px var(--mincho)}
.ch .tx{font:400 21px/1.9 var(--jp); min-width:0; overflow-wrap:anywhere}
.ch .lab{display:block; font:700 12.5px/1.2 var(--gothic); margin-top:2px}
.ch[aria-checked="true"]{border:2px solid var(--ink); padding:11px 19px}
.ch[aria-checked="true"] .no{background:var(--ink); color:var(--bg)}
.ch[disabled]{cursor:default}
@media (hover:hover){ .ch[disabled]:hover{border-color:var(--line)} }
/* The pen's marks on the number, as a teacher marks a paper (app QuestionView.ChoiceCard, Marks.kt): the
   hand-drawn ○ rings the right digit from behind (46/28 of the box), the × is struck over the picked
   wrong one (38/28). Masks, so the red follows the theme. */
.ch.right{border:2px solid var(--pen); padding:11px 19px}
.ch.right .no, .ch.wrong .no{position:relative; z-index:0; background:none; color:var(--ink)}
.ch.right .no{border-color:transparent}
.ch.right .no::before, .ch.wrong .no::after{content:""; position:absolute; background:var(--pen); -webkit-mask:no-repeat center/100%; mask:no-repeat center/100%}
.ch.right .no::before{inset:-32%; z-index:-1;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.6 18.4C3.8 15.9 3.7 9.8 7.7 6.6c3.9-3 9.7-2.5 11.9 1.4 2.3 3.9.6 9-3.5 10.8-3.7 1.6-8.3.8-10.1-2.6-1.1-2.1 0-4.6 1.9-6' fill='none' stroke='%23000' stroke-width='1.15' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.6 18.4C3.8 15.9 3.7 9.8 7.7 6.6c3.9-3 9.7-2.5 11.9 1.4 2.3 3.9.6 9-3.5 10.8-3.7 1.6-8.3.8-10.1-2.6-1.1-2.1 0-4.6 1.9-6' fill='none' stroke='%23000' stroke-width='1.15' stroke-linecap='round'/%3E%3C/svg%3E")}
.ch.wrong .no::after{inset:-18%;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.8 5.6c4 4.1 8 8.5 12.7 13.2M18.4 5.4c-4.7 4-8.6 8.3-13 13.6' fill='none' stroke='%23000' stroke-width='1.52' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.8 5.6c4 4.1 8 8.5 12.7 13.2M18.4 5.4c-4.7 4-8.6 8.3-13 13.6' fill='none' stroke='%23000' stroke-width='1.52' stroke-linecap='round'/%3E%3C/svg%3E")}
.ch.right .lab{color:var(--pen-text)}
.ch.wrong{border:1px solid var(--line); padding:12px 20px}
.ch.wrong .tx{text-decoration:line-through; text-decoration-color:var(--pen); color:var(--muted)}
.ch.wrong .lab{color:var(--pen-text)}
.ch.spoken .tx{font-family:var(--gothic); font-size:15px; color:var(--muted)}

/* the player */
.player{padding:12px 12px 6px; margin:0 0 16px}
.pl-row{display:flex; align-items:center; gap:12px}
.pl-play{width:46px; height:46px; margin:3px; border-radius:50%; border:0; background:var(--ink); color:var(--bg); display:grid; place-items:center; cursor:pointer; flex:none}
.pl-play .ico{width:22px; height:22px}
.pl-bar{flex:1; min-width:0; display:flex; flex-direction:column; gap:2px}
.pl-bar input{width:100%; accent-color:var(--pen)}
.pl-time{display:flex; justify-content:space-between; font:700 12px var(--mincho); color:var(--muted); font-feature-settings:"tnum" 1}
/* ⟲ 5 / 5 ⟳ (app SkipButton): the seconds sit inside the open circle */
.pl-ctl{display:flex; align-items:center; gap:2px; padding-left:52px}
.pl-skip{width:44px; height:44px; display:grid; place-items:center; border:0; background:none; border-radius:50%; cursor:pointer; color:var(--ink)}
.pl-skip > *{grid-area:1/1}
.pl-skip .ico{width:30px; height:30px; stroke-width:1.6}
.pl-skip small{font:700 10px/1 var(--gothic); padding-top:2px}
@media (hover:hover){ .pl-skip:hover{background:var(--sel)} }
.pl-speed{height:34px; margin-left:8px; border:1px solid var(--line); border-radius:3px; background:var(--card); padding:0 6px; font:700 14px var(--mincho)}
/* the volume: the speaker (mute) and its slider, at the row's right end */
.pl-vol{display:flex; align-items:center; gap:2px; margin-left:auto; padding-right:4px}
.pl-mute .ico{width:24px; height:24px}
.pl-mute[aria-pressed="true"]{color:var(--muted)}
.pl-vol input{width:110px; accent-color:var(--pen)}
.pl-msg{margin:2px 0 6px; font-size:13.5px; color:var(--muted)}
.pl-msg.err{color:var(--pen-text)}
.awin{display:flex; align-items:center; gap:10px; margin:-6px 0 16px; font-size:14px; color:var(--muted)}
.awin b{font:800 18px var(--mincho); color:var(--ink); font-feature-settings:"tnum" 1}
.awin.low b, .awin.up{color:var(--pen-text)}
.awin .ico{width:18px; height:18px}

.rn-nav{display:grid; grid-template-columns:auto minmax(0,1fr); gap:12px; margin-top:34px}
.rn-nav .btn{min-height:58px; font-size:17px}
.rn-nav .prev{min-width:110px}
.rn-nav .prev b, .rn-nav .next b{font:800 22px var(--mincho)}
.rn-nav .next{justify-content:space-between; padding:0 24px}
.rn-hint{display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-top:12px; font-size:13px; color:var(--muted)}
.rn-hint .link{font-size:14px; color:var(--ink)}

/* answer sheet */
.as-h{display:flex; align-items:baseline; gap:10px; flex-wrap:wrap}
.as-h b{font:800 24px var(--mincho)}
.as-h span{font:800 16px var(--mincho); color:var(--muted)}
.as-sub{margin-top:4px; font-size:13px; color:var(--muted)}
.legend{display:flex; flex-wrap:wrap; gap:6px 16px; margin:14px 0 6px; font-size:12.5px; color:var(--muted)}
.legend span{display:inline-flex; align-items:center; gap:6px}
.legend i{width:16px; height:12px; border-radius:2px; border:1px solid var(--line); background:var(--card)}
.legend i.a{background:var(--ink); border-color:var(--ink)}
.legend i.f{background:var(--ink); border-color:var(--ink); box-shadow:inset -5px 5px 0 -2px var(--flag)}
.legend i.c{border:1.5px dashed var(--pen)}
.mondai{margin-top:14px}
.mondai h5{font:800 13px/1.3 var(--mincho); margin-bottom:6px}
.mondai h5 span{font-family:var(--gothic); font-weight:500; color:var(--muted); margin-left:6px}
.cells{display:grid; grid-template-columns:repeat(5,minmax(0,1fr)) 26px; gap:6px; align-items:center}
.cell{position:relative; height:36px; border:1px solid var(--line); border-radius:2px; background:var(--card); cursor:pointer; font:800 14px var(--mincho); color:var(--ink); padding:0}
@media (hover:hover){ .cell:hover{border-color:var(--ink)} }
.cell.ans{background:var(--ink); color:var(--bg); border-color:var(--ink)}
.cell.flag::after{content:""; position:absolute; right:0; top:0; border-style:solid; border-width:0 9px 9px 0; border-color:transparent var(--flag) transparent transparent}
.cell.cur{border:1.5px dashed var(--pen)}
.cell.ok{box-shadow:inset 0 -3px 0 var(--pen)}
.cell.closed{opacity:.55}
.cells .tl{width:22px; height:22px; justify-self:center; stroke-width:3.4px}
.as-sum{margin-top:16px; padding-top:12px; border-top:1px solid var(--line); text-align:center; font:700 14px var(--mincho)}
.as-foot{margin-top:12px}
.as-foot .btn{width:100%}

/* section break, finish */
.brk{max-width:560px; margin:10vh auto 0; padding:34px 30px; text-align:center}
.brk .bl{justify-content:center; font-size:16px}
.brk .bl b{font-size:1.6em}
.brk p{margin-top:14px; font-size:16px; color:var(--muted)}
.brk p b{color:var(--ink)}
.brk .btn{margin-top:24px; min-width:240px}

/* The answer sheet over the question: a panel from the right; on phones the app's bottom sheet with its
   handle (drag down to close), rows of five with the 正 column ruled off. */
.as-over{position:fixed; inset:0; z-index:50; background:var(--scrim); display:flex; justify-content:flex-end}
.as-pan{position:relative; width:min(420px, 100%); height:100%; overflow:auto; overscroll-behavior:contain; background:var(--bg); padding:22px 22px 28px; box-shadow:-10px 0 30px rgba(0,0,0,.12)}
.as-x{position:absolute; right:10px; top:12px}
.as-pan .as-h{padding-right:44px}
.as-grab{display:none}
.cells.flat{margin-top:12px; padding-top:12px; border-top:1px solid var(--line); background:linear-gradient(var(--rule), var(--rule)) no-repeat calc(100% - 29px) 12px / 1px calc(100% - 12px)}
@keyframes as-up{from{transform:translateY(100%)}}

@media (max-width:1000px){
  .q-cols.has-psg{display:block}
  .q-cols.has-psg .psg{position:static; max-height:none; overflow:visible}
  .psg{margin-bottom:18px}
}
@media (max-width:640px){
  .rn-top-in{padding:6px 12px 6px}
  .rn-r1{gap:8px; min-height:48px}
  .rn-ttl b{font-size:16.5px}
  .rn-ttl span{font-size:12px}
  .rn-clock .ico{display:none}
  .rn-clock b{font-size:24px}
  .rn-clock span{font-size:11px}
  .rn-r2{gap:8px; margin-top:4px}
  .sheet-btn{height:40px; padding:0 10px}
  .sheet-btn b{font-size:18px}
  .sq-btn{width:42px; height:40px; font-size:16px}
  .rn-steps{display:none}
  .rn-main{padding:18px 16px 110px}
  .qh{gap:12px; margin-bottom:12px}
  .qh .num{font-size:40px; min-width:30px; padding-right:12px}
  .qh .kd .kj{font-size:16.5px}
  .qh .kd .sub{font-size:12.5px}
  .instr{font-size:13.5px; line-height:2}
  .prompt{font-size:19px; line-height:2.3}
  .psg{padding:14px}
  .psg h4{font-size:17px}
  .psg p{font-size:17px; line-height:2.1}
  .ptab{font-size:14px; line-height:1.75}
  .ptab td{padding:3px 5px}
  .ptab td.sh{white-space:normal}  /* a phone: short cells wrap too, so a five-column table fits without scrolling */
  .choices{grid-template-columns:1fr; gap:10px}
  .ch{min-height:60px; gap:14px; padding:10px 14px}
  .ch[aria-checked="true"], .ch.right{padding:9px 13px}
  .ch.wrong{padding:10px 14px}
  .ch .no{width:32px; height:32px; font-size:16px}
  .ch .tx{font-size:18px}
  /* A plain fixed bar. A layer of its own (will-change, 2026-11-07) did not stop it jumping with the phone browser's
     toolbar, so it went again (owner, 2026-11-10: the small jump stays). */
  .rn-nav{position:fixed; left:0; right:0; bottom:0; z-index:15; margin:0; padding:10px 12px calc(10px + env(safe-area-inset-bottom)); background:var(--bg); border-top:1px solid var(--line)}
  .rn-nav .btn{min-height:50px}
  .rn-nav .prev{min-width:80px}
  .rn-hint .keys{display:none}
  .player{padding:10px 10px 4px}
  .pl-ctl{padding-left:0}
  .pl-vol input{width:76px}
  .brk{margin-top:8vh; padding:26px 18px}
  .as-over{align-items:flex-end; justify-content:stretch}
  .as-over.closing{background:transparent; transition:background .18s}
  .as-pan{width:100%; height:auto; max-height:92vh; padding:0 20px calc(22px + env(safe-area-inset-bottom)); border-radius:14px 14px 0 0; box-shadow:0 -10px 30px rgba(0,0,0,.15); animation:as-up .22s ease-out}
  .as-grab{display:block; position:sticky; top:0; z-index:1; height:30px; margin:0 -20px; background:var(--bg); touch-action:none; cursor:grab}
  .as-grab::before{content:""; display:block; width:40px; height:4px; margin:12px auto 0; border-radius:2px; background:var(--line)}
  .as-x{top:32px; right:10px}
  .as-pan .as-h b{font-size:21px}
}
@media (prefers-reduced-motion:reduce){ .as-pan{animation:none} }

/* ---------- feedback under a question: explanation, translation, script, locks (FeedbackBlock.kt) ---------- */
.fb{margin-top:22px; display:flex; flex-direction:column; gap:14px}
.fb-verdict{display:flex; align-items:center; gap:10px; font-weight:700; font-size:16px}
.fb-verdict .mk{width:24px; height:24px}
.fb-verdict.ok{color:var(--ink)}
.fb-verdict.no{color:var(--pen-text)}
.fb-card{padding:16px 18px}
.fb-card .hd{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px}
.fb-card .hd .bl{font-size:14px}
.fb-card .hd .bl b{font-size:1.3em}
.fb-card .ansl{font-size:13px; color:var(--muted); margin-bottom:6px}
/* An explanation: no ruled lines (owner, 2026-11-01), the paragraphs a little apart, readings as ordinary ruby.
   Readings off: they take no room at all (hidden ones would still make their lines taller), the plain spacing. */
.fb-text{--lh:28px; font-size:15.5px; line-height:var(--lh)}
.fb-text.has-ruby{--lh:36px}
.furi-off .fb-text.has-ruby{--lh:28px}
.fb-text p + p{margin-top:6px}
.fb-text p.bul{padding-left:14px; text-indent:-12px}
.fb-text ruby rt{font-size:.6em; line-height:1}
.furi-off .fb-text rt{display:none}
/* Kept for later, off (owner, 2026-11-01): ruled paper. ?lines=1 turns it on in one browser, ?lines=0 off (base.html).
   One rule under each line of text, the same distance under the letters on every line, readings on or off:
   - Every line exactly --lh high. Readings are out of the text's flow, above their word (noteLine, 40-text.js), so
     no browser can make a line taller for them (WebKit made a paragraph's first line 7 px taller, moving all its rules).
   - The rule lifted as far as the taller line lifts the letters: a line's letters sit in its middle, so going
     from 28 to 36 px puts them 4 px higher, and --lift takes the rule up with them.
   The rule is one gradient over the whole paragraph, not a repeated 1-line tile: on a phone's fractional pixel
   ratio a tile's height is rounded, and that error would add up line by line. */
:root[data-note-lines="on"] .fb-text{--lift:0px}
:root[data-note-lines="on"] .fb-text.has-ruby{--lift:4px}
:root[data-note-lines="on"] .furi-off .fb-text.has-ruby{--lift:0px}
:root[data-note-lines="on"] .fb-text p + p{margin-top:0}
:root[data-note-lines="on"] .fb-text p{background:repeating-linear-gradient(to bottom,
  transparent 0, transparent calc(var(--lh) - var(--lift) - 1px),
  var(--rule) calc(var(--lh) - var(--lift) - 1px), var(--rule) calc(var(--lh) - var(--lift)),
  transparent calc(var(--lh) - var(--lift)), transparent var(--lh))}
.nr{position:relative; white-space:nowrap; margin-left:var(--room, 0)}
.nk{position:absolute; left:50%; bottom:100%; margin-bottom:-2px; transform:translateX(-50%); width:max-content; font:400 .6em/1 var(--jp); color:var(--muted); text-indent:0; pointer-events:none; -webkit-user-select:none; user-select:none}
.furi-off .nr{margin-left:0}
.furi-off .nk{display:none}
.lang-seg{display:inline-flex; border:1px solid var(--line); border-radius:3px; overflow:hidden}
.lang-seg button{border:0; border-left:1px solid var(--line); background:none; padding:3px 10px; font:700 12px var(--gothic); cursor:pointer}
.lang-seg button:first-child{border-left:0}
.lang-seg button[aria-pressed="true"]{background:var(--ink); color:var(--bg)}
.tr-pair{margin-top:6px}
.tr-pair .ja{font:400 15px/2 var(--jp); color:var(--muted)}
.tr-pair .tr{font-size:15.5px; line-height:1.6}
.tr-ch{display:grid; grid-template-columns:22px minmax(0,1fr); gap:8px; margin-top:6px; font-size:15px}
.tr-ch b{font:800 15px var(--mincho); color:var(--pen-text)}
.script{white-space:pre-wrap; font:400 15.5px/2.1 var(--jp)}
.locked{display:flex; align-items:center; gap:14px; width:100%; padding:14px 16px; border:1px dashed var(--line); border-radius:3px; background:var(--card); cursor:pointer; text-align:left}
@media (hover:hover){ .locked:hover{border-style:solid; border-color:var(--ink)} }
.locked .ico{color:var(--muted)}
.locked .t{flex:1; min-width:0}
.locked .t b{display:block; font-size:15px}
.locked .t span{display:block; font-size:12.5px; font-weight:700; color:var(--pen-text)}
.locked .t span.muted{color:var(--muted); font-weight:500}
.fb-foot{display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap}
.report-btn{display:inline-flex; align-items:center; gap:6px; border:0; background:none; cursor:pointer; color:var(--muted); font-size:13.5px; padding:6px 0}
@media (hover:hover){ .report-btn:hover{color:var(--ink)} }
.report-btn .ico{width:16px; height:16px}
.report-form{display:flex; flex-direction:column; gap:8px}
.report-form textarea{width:100%; min-height:80px; padding:10px 12px; border:1px solid var(--line); border-radius:3px; background:var(--card); font-size:14.5px}

/* ---------- results (concept 01 #results, round 2: no tally board) ---------- */
.res-h{display:flex; align-items:center; gap:12px; padding:26px 0 4px}
.res-h .back{width:40px; height:40px; display:grid; place-items:center; border-radius:3px}
@media (hover:hover){ .res-h .back:hover{background:var(--sel)} }
.res-h h1{flex:1; font-size:18px}
.res-h h1.bl b{font-size:1.65em}
.res-meta{margin:2px 0 0 52px; font-size:14px; color:var(--muted)}
/* "Review answers" up top: where the questions are, and how many were missed */
.rev-jump{display:flex; align-items:center; gap:12px; max-width:560px; margin:14px 0 0 52px; padding:11px 16px; border:1px solid var(--line); border-radius:3px; background:var(--card); color:var(--ink); text-decoration:none}
@media (hover:hover){ .rev-jump:hover{border-color:var(--ink)} }
.rev-jump > .ico{flex:none; width:22px; height:22px}
.rev-jump .t{flex:1; min-width:0}
.rev-jump .t b{display:block; font-size:15px}
.rev-jump .t small{display:block; font-size:13px; line-height:1.4; color:var(--muted)}
.rev-jump .n{display:flex; align-items:center; gap:4px; flex-wrap:wrap; justify-content:flex-end; font:800 19px var(--mincho); color:var(--pen-text); white-space:nowrap}
.rev-jump .n .mk{width:18px; height:18px}
.rev-jump .n span{margin-left:4px; font:500 12.5px var(--gothic); color:var(--muted)}
.rev{scroll-margin-top:12px}
.rev-end{margin-top:34px; padding-top:22px; border-top:1px solid var(--line)}
.res-banner{margin-top:20px; padding:18px 22px; background:var(--pen-wash); border-radius:3px; display:flex; align-items:center; gap:16px; flex-wrap:wrap}
.res-banner b{font:800 22px var(--mincho)}
.res-banner span{color:var(--muted); font-size:14.5px}
.res-grid{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:56px; margin-top:30px; align-items:start}
.score-lab{font-size:13.5px; color:var(--muted)}
.score-lab b{font:800 15px var(--mincho); color:var(--ink); margin-left:6px}
.score-row{display:grid; grid-template-columns:auto minmax(0,1fr); gap:30px; align-items:end; margin-top:6px}
.big{display:inline-flex; align-items:baseline; padding-bottom:6px; border-bottom:3px double var(--pen)}
.big b{font:800 104px/0.95 var(--mincho); letter-spacing:-.03em; font-feature-settings:"tnum" 1}
.big span{font:800 30px var(--mincho); color:var(--muted)}
.kv > div{display:flex; justify-content:space-between; align-items:baseline; gap:10px; padding:10px 0; border-bottom:1px solid var(--rule)}
.kv > div span{font-size:13.5px; color:var(--muted)}
.kv > div b{font:800 24px var(--mincho); font-feature-settings:"tnum" 1}
.kv > div b.v{font:700 15px var(--gothic); display:inline-flex; align-items:center; gap:6px}
.ruler{position:relative; height:116px; margin:30px 8px 0}
.rl-axis{position:absolute; left:0; right:0; top:58px; border-top:1.5px solid var(--ink)}
.rl-tick{position:absolute; top:52px; height:13px; border-left:1.5px solid var(--ink)}
.rl-range{position:absolute; top:30px; height:13px; border:2px solid var(--pen); border-bottom:0}
.rl-range span{position:absolute; bottom:100%; left:50%; transform:translateX(-50%); padding-bottom:4px; white-space:nowrap; font:800 14px var(--mincho); color:var(--pen-text)}
.rl-pass{position:absolute; top:42px; height:34px; border-left:2px solid var(--ink)}
.rl-you{position:absolute; top:48px; width:21px; height:21px; margin-left:-10px; border-radius:50%; border:2.5px solid var(--pen); background:radial-gradient(circle, var(--pen) 0 3.5px, var(--bg) 4.5px)}
.rl-lab{position:absolute; top:80px; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; line-height:1.2; font-size:12px; color:var(--muted); white-space:nowrap}
.rl-lab small{font:500 11.5px var(--gothic)}
.rl-lab.first{left:0; transform:none}
.rl-lab.last{right:0; transform:none}
.rl-lab.b{font:800 15px var(--mincho); color:var(--ink)}
.rl-lab.p{font:800 15px var(--mincho); color:var(--pen-text)}
.r-hint{margin-top:8px; font-size:12.5px; color:var(--muted); line-height:1.5}
.callout{margin-top:22px; padding:16px 18px; border-left:3px solid var(--pen); background:var(--card); border-radius:0 3px 3px 0}
.callout .h{display:flex; align-items:center; gap:6px; font-weight:700; font-size:15px}
.callout p{margin-top:6px; font-size:14.5px; line-height:1.6; color:var(--muted)}
.callout.border{border-left-color:var(--ochre)}
.callout.border .h{color:var(--ochre)}
.callout.not .h{color:var(--pen-text)}
.callout.safe{border-left-color:var(--ink)}
.secs-h, .lost-h{display:flex; align-items:baseline; gap:10px; padding-bottom:8px}
.secs-h .bl, .lost-h .bl{font-size:15px}
.secs-h .bl b, .lost-h .bl b{font-size:1.35em}
.sect{width:100%; border-collapse:collapse}
.sect th{font:500 12px var(--gothic); color:var(--muted); text-align:right; padding:0 0 6px; border-bottom:1.5px solid var(--ink)}
.sect th:first-child{text-align:left}
.sect td{padding:12px 0; border-bottom:1px solid var(--rule); vertical-align:middle}
.sect td.nm{display:flex; gap:12px; align-items:flex-start}
.sect td.nm .mk{margin-top:4px}
.sect td.nm b{display:block; font:800 16px var(--mincho)}
.sect td.nm span{display:block; font-size:12.5px; color:var(--muted)}
.sect td.nm em{display:block; font-style:normal; font-size:12.5px; font-weight:700}
.sect td.sc{text-align:right; white-space:nowrap}
.sect td.sc b{font:800 24px var(--mincho)}
.sect td.sc small{font:700 13px var(--mincho); color:var(--muted)}
.sect td.mn{text-align:right; width:52px; font:700 15px var(--mincho); color:var(--muted)}
.lost{margin-top:30px}
.lost li{display:grid; grid-template-columns:auto minmax(20px,1fr) auto; gap:10px; align-items:end; padding:8px 0}
.lost li b{display:block; font:800 14.5px var(--mincho)}
.lost li span{display:block; font-size:12px; color:var(--muted)}
.lost li i{border-bottom:1.5px dotted var(--line); margin-bottom:6px}
.lost li em{font:800 22px var(--mincho); font-style:normal; color:var(--pen-text)}
.drill{margin-top:14px}
.res-note{margin-top:10px; font-size:12.5px; color:var(--muted)}
.res-acts{display:flex; flex-wrap:wrap; gap:10px; margin-top:22px}
.prac-score{margin-top:24px; display:flex; align-items:baseline; gap:12px; flex-wrap:wrap}
.prac-score b{font:800 64px/1 var(--mincho)}
.prac-score span{font:800 22px var(--mincho); color:var(--muted)}

.rev{margin-top:52px; padding-top:30px; border-top:1px solid var(--line)}
.rev-h{display:flex; justify-content:space-between; align-items:center; gap:12px 20px; flex-wrap:wrap}
.rev-h h2{font-size:17px}
.rev-h h2.bl b{font-size:1.45em}
.rev-tools{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin:16px 0}
.rev-tools .search{margin:0; min-width:260px}
.rev-grid{display:grid; grid-template-columns:360px minmax(0,1fr); gap:28px; align-items:start}
.rev-list{display:flex; flex-direction:column; gap:8px; max-height:calc(100vh - 120px); overflow:auto; position:sticky; top:16px; padding-right:4px}
.rev-sec{margin:10px 0 2px; font-size:13px; color:var(--muted)}
.rev-sec b{font:800 14px var(--mincho); color:var(--ink); margin-right:6px}
.rv{display:grid; grid-template-columns:34px minmax(0,1fr) 22px; gap:10px; align-items:center; padding:10px 12px; border:1px solid var(--line); border-radius:3px; background:var(--card); cursor:pointer; text-align:left; width:100%}
@media (hover:hover){ .rv:hover{border-color:var(--graphite)} }
.rv[aria-current="true"]{border:2px solid var(--ink); padding:9px 11px}
.rv > span:nth-child(2){min-width:0}
.rv .n{font:800 20px var(--mincho); text-align:center}
/* blocks, so a long line ends in "…" inside the row (an inline span ran out under the mark) */
.rv .k{display:block; font-size:11.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.rv .k b{font:800 12px var(--mincho); color:var(--ink); margin-right:4px}
.rv .s{display:block; font:400 14px var(--jp); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.rv .s rt{display:none}
.rv .mk{width:20px; height:20px}
.rv .mk.blank{color:var(--muted)}
.rev-detail{min-width:0}
.rev-empty{padding:40px 0; color:var(--muted)}
.rev-more{text-align:center; font-size:13px; color:var(--muted); padding:8px}

@media (max-width:1000px){
  .res-grid{grid-template-columns:1fr; gap:36px}
  .rev-grid{grid-template-columns:1fr}
  .rev-list{position:static; max-height:none; overflow:visible}
  .rev-list .rev-detail{margin:4px 0 14px; padding:14px 12px 16px; border-left:3px solid var(--ink); background:var(--bg)}
}
@media (max-width:640px){
  .res-h{padding-top:16px}
  .res-meta{margin-left:0}
  .rev-jump{margin-left:0; padding:10px 12px}
  .rev-end .btn{flex:1 1 100%}
  .res-banner{padding:14px 16px}
  .res-banner b{font-size:18px}
  .score-row{grid-template-columns:1fr; gap:10px}
  .big b{font-size:80px}
  .rev-tools .search{min-width:0; flex:1 1 100%}
  .rev-tools .seg{width:100%}
  .rev-tools .seg button{flex:1; padding:6px 4px; font-size:13px}
}

/* ---------- which progress to keep: this browser's or the account's (90-account.js askWhichCopy) ---------- */
.copy-choice h2{font:800 20px/1.3 var(--mincho); margin-bottom:8px}
.copy-opts{display:flex; flex-direction:column; gap:10px; margin-top:16px}
.copy-opt{display:block; width:100%; padding:14px 16px; text-align:left; background:var(--card); border:1px solid var(--line); border-radius:3px; color:var(--ink); cursor:pointer}
.copy-opt.rec{border:2px solid var(--ink); padding:13px 15px}
@media (hover:hover){ .copy-opt:hover{background:var(--sel)} }
.copy-h{display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:16px}
.copy-tag{flex:none; padding:2px 8px; background:var(--ink); color:var(--bg); border-radius:3px; font-size:12px; font-weight:700}
.copy-n{display:block; margin-top:4px; font-size:13.5px; color:var(--muted)}

/* ---------- account: sign in, the pass, a code, sync ---------- */
.acct{margin-top:18px; display:flex; flex-direction:column; gap:22px}
.acct-card{padding:20px 22px}
.acct-card h2{display:flex; font-size:15px; margin-bottom:10px}
.acct-card h2.bl b{font-size:1.4em}
.acct-card p{font-size:15px; line-height:1.6}
.acct-card p + p{margin-top:8px}
/* Both sign-in buttons as one pair (owner, 2026-11-01). Google's is Google's own frame and cannot be styled, so
   Telegram's is its twin, value for value from Google's stylesheet (accounts.google.com/gsi/button, the "large"
   button, themes outline and filled_black): the same face, size, colours and corners, the logo 12 px in at 18 px,
   the words centred in what is left beside the logo. */
.signin-btns{display:flex; flex-direction:column; gap:10px; margin-top:16px; width:100%; max-width:300px}
.btn-signin{position:relative; display:flex; align-items:center; width:100%; height:40px; padding:0 12px; overflow:hidden; border:1px solid #dadce0; border-radius:4px; background:#fff; color:#3c4043; font:500 14px/20px "Google Sans",arial,sans-serif; letter-spacing:.25px; white-space:nowrap; cursor:pointer}
.btn-signin::before{content:""; position:absolute; inset:0; transition:background-color .218s}
@media (hover:hover){ .btn-signin:hover::before{background:rgba(66,133,244,.08)} }
.btn-signin:active::before{background:rgba(66,133,244,.1)}
.btn-signin .ico{width:18px; height:18px; min-width:18px; margin-right:8px}
.btn-signin span{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; text-align:center}
/* Dark: Google's filled_black, the logo on a white tile; the card behind is as dark as the button, so both get an edge. */
:root[data-theme="dark"] .btn-signin{border-color:#202124; background:#202124; color:#e8eaed}
:root[data-theme="dark"] .btn-signin .ico{box-sizing:content-box; padding:9px; margin:0 12px 0 -11px; border-radius:3px 0 0 3px; background:#fff}
:root[data-theme="dark"] .gsi, :root[data-theme="dark"] .btn-signin{box-shadow:0 0 0 1px var(--line)}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .btn-signin{border-color:#202124; background:#202124; color:#e8eaed}
  :root:not([data-theme="light"]) .btn-signin .ico{box-sizing:content-box; padding:9px; margin:0 12px 0 -11px; border-radius:3px 0 0 3px; background:#fff}
  :root:not([data-theme="light"]) .gsi, :root:not([data-theme="light"]) .btn-signin{box-shadow:0 0 0 1px var(--line)}
}
.btn-tg{background:#2AABEE; color:#fff}
@media (hover:hover){ .btn-tg:hover{background:#229ED9} }
/* color-scheme: on a dark page, Google's light frame would get an opaque white canvas around the button. */
.gsi{min-height:40px; border-radius:4px; color-scheme:light}
.tg-box{margin-top:16px; padding:16px 18px; border:1px solid var(--line); border-radius:3px; background:var(--bg)}
.tg-code{display:flex; align-items:baseline; gap:12px; margin:8px 0}
.tg-code b{font:800 40px/1 var(--mincho); letter-spacing:.12em}
.tg-box .row{display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:12px}
.tg-hint{margin-top:12px; padding-top:10px; border-top:1px dashed var(--line)}
.msg[data-bot-blocked] a{color:inherit}
.spin{display:inline-block; width:14px; height:14px; border:2px solid var(--line); border-top-color:var(--pen); border-radius:50%; animation:spin 1s linear infinite; vertical-align:-2px; margin-right:6px}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){ .spin{animation:none} }
.who{display:flex; align-items:center; gap:14px}
.who .av{width:44px; height:44px; border-radius:50%; background:var(--ink); color:var(--bg); display:grid; place-items:center; font:800 20px var(--mincho); flex:none}
.who b{display:block; font-size:17px}
.who span{display:block; font-size:13.5px; color:var(--muted)}
.ids{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}
.pass-line{display:flex; align-items:center; gap:10px; font-weight:700}
.pass-line .ico{color:var(--pen)}
.redeem{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.redeem input{flex:1; min-width:180px; height:46px; padding:0 14px; border:1px solid var(--line); border-radius:3px; background:var(--bg); font:700 17px var(--gothic); letter-spacing:.08em; text-transform:uppercase}
.redeem input:focus{outline:2px solid var(--pen); outline-offset:0; border-color:transparent}
.msg{margin-top:10px; font-size:14px}
.msg.err{color:var(--pen-text)}
.msg.ok{color:var(--ink); font-weight:700}
.acct-acts{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.danger{color:var(--pen-text)}
.signin-btns:empty{display:none}

/* The usage statistics' switch (92-stats-switch.js), on this page and the privacy page */
.stats-sw > .stitle:first-child{margin-top:0}
.stats-sw .note{margin:6px 0 0}
.prose .stats-sw .stitle{margin:18px 0 8px}
.prose .stats-sw > .stitle:first-child{margin-top:0}
