/* v2.7 live UI: keep the v2.6 visual identity, not its client-side mock authorization. */
:root{--body-font:16px;--rail:#071033;--brand:#123de1;--ink:#161d30;--muted:#536581;--line:#dce2ed;--bg:#f5f7fc;--accent:#7fe8ff}
body{font-size:var(--body-font)}.btn{font-size:14px;min-height:46px;border-radius:7px}.btn .ico{width:16px}.lead{font-size:16px}.meta,.small-note{font-size:13px}.chip{font-size:12px}.field>span{font-size:14px}.text-link{font-size:14px}.section-head h2{font-size:24px}.ico{width:19px;height:19px}.brand-symbol{font:bold 29px/1 Arial;background:#35d2f0}.brand-type{font-size:16px}.brand{padding-bottom:24px}.nav-link{font-size:14px;min-height:46px}.nav-label{font-size:10px}.nav-link.active{background:#17264f;color:#7fe8ff;box-shadow:inset 3px 0 #35d2f0}.nav-link.active:after{display:none}.profile #profileName{font-size:13px}.side-note{font-size:12px}.sidebar{width:226px}.workspace{margin-left:226px}.topbar{height:82px;padding:12px 36px;gap:20px}.top-location{font-size:11px}.workspace-context{margin-left:auto;border:0;display:flex;align-items:center;gap:9px;padding:0}.workspace-context select{font-size:13px;padding:9px;max-width:200px}.workspace-context>span{font-size:11px}.live-edition{color:#235884;font-size:11px;white-space:nowrap}.site-footer{font-size:11px}.site-footer span:last-child{max-width:420px}main{padding:30px 36px 55px}.pagehead{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.pagehead h1{font-size:31px;margin:4px 0 9px;line-height:1.5}.pagehead p{font-size:14px;color:var(--muted);max-width:690px;margin:0}.eyebrow{font-size:10px;color:var(--brand);margin:0 0 9px}.btn-row{display:flex;flex-wrap:wrap;gap:10px}.info-note{display:flex;gap:10px;font-size:13px;color:#426080;border:1px solid #d4e2f5;background:#edf3fc;border-radius:9px;padding:14px 18px;margin:15px 0}.info-note .ico{flex:none}.metrics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0}.metric{padding:20px 23px;background:#fff;border:1px solid var(--line);border-radius:10px}.metric strong{font:400 35px/1.3 Arial;color:#123879;display:block}.metric small{font-size:12px;color:var(--muted)}.resume-hero{background:linear-gradient(130deg,#0b163b,#162c58);color:white;border-radius:13px;padding:28px 32px;margin-bottom:25px;display:flex;justify-content:space-between;align-items:center;gap:20px}.resume-hero h2{font-size:24px;margin:8px 0}.resume-hero p{color:#c4d5ef;margin:5px 0;font-size:14px}.resume-hero .eyebrow{color:#7fe8ff}.resume-hero .btn{background:#7fe8ff;border-color:#7fe8ff;color:#071033}.resume-hero .btn.secondary{background:transparent;color:white;border-color:#6a81ac}.resume-hero .btn-row{flex:none}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.resource-card{padding:22px;background:white;border:1px solid var(--line);border-radius:12px}.resource-card h3{margin:12px 0 7px;font-size:18px}.resource-card p{color:var(--muted);font-size:14px;margin-bottom:17px}.resource-card .btn-row{margin-top:15px}.resource-card:hover{border-color:#8da5cd}.status{font-size:11px;display:inline-flex;gap:5px;align-items:center;padding:4px 9px;border-radius:5px;background:#edf0f6;color:#4a5d79}.status.ok{background:#eaf5f1;color:#21634e}.status.warn{background:#fff2dc;color:#775122}.status.purple{background:#f0edfa;color:#654694}.history-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}.history-row h3{font-size:16px;margin:0 0 5px}.history-row p{font-size:13px;color:var(--muted);margin:0}.history-row .btn{flex:none}.empty{font-size:15px;padding:28px;border-radius:10px}.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.editor-grid .field{margin-bottom:18px}.editor-grid textarea{min-height:270px;font-size:15px}.monospace{font-family:ui-monospace,Consolas,monospace!important;font-size:13px!important}.form-error{padding:13px 15px;background:#fff0eb;color:#843f28;border:1px solid #eac8b7;border-radius:7px;font-size:14px;margin:14px 0}.form-ok{padding:13px;background:#eaf5f1;color:#21634e;border-radius:7px;font-size:14px}.save-strip{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:12px 0 20px;padding:10px 15px;background:#f0f4fb;border-radius:7px;font-size:12px;color:#486385}.save-strip.error{background:#fff1e4;color:#825024}.save-strip button{border:1px solid currentColor;border-radius:5px;background:white;font-size:12px;min-height:34px;padding:6px 10px}.toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:90;max-width:min(580px,calc(100vw - 32px));padding:16px 24px;background:#102548;color:#fff;box-shadow:0 8px 32px #07103333;border-radius:10px;font-size:14px}.toast.error{background:#763f2e}.auth-page .sidebar,.auth-page .topbar,.auth-page .site-footer{display:none}.auth-page .workspace{margin-left:0}.auth-page main{padding:30px 20px;max-width:1120px}.auth-layout{margin:20px auto;min-height:650px}.auth-story h2{font-size:36px}.auth-form{padding:35px}.auth-form p{font-size:14px}.auth-form input{font-size:16px;min-height:48px}.auth-form .field{margin-top:6px}.auth-form .brand-type{font-size:14px}.auth-links{display:flex;justify-content:space-between;gap:14px;font-size:13px;margin-top:22px}.logout{border:1px solid #ced7e8;color:#334c78;background:white;padding:9px 15px;font-size:13px;border-radius:6px}.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 248px;gap:24px;align-items:start}.article-body{font-size:var(--body-font);line-height:2;padding:30px 34px}.article-body p{font-size:var(--body-font);white-space:pre-wrap;line-height:2}.article-body h1{font-size:26px}.article-body h2{font-size:23px;margin-top:30px;scroll-margin-top:20px}.article-body h3{font-size:18px;margin-top:24px}.article-body .source{border-top:1px solid var(--line);padding-top:18px;font-size:12px;color:var(--muted)}.article-toc{background:white;border:1px solid var(--line);border-radius:11px;padding:20px;position:sticky;top:20px}.article-toc a{display:block;font-size:13px;min-height:38px;padding:7px 0}.article-toc h3{font-size:15px}.article-toc summary{font-size:14px}.article-end{display:flex;flex-wrap:wrap;gap:12px;border-top:1px solid var(--line);margin-top:24px;padding-top:24px}.search-panel{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:20px 0}.search-panel .field{flex:1;margin:0;min-width:160px}.search-panel .btn{min-height:48px}.action-link{background:transparent;border:0;color:var(--brand);text-decoration:underline;padding:8px 0;font-size:13px;cursor:pointer}.quiz-topbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}.quiz-topbar strong{font-size:17px}.quiz-topbar span{font-size:12px;color:var(--muted)}.quiz-heading{font-size:22px!important;margin-bottom:12px}.quest-workspace{grid-template-columns:minmax(0,1fr) 240px}.question-panel{padding:26px 30px}.question-panel legend{font-size:clamp(18px,1.5vw,21px);line-height:1.75}.question-top{margin-bottom:19px}.question-count{font-size:25px}.review-mark{font-size:13px;min-height:42px}.question-mode{font-size:13px;margin-bottom:16px}.question-mode .chip{font-size:12px}.option{padding:14px 15px;align-items:flex-start;min-height:65px;gap:13px}.option input{position:static;opacity:1;width:21px;height:21px;flex:0 0 21px;margin-top:4px;accent-color:#123de1}.choice-letter{background:none!important;border:none!important;color:var(--muted)!important;width:15px;flex:0 0 15px;font:600 13px/1.85 Arial}.choice-text{font-size:var(--body-font);line-height:1.85;margin-top:0}.chosen-tick{display:none}.option:has(input:checked){background:#edf3ff;border-color:#315bea;box-shadow:inset 3px 0 #315bea}.question-bottom .btn{font-size:15px;min-height:48px;min-width:110px}.question-side .btn{font-size:13px;padding:12px 10px}.question-side .question-jumps button{height:40px;font-size:13px}.question-side h3{font-size:14px}.question-side .pass-rule{font-size:13px}.progress-track span{background:#2152d5}.mobile-quiz-summary{display:none}.question-side .quiet-note{font-size:12px}.selected-number{font-size:12px;color:#536b8d;margin-top:12px}.quiz-session .topbar{display:none}.quiz-session main{padding-top:25px}.quiz-session .site-footer{display:none}.quiz-session .save-strip{margin:0 0 16px}.review-card{border:1px solid var(--line);border-radius:8px;padding:17px;margin:14px 0}.review-card h3{font-size:15px}.review-card .my-answer{background:#f0f4fc;padding:12px;font-size:14px;margin:10px 0;line-height:1.85}.review-card .action-link{min-height:44px}.dialog-body{font-size:15px}.dialog-head h2{font-size:20px}.dialog-head .icon-button{min-width:44px;height:44px}.review-summary small{font-size:12px}.dialog-body .actions{position:sticky;bottom:-24px;background:#fff;padding:15px 0;border-top:1px solid var(--line)}.question-jumps.nav-question-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.nav-question-grid button{height:48px;font-size:15px}.result-hero{border-radius:12px;display:flex;gap:28px}.result-percent{font:400 56px/1.2 Arial;min-width:125px;text-align:center}.result-percent small{display:block;font:12px/1.8 sans-serif;margin-top:8px}.result-hero h1{font-size:28px}.result-hero.is-fail .eyebrow{color:#886638}.explanation-option{border-top:1px solid var(--line);padding:12px 0;font-size:14px}.explanation-option strong{display:block;font-size:13px}.quest-explanation{font-size:14px}.quest-explanation summary{font-size:15px}.quest-explanation p{font-size:15px}.source-ref{background:white;border-left:3px solid #316ee6;padding:14px 18px;margin:12px 0;border-radius:0 8px 8px 0}.source-ref strong{font-size:15px}.source-ref p{white-space:pre-wrap;font-size:14px;line-height:1.9;margin-top:9px;color:var(--muted)}.answer-card{padding:22px;background:#eef4fd;border:1px solid #d1dfef;border-radius:11px;margin:18px 0}.answer-card p{white-space:pre-wrap}.admin-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.admin-links a{padding:23px;border:1px solid var(--line);border-radius:10px;background:white;display:block}.admin-links h3{font-size:17px;margin:8px 0}.admin-links p{font-size:13px;color:var(--muted);margin:0}.tablewrap th,.tablewrap td{font-size:13px}.tablewrap .btn{min-height:39px;font-size:12px;padding:8px 12px}.tablewrap code{overflow-wrap:anywhere}.diff-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.diff-grid pre{background:#f5f7fb;padding:18px;white-space:pre-wrap;font-size:14px;line-height:1.9;border:1px solid var(--line);border-radius:9px}.problem-editor{border:1px solid var(--line);border-radius:8px;padding:16px;margin:13px 0}.problem-editor legend{font-size:14px}.editor-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.editor-options label{display:block;font-size:13px}.editor-options input[type=checkbox]{width:20px;height:20px;vertical-align:middle}.question-select{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.question-select select{flex:1;max-width:380px;font-size:14px}.brand-edit{max-width:600px}.flow-label{font-size:12px}.vehicle-map-caution{font-size:12px}.vehicle-stage-top{font-size:10px}.home-head{grid-template-columns:1.3fr 1fr;gap:30px}.home-intro h1{font-size:36px}.home-intro .lead{font-size:16px}.program-hero .btn{font-size:14px}.program-metrics small{font-size:12px}.program-head span{font-size:11px;color:#586a87}.program-hero p{font-size:13px}.program-hero h2{font-size:21px}.step-link strong{font-size:14px}.step-link small{font-size:12px}.outline-note{padding:22px;background:#fff;border:1px dashed #a1b1cc;border-radius:9px}.source-warning{color:#7a5423;font-size:13px}.img-preview{max-height:420px;object-fit:contain}.visually-hidden{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
@media(max-width:1100px){.top-location{display:none}.topbar{gap:13px;padding-inline:25px}.workspace-context{margin-left:0}.live-edition{margin-left:auto}.admin-links{grid-template-columns:repeat(2,minmax(0,1fr))}.quest-workspace{grid-template-columns:minmax(0,1fr) 210px}.question-panel{padding:25px}.article-layout{grid-template-columns:minmax(0,1fr) 210px}}
@media(max-width:1023px){.sidebar{width:min(288px,calc(100vw - 48px));transform:translateX(-100%);visibility:hidden;pointer-events:none}.sidebar.open{transform:translateX(0);visibility:visible;pointer-events:auto}.workspace{margin-left:0}.menu-button{display:grid}.topbar{min-height:78px;height:auto;padding:12px 20px;flex-wrap:wrap}.workspace-context{flex-basis:auto;order:initial;display:flex;gap:8px;font-size:12px}.workspace-context>span{display:none}.workspace-context select{max-width:210px;font-size:14px;min-height:44px}.sidebar .nav-link{font-size:15px;min-height:47px}.sidebar .side-note{display:none}.sidebar .brand{padding-bottom:16px}.sidebar .side-bottom{padding-top:8px}.profile{padding-top:12px}.side-nav{min-height:0}.topbar .icon-button{width:44px;min-width:44px;height:44px}.topbar>.text-link{font-size:13px}.topbar .live-edition{font-size:10px}.article-layout{grid-template-columns:minmax(0,1fr);gap:18px}.article-toc{grid-row:1;position:static}.editor-grid,.diff-grid{grid-template-columns:minmax(0,1fr)}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}main{padding:25px}.quest-workspace{grid-template-columns:minmax(0,1fr) 210px}.btn{min-height:48px}.home-head{grid-template-columns:1.1fr 1fr}.sidebar .nav-label{font-size:10px}}
@media(max-width:767px),(max-width:1023px) and (max-height:600px){.quest-workspace{grid-template-columns:minmax(0,1fr)}.question-side{display:none}.mobile-quiz-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;background:#edf2fc;border:1px solid #cfdaed;border-radius:9px;margin-bottom:14px}.mobile-quiz-summary strong{font-size:14px}.mobile-quiz-summary small{display:block;font-size:12px;color:var(--muted)}.mobile-quiz-summary .btn{font-size:13px;padding:8px 13px;min-height:43px}.quiz-session main{padding:16px 16px calc(100px + env(safe-area-inset-bottom))}.quiz-topbar{margin-bottom:10px}.quiz-topbar strong{font-size:15px}.quiz-topbar .btn{min-height:40px;font-size:13px;padding:8px 13px}.quiz-heading{font-size:19px!important}.question-panel{padding:20px 18px}.question-top{gap:10px;flex-wrap:wrap;margin-bottom:16px}.question-panel legend{font-size:18px}.question-mode{font-size:12px}.question-bottom{position:fixed;left:0;right:0;bottom:0;background:#fff;z-index:20;border-top:1px solid #cad5e8;margin:0;padding:12px max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));gap:14px;flex-wrap:nowrap}.question-bottom .btn{flex:1;min-width:0;min-height:48px;font-size:15px}.question-bottom .small-note{display:none}.save-strip{font-size:11px}.option{padding:14px 11px;gap:10px}.option input{position:static;margin-top:4px}.choice-letter{font-size:12px}.choice-text{font-size:var(--body-font)}body.menu-open .question-bottom{visibility:hidden}}
@media(max-width:767px){main{padding:23px 16px 42px}.topbar{padding:10px 16px;min-height:73px;gap:8px}.workspace-context select{max-width:160px}.live-edition{max-width:55px;white-space:normal;line-height:1.5}.topbar>.text-link{font-size:12px;min-height:40px}.pagehead{display:block;margin-bottom:20px}.pagehead h1{font-size:26px}.pagehead p{font-size:14px}.pagehead .btn-row{margin-top:16px}.resume-hero{padding:23px;display:block}.resume-hero h2{font-size:22px}.resume-hero .btn-row{margin-top:20px}.resume-hero .btn{flex:1}.metrics-grid{gap:9px}.metric{padding:16px 12px}.metric strong{font-size:29px}.metric small{font-size:11px;line-height:1.7}.cards,.admin-links{grid-template-columns:minmax(0,1fr)}.history-row{flex-wrap:wrap;gap:10px}.history-row .btn{margin-left:auto}.article-body{padding:23px 19px}.article-body h2{font-size:21px}.article-toc{padding:17px}.editor-options{grid-template-columns:minmax(0,1fr)}.result-hero{display:block;padding:25px}.result-percent{font-size:50px;text-align:left;margin-bottom:19px}.result-percent small{display:inline;margin-left:10px}.result-hero h1{font-size:24px}.result-actions{display:grid;grid-template-columns:1fr}.dialog-body{padding:18px 16px;max-height:none}.dialog-head{padding:14px 16px}.dialog-body .actions{bottom:-18px;display:flex;flex-wrap:wrap}.dialog-body .actions .btn{flex:1;min-width:140px}.review-card{padding:15px}.review-card h3{font-size:14px}.review-card .my-answer{font-size:14px}.site-footer{padding:0 16px 23px;display:block;font-size:10px}.site-footer span:last-child{margin-top:8px;text-align:left}.auth-page main{padding:12px}.auth-layout{margin:0;min-height:0}.auth-form{padding:26px 24px}.auth-links{flex-direction:column;gap:12px}.home-head{grid-template-columns:1fr;gap:20px}.home-intro h1{font-size:30px}.home-intro .lead{font-size:15px}.program-hero{padding:22px}.step-strip{grid-template-columns:1fr}.vehicle-security strong{font-size:12px}.tablewrap{border-radius:8px}.source-ref{padding:13px}.source-ref p{font-size:14px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}body.reduced *{scroll-behavior:auto!important;transition:none!important}body.reduced .vm-pulse{display:none!important}input,textarea,select{font-size:16px}.field input,.field select{min-height:48px}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #528fe1;outline-offset:3px}main,main>*{min-width:0}h1,h2,h3,p,legend{overflow-wrap:anywhere}[hidden]{display:none!important}
.top-location{min-width:0}.top-location strong{display:inline-block;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}.brand-type{min-width:0;overflow-wrap:anywhere}.relation-flow{display:grid;grid-template-columns:minmax(0,1fr) 35px minmax(0,1fr);gap:12px;align-items:center;margin:16px 0}.relation-flow>div{background:#f3f7fd;border:1px solid #d1dcef;border-radius:9px;padding:17px;min-width:0;overflow-wrap:anywhere}.relation-flow small{display:block;color:#576d90;font-size:12px;margin-bottom:8px}.relation-flow strong{font-size:15px;display:block}.relation-flow>span{text-align:center;color:#4275bc}.relation-flow code{display:block;margin-top:8px;font-size:11px}.toast{pointer-events:none}
@media(max-width:767px){.relation-flow{grid-template-columns:1fr}.relation-flow>span{transform:rotate(90deg)}.relation-flow>div{padding:14px}.question-panel .option{scroll-margin-top:16px;scroll-margin-bottom:100px}}
/* v2.8 content and operational tools: consistent readable surfaces. */
.check28{display:flex;gap:12px;align-items:flex-start;padding:12px 0;font-size:15px;line-height:1.8;min-height:48px;cursor:pointer}.check28 input{width:20px;height:20px;flex:0 0 20px;margin:5px 0 0}.check28 small{display:block;font-size:12px;color:var(--muted)}.member-picks28,.source-picks28{max-height:360px;overflow:auto;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:22px}.wrap-anywhere{overflow-wrap:anywhere}.result28{margin-top:25px;border-top:3px solid var(--brand);padding-top:22px}.result28 .row{justify-content:space-between}.review-item28{margin:14px 0}.review-item28 summary{font-size:16px;line-height:1.8;min-height:44px}.review-choice28{padding:12px 0;border-bottom:1px solid var(--line)}.review-choice28 p{margin:5px 0}.review-comment28{border-bottom:1px solid var(--line);padding:18px 0}.review-comment28 p{white-space:pre-wrap}.graph-columns28{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}.graph-columns28>section{min-width:0}.graph-columns28 h3{font-size:14px;color:var(--brand);border-bottom:2px solid #72b7d5;padding-bottom:10px}.graph-node28{display:flex;flex-direction:column;gap:7px;padding:18px;background:#fff;border:1px solid var(--line);border-radius:8px;margin:10px 0;font-size:14px}.graph-node28 code{font-size:10px;overflow-wrap:anywhere}.graph-node28 span{color:var(--muted);font-size:12px}@media(max-width:767px){.graph-columns28{grid-template-columns:minmax(0,1fr)}.check28{font-size:16px}.tabs{gap:20px}.result28 .row{flex-wrap:wrap}}
/* v2.9 — same design language for video and evidence. */
.lesson-video29{border:1px solid var(--line);border-radius:12px;padding:22px;margin-bottom:28px;background:#f6f9ff;min-width:0}.video29{display:block;width:100%;max-height:65vh;background:#071033;border-radius:8px}.transcript29{max-height:330px;overflow:auto}.transcript29 button{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;align-items:start;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);width:100%;padding:14px 8px;text-align:left;font-size:16px;line-height:1.8;min-height:48px}.transcript29 button:hover,.transcript29 button:focus-visible{background:#e9f0ff}.transcript29 button span:first-child{font-size:13px;color:#234681}.code-view29{font:14px/1.8 monospace;padding:18px;background:#071033;color:#e8efff;max-height:520px;overflow:auto;white-space:pre;max-width:100%}.lesson-video29 .small-note{font-size:13px}@media(max-width:767px){.lesson-video29{padding:14px}.transcript29 button{grid-template-columns:42px minmax(0,1fr);gap:8px}.lesson-video29 .btn{width:100%}}
/* Keep the keyboard skip link clipped, including full-page capture while scrolled. */
.skip-link:not(:focus){clip-path:inset(50%);width:1px;height:1px;overflow:hidden;padding:0}
.skip-link:focus{clip-path:none;width:auto;height:auto;overflow:visible;padding:12px;top:10px}
/* v2.10: operational workspaces, same visual language as learning screens. */
.group-picks210{max-height:300px;overflow:auto;border-block:1px solid var(--line);padding-block:12px;margin-bottom:20px}.soft-preview210{padding:20px;background:#f2f6ff;border:1px solid #d4e0f4;border-radius:9px;margin:16px 0;overflow-wrap:anywhere}.soft-preview210 p:last-child{margin-bottom:0}.metric-grid210{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:24px}.metric-grid210 small{display:block;font-size:13px;color:var(--muted)}.metric-grid210 strong{font:500 36px/1.5 -apple-system,BlinkMacSystemFont,sans-serif;color:var(--ink)}.metric-grid210 strong span{font-size:14px;margin-left:6px}.metric-grid210 strong.text-metric210{font-size:21px}.search-results210{margin-top:28px}.search-hit210{margin-top:16px}.search-hit210 blockquote{margin:16px 0;padding:18px 22px;background:#f5f7fc;border-left:3px solid #315bea;white-space:pre-wrap;line-height:1.9;overflow-wrap:anywhere;max-height:380px;overflow:auto}.search-hit210 h3{font-size:20px}.logo-preview210{min-height:200px;display:grid;place-items:center;background:#edf2fb;border:1px solid var(--line);border-radius:10px;padding:28px}.logo-preview210 img{max-width:240px;max-height:180px;object-fit:contain}.logo-preview210>span{font-size:28px;font-weight:700;line-height:1.25;letter-spacing:.12em;color:#071033}.brand-symbol.has-logo210{background:#fff;padding:4px}.company-logo210{width:100%;height:100%;object-fit:contain}.profile-row210{display:grid;grid-template-columns:68px minmax(0,1fr);gap:12px}.profile-row210 .field{min-width:0}.profile-row210 input{width:100%}.profile-sections210{border-block:1px solid var(--line);padding-top:14px;margin-bottom:20px}.group-picks210 .check28 span{min-width:0;overflow-wrap:anywhere}#groupAssignForm210 .check28,#reminderConfirm210{margin-block:16px}.editor-grid>*,.metric-grid210>*{min-width:0}#indexedSearch210 .field{max-width:none}#indexSearchButton210{min-height:48px}#profileForm210 h4{margin:18px 0 4px}
@media(max-width:767px){.metric-grid210{gap:12px}.metric-grid210 strong{font-size:28px}.metric-grid210 small{font-size:12px}.metric-grid210 strong.text-metric210{font-size:16px}.search-hit210 blockquote{padding:15px;max-height:none;font-size:16px}.soft-preview210{padding:16px}.logo-preview210{min-height:170px}.profile-row210{grid-template-columns:58px minmax(0,1fr);gap:9px}.group-picks210{max-height:340px}.search-results210 .section-head{align-items:flex-start;flex-wrap:wrap}}
.search-preview210{font-size:16px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:16px 0}.search-hit210 summary{min-height:44px;display:flex;align-items:center;color:#23488b;font-size:14px;cursor:pointer}.search-hit210 details{border-top:1px solid var(--line);margin:16px 0}.search-hit210 summary:before{content:'＋';margin-right:10px}.search-hit210 details[open]>summary:before{content:'−'}.search-hit210 summary::-webkit-details-marker{display:none}
/* v2.11: calm reading surfaces, clear scope and explicit confirmations. */
.governance-grid211{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}.governance-grid211>*{min-width:0}.governance-grid211 .grid2{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.governance-entries211 article{border-bottom:1px solid var(--line);padding:16px 0}.governance-entries211 p{font-size:14px;margin:7px 0;color:var(--muted)}.governance-entries211 strong{font-size:15px}.rule-entry211{min-width:0;border:1px solid var(--line);border-radius:8px;padding:18px;margin:18px 0 22px}.rule-entry211 legend{font-size:14px;font-weight:600;color:var(--brand);padding:0 8px}.mention-picks211{border:1px solid var(--line);min-width:0;border-radius:8px;padding:14px}.mention-picks211 legend{font-size:14px;padding:0 6px}.mention-picks211 small{display:block;color:var(--muted);font-size:12px}.preserve-lines211{white-space:pre-wrap;overflow-wrap:anywhere}.private-note211{padding:12px 15px;border-left:3px solid #617aa0;background:#edf2fb;font-size:13px}.result211{margin-top:22px}.result211 table{min-width:500px}.result211 .tablewrap{max-width:100%;overflow:auto}.governance-grid211 pre{font-size:13px;max-height:550px;overflow:auto}.reading input[readonly]{background:#f4f6fa}#email-status{overflow-wrap:anywhere}#app .panel h2{overflow-wrap:break-word}
@media(max-width:1023px){.governance-grid211{grid-template-columns:minmax(0,1fr);gap:18px}.governance-grid211 .btn,.reading .btn{min-height:48px}.rule-entry211{padding:16px}.mention-picks211 .check28{min-height:48px}}
@media(max-width:420px){.governance-grid211 .grid2{grid-template-columns:minmax(0,1fr)}.governance-grid211 .section-head,.reading>.section-head{flex-wrap:wrap}.governance-grid211 input[type=datetime-local]{width:100%;min-width:0;font-size:16px}.governance-grid211 .btn-row{flex-wrap:wrap}.result211{padding:18px 12px}}
/* Continuity v2.12: shared visual language, explicit storage scope. */
.continuity-entry212{margin-top:24px;border-left:3px solid var(--brand);display:flex;align-items:center;justify-content:space-between;gap:22px}.continuity-entry212 h2{font-size:20px;margin:5px 0}.continuity-entry212 p{font-size:14px;margin:0;color:var(--muted)}
.consent212{display:flex;gap:12px;align-items:flex-start;padding:18px;background:#edf3ff;border:1px solid #c7d7f0;border-radius:8px;font-size:15px}.consent212 input{width:24px;height:24px;flex:0 0 24px;margin:2px 0}
.local-save212{display:block;flex-basis:100%;font-size:12px;line-height:1.7;color:#655228}.reading-tools212{padding:22px 26px;border:1px solid #c7d7f0;border-top:3px solid #123de1;border-radius:9px;background:#fff;margin:0 0 22px}.reading-tools212 strong{font-size:19px}.reading-tools212 p{font-size:14px;margin:6px 0;color:#536585}.reading-tools212 .btn{min-height:44px;font-size:14px}
.recovery-comparison212{display:grid;grid-template-columns:1fr 1fr;gap:16px}.recovery-comparison212>div{padding:16px;background:#f4f7fc;border-radius:7px;min-width:0;overflow-wrap:anywhere}.recovery-comparison212 p{font-size:15px;margin:8px 0 0}.article-body [data-reading-block]:focus-visible{outline:2px solid #315bea;outline-offset:5px}
@media(max-width:767px){.continuity-entry212{display:block}.continuity-entry212 .btn-row{margin-top:18px}.continuity-entry212 .btn{width:100%;font-size:14px}.reading-tools212{padding:20px 18px}.reading-tools212 .btn-row{display:grid;grid-template-columns:1fr}.reading-tools212 .btn{min-height:48px}.recovery-comparison212{grid-template-columns:1fr}.local-save212{font-size:12px}.consent212{padding:14px}}

.reading-tools212 .btn-row{display:flex;gap:8px;flex-wrap:wrap}.reading-tools212{padding:16px 20px}.reading-tools212 strong{font-size:17px}.reading-tools212 .section-kicker{font-size:9px}.reading-tools212 .small-note{margin-bottom:0;font-size:12px}
@media(max-width:767px){.reading-tools212{padding:16px}.reading-tools212 .btn-row{display:grid;grid-template-columns:1fr 1fr auto;gap:6px}.reading-tools212 .btn{font-size:14px;padding-inline:8px;min-width:0}.reading-tools212 p{font-size:13px}}
/* v2.14: restrained evidence / administration screens; all statuses have text. */
.ci-list213,.ci-overview213,.ci-mapping213{margin-block:22px}.ci-report-row213{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:25px 0;border-bottom:1px solid var(--line)}.ci-report-row213:last-of-type{border-bottom:0}.ci-report-row213>div{min-width:0}.ci-report-row213 h3{font-size:19px;margin:9px 0}.ci-metrics213{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;margin:24px 0;padding:24px 0;border-block:1px solid var(--line)}.ci-metrics213>div{min-width:0}.ci-metrics213 span{font-size:13px;color:var(--muted);display:block}.ci-metrics213 strong{display:block;font-size:30px;line-height:1.5;font-weight:500;color:var(--ink)}.ci-proof213 p{margin:8px 0}.hash213{font-family:ui-monospace,Consolas,monospace;font-size:12px;overflow-wrap:anywhere;white-space:normal}.ci-case213{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:25px;border-top:1px solid var(--line);padding:22px 0;align-items:start}.ci-case213>div{min-width:0}.ci-case213 h3{font-size:17px;overflow-wrap:anywhere;margin:5px 0}.ci-case213 pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;background:var(--soft);padding:16px;border-radius:8px;max-height:260px;overflow:auto}.ci-case213 select{width:100%;min-height:48px;font-size:14px}.ci-pagination213{display:flex;gap:20px;align-items:center;justify-content:center;margin:20px 0}.ci-pagination213 .btn{min-height:44px}.logo-history213{display:grid;grid-template-columns:1fr 1fr;gap:18px}.logo-version213{display:grid;grid-template-columns:78px minmax(0,1fr);gap:15px;border:1px solid var(--line);border-radius:10px;padding:20px;align-items:center}.logo-version213 .btn{grid-column:1/-1}.logo-version213 h3{font-size:16px;overflow-wrap:anywhere;margin:8px 0}.logo-version-mark213{width:78px;height:78px;background:#f0f4fc;display:grid;place-items:center;border-radius:10px;color:#123d91}.logo-version-mark213 img{max-width:68px;max-height:68px;object-fit:contain}.logo-version-mark213 span{font-size:12px;line-height:1.5;letter-spacing:.08em;font-weight:700}.notification-form213{max-width:850px}.notification-form213 .check28{padding:18px;border:1px solid var(--line);border-radius:8px;margin-block:22px}.ci-pagination213 span{white-space:nowrap}.ci-case213 .field{min-width:0}.ci-case213 .field strong{overflow-wrap:anywhere;display:block}
@media(max-width:767px){.ci-report-row213{display:block;padding-block:20px}.ci-report-row213>.btn{width:100%;margin-top:10px}.ci-metrics213{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 12px;padding:18px 0}.ci-metrics213 span{font-size:12px}.ci-metrics213 strong{font-size:26px}.ci-case213{grid-template-columns:minmax(0,1fr);gap:15px}.ci-case213 select{font-size:16px}.logo-history213{grid-template-columns:1fr}.ci-pagination213{gap:10px}.ci-pagination213 .btn{padding:10px;font-size:13px}.ci-proof213{font-size:14px}.ci-overview213 .badge-row{gap:8px}.notification-form213 .check28{padding:14px;font-size:15px}.ci-mapping213 .section-head>.btn{width:100%}}

/* v2.15: OCR review and export actions retain usable mobile hit areas. */
.ocr-page215 .mini-process{margin-bottom:24px}.ocr-page215 .badge-row{margin:24px 0 18px}.ocr-page215 textarea{min-height:280px;line-height:1.9}.ocr-page215 .check28{align-items:flex-start;margin:16px 0}.ocr-page215 .check28 input{flex:0 0 20px;margin-top:6px}.soft-preview210 .btn{margin:6px 8px 6px 0}
@media(max-width:767px){.ocr-page215 .grid2{grid-template-columns:1fr}.ocr-page215 .mini-process{gap:5px;font-size:12px}.ocr-page215 .mini-process span{padding:8px}.ocr-page215 .btn{width:100%;min-height:48px}.soft-preview210 .btn{display:flex;width:100%;min-height:48px}.ocr-page215 textarea{min-height:300px;font-size:16px}.ocr-page215 .wrap-anywhere{overflow-wrap:anywhere}}

/* Post-grading explanations (Claude review 2026-09-22): say what went wrong, per choice, and where to re-read. */
.answer-summary{margin:14px 0 6px;padding:12px 16px;border-radius:8px;background:#fff2dc;color:#5b3f17;font-size:15px;line-height:1.7}
.answer-summary.is-ok{background:#e7f4ec;color:#1f5130}
.explanation-heading{margin:20px 0 4px;font-size:14px;color:var(--muted)}
.explanation-option .status{margin-left:8px;vertical-align:middle}
.explanation-option.is-mismatch{border-left:3px solid var(--amber);padding-left:12px;background:#fffaf1}
.review-link{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;margin:16px 0 4px;padding:14px 16px;border:1px solid var(--line);border-radius:8px;font-size:14px}
.review-link strong{flex-basis:100%}
.review-link .btn{margin-left:auto}
.article-body .is-review-target{scroll-margin-top:96px;outline:2px solid var(--amber);outline-offset:6px;border-radius:4px}

/* Contrast (WCAG 2.1 AA, 4.5:1 for body-size text): secondary text, home step numbers, map caution, and the
   de-emphasised parts of an explanation figure. De-emphasis uses desaturation instead of opacity so the text stays readable. */
:root{--faint:#5d6880}
.step-index{color:#56648a}
.vehicle-map-caution{color:#5d6880}

/* Course groups in the lesson and quest lists; the quest-briefing flow figure */
.course-heading{display:flex;align-items:baseline;gap:10px;font-size:18px;margin:28px 0 12px}.course-heading small{font-size:13px;color:var(--muted);font-weight:500}
.course-heading:first-of-type{margin-top:8px}.quest-flow{margin:0 0 18px}.quest-flow:empty{display:none}

/* Teaching figures v2 (1.0.0): drawn from data by figures.js. Illustrated layout: kind badge, numbered steps,
   pictogram badges, colored zones for groups, comparison of two cards, status chips, stacked layers,
   lifelines for sequences and a "point" callout. Text colors keep 4.5:1 or more against their backgrounds. */
.tf{margin:24px 0;padding:16px 18px;border:1px solid #d9e0ee;border-radius:14px;background:linear-gradient(180deg,#f8faff 0,#fff 64px);max-width:100%;overflow:hidden;box-shadow:0 1px 2px rgba(16,24,40,.05)}
.tf-head{display:flex;align-items:center;gap:10px;margin:0 0 14px}
.tf-kind{display:inline-flex;align-items:center;gap:4px;flex:none;padding:3px 9px 3px 7px;border-radius:999px;background:#e6edff;color:#1b3f9e;font-size:11px;font-weight:700}
.tf-ui-icon{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tf-title{font-weight:700;font-size:15px;color:#161d30;margin:0;line-height:1.5}
.tf-alt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tf-icon{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tf-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:38px;height:38px;border-radius:50%;background:#fff;color:#1f4fd1;box-shadow:inset 0 0 0 1.5px currentColor}
.tf-badge.is-empty{display:none}.tf-badge .tf-icon{width:20px;height:20px}
.tf .tf-caption{display:flex;gap:10px;align-items:flex-start;margin:14px 0 0;padding:10px 12px;border-radius:10px;background:#f4f7fc;border-left:4px solid #1f4fd1}
.tf-caption p{margin:0;font-size:13px;line-height:1.75;color:#34405a}
.tf-caption-label{margin-right:8px;color:#1b3f9e;font-size:12px}
.tf-bulb{width:18px;height:18px;color:#a86a00;margin-top:3px;flex:none}
.tf .tf-note{margin:10px 0 0;font-size:12px;color:#8a4b00;font-weight:600}
/* flow */
.tf-flow{display:flex;flex-wrap:wrap;align-items:stretch;gap:14px 0;padding-top:4px}
.tf-node{position:relative;display:flex;gap:10px;align-items:center;min-width:132px;max-width:240px;flex:1 1 150px;padding:12px;border:1.5px solid #cfd9ef;border-radius:12px;background:#fff;font-size:13px;line-height:1.45;box-shadow:0 1px 0 rgba(16,24,40,.04)}
.is-steps .tf-node{padding-top:16px}
.tf-step{position:absolute;top:-10px;left:10px;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#1f4fd1;color:#fff;font-size:11px;font-weight:700;line-height:22px;text-align:center;box-shadow:0 0 0 3px #fff}
.tf-node-text{display:flex;flex-direction:column;min-width:0}
.tf-node-text strong{font-size:13.5px;color:#161d30}.tf-node-text span{font-size:12px;color:#46536c}
.tf-arrow{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:42px;padding:0 4px;color:#7d8fb8}
.tf-arrow-line{display:block;width:30px;height:3px;border-radius:2px;background:currentColor;position:relative}
.tf-arrow-line::after{content:"";position:absolute;right:-3px;top:-5px;border:6.5px solid transparent;border-left:9px solid currentColor;border-right:0}
.tf-arrow-label{font-size:11px;margin-top:6px;text-align:center;max-width:104px;line-height:1.3;padding:2px 7px;border-radius:999px;background:#e9efff;color:#1f3a78}
.tf-flow.is-grouped{flex-direction:column;align-items:stretch;gap:0}
.tf-flow.is-grouped>.tf-arrow{flex-direction:row;justify-content:center;gap:10px;min-height:40px;padding:4px 0}
.tf-flow.is-grouped>.tf-arrow .tf-arrow-line{width:3px;height:26px}
.tf-flow.is-grouped>.tf-arrow .tf-arrow-line::after{right:auto;left:-5px;top:auto;bottom:-4px;border:6.5px solid transparent;border-top:9px solid currentColor;border-bottom:0}
.tf-flow.is-grouped>.tf-arrow .tf-arrow-label{margin:0;max-width:none}
.tf-group{display:flex;flex-direction:column;flex:1 1 auto;border-radius:14px;padding:10px 12px 12px;margin:0 2px;background:var(--gbg);border:1.5px solid var(--gline)}
.tf-group[data-g="0"]{--gbg:#eef3ff;--gline:#c8d5f5;--gfg:#1b3f9e}.tf-group[data-g="1"]{--gbg:#e7f5f4;--gline:#bde1dd;--gfg:#0b5a61}
.tf-group[data-g="2"]{--gbg:#f3efff;--gline:#dacdf6;--gfg:#50308f}.tf-group[data-g="3"]{--gbg:#fff4e0;--gline:#efd6a6;--gfg:#704400}
.tf-group-label{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--gfg);margin-bottom:8px;font-weight:700}
.tf-group-label .tf-icon{width:18px;height:18px}
.tf-group-body{display:flex;flex-wrap:wrap;align-items:stretch;gap:10px 0}
.tf-group .tf-node{background:#fff}.tf-group .tf-badge{color:var(--gfg)}
/* cards */
.tf-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.tf-cards.is-compare{grid-template-columns:1fr auto 1fr;align-items:stretch}
.tf-vs{align-self:center;font-size:20px;font-weight:700;color:#5d6d92}
.tf-card{position:relative;border:1.5px solid var(--cline);border-radius:12px;background:#fff;font-size:13px;overflow:hidden}
.tf-card[data-c="0"]{--cfg:#1b3f9e;--cbg:#eef3ff;--cline:#c8d5f5}.tf-card[data-c="1"]{--cfg:#0b5a61;--cbg:#e7f5f4;--cline:#bde1dd}
.tf-card[data-c="2"]{--cfg:#50308f;--cbg:#f3efff;--cline:#dacdf6}.tf-card[data-c="3"]{--cfg:#704400;--cbg:#fff4e0;--cline:#efd6a6}
.tf-card[data-c="4"]{--cfg:#8c1c47;--cbg:#fdecf3;--cline:#f2c5d6}
.tf-card-title{display:flex;gap:10px;align-items:center;padding:10px 12px;background:var(--cbg);color:var(--cfg)}
.tf-card-title strong{font-size:14px;line-height:1.4}
.tf-card-title .tf-badge{width:34px;height:34px;color:var(--cfg)}
.tf-card ul{margin:0;padding:10px 14px 12px;list-style:none;line-height:1.6}
.tf-card li{position:relative;padding-left:16px;margin:2px 0;color:#26314a}
.tf-card li::before{content:"";position:absolute;left:2px;top:.62em;width:7px;height:7px;border-radius:50%;background:var(--cfg)}
/* tones */
.tf .tone-ok{--cfg:#17693a;--cbg:#e7f6ed;--cline:#9fd5b3;--gfg:#17693a}.tf .tone-warn{--cfg:#7a4600;--cbg:#fff3dc;--cline:#ecc88a}
.tf .tone-bad{--cfg:#a4231a;--cbg:#fdebea;--cline:#efb3ad}.tf .tone-note{border-style:dashed}
.tf .tf-node.tone-ok{border-color:#9fd5b3;background:#f1faf4}.tf .tf-node.tone-warn{border-color:#ecc88a;background:#fff8ea}.tf .tf-node.tone-bad{border-color:#efb3ad;background:#fdf2f1}
.tf .tf-node.tone-ok .tf-badge{color:#17693a}.tf .tf-node.tone-warn .tf-badge{color:#7a4600}.tf .tf-node.tone-bad .tf-badge{color:#a4231a}
/* table */
.tf .tablewrap{overflow-x:auto;border-radius:12px;border:1px solid #d3dcef}
.tf-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;margin:0}
.tf-table thead th{background:#1b3f9e;color:#fff;font-size:12.5px;padding:9px 12px;text-align:left;font-weight:700}
.tf-table tbody th,.tf-table tbody td{padding:10px 12px;border-top:1px solid #e3e8f2;vertical-align:top;text-align:left;color:#1d2740}
.tf-table tbody tr:nth-child(even){background:#f6f8fd}
.tf-table tbody th{font-weight:700;white-space:normal}
.tf-table tbody th .tf-icon{width:18px;height:18px;color:#1f4fd1;vertical-align:-4px;margin-right:6px}
.tf-chip{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;margin-right:8px;font-size:12px;font-weight:700;color:#fff;vertical-align:1px}
.chip-ok{background:#17693a}.chip-warn{background:#8a4b00}.chip-bad{background:#a4231a}.chip-note{background:#56627a}
.tf-table tr.tone-ok{background:#eef8f1}.tf-table tr.tone-warn{background:#fff7e8}.tf-table tr.tone-bad{background:#fdf1f0}.tf-table tr.tone-note{background:#f5f6fa}
/* layers */
.tf-layers{display:flex;flex-direction:column;gap:8px;max-width:640px}
.tf-layer{position:relative;display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:12px;border:1.5px solid #c8d5f5;background:linear-gradient(90deg,#e9efff,#fff 70%)}
.tf-layer:nth-child(2n){background:linear-gradient(90deg,#e7f5f4,#fff 70%);border-color:#bde1dd}
.tf-layer-no{flex:none;width:26px;height:26px;border-radius:8px;background:#1b3f9e;color:#fff;font-weight:700;font-size:12px;display:flex;align-items:center;justify-content:center}
.tf-layer-text{display:flex;flex-direction:column;gap:2px;min-width:0}.tf-layer-text strong{font-size:13.5px;color:#161d30}.tf-layer-text span{font-size:12px;color:#46536c}
.tf-layer .tf-badge{width:34px;height:34px}
/* sequence */
.tf-seq{display:flex;flex-direction:column;min-width:0}
.tf-seq-row{display:grid;grid-template-columns:64px 1fr;align-items:center;gap:8px}
.tf-seq-head{grid-template-columns:64px repeat(var(--cols),1fr);margin-bottom:4px}
.tf-seq-actor{display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;padding:10px 6px;margin:0 4px;border:1.5px solid #c8d5f5;border-radius:12px;background:#eef3ff;font-size:13px;text-align:center;color:#161d30}
.tf-seq-actor .tf-badge{width:34px;height:34px;color:#1b3f9e}
.tf-seq-time{font-size:11.5px;color:#46536c;text-align:right;font-variant-numeric:tabular-nums;font-weight:700}
.tf-seq-lane{position:relative;height:48px;background-image:linear-gradient(90deg,transparent calc(50% - 1px),#c7d1e6 calc(50% - 1px),#c7d1e6 calc(50% + 1px),transparent calc(50% + 1px));background-size:calc(100% / var(--cols)) 100%;background-repeat:repeat-x}
.tf-seq-msg,.tf-seq-note{position:absolute;top:0;height:100%;display:flex;align-items:center;justify-content:center;font-size:12px;line-height:1.3}
.tf-seq-msg{left:calc((var(--from) + .5) * 100% / var(--cols));right:calc((var(--cols) - var(--to) - .5) * 100% / var(--cols));border-bottom:2.5px solid #3f5588}
.tf-seq-msg::after{content:"";position:absolute;bottom:-6.5px;border:5.5px solid transparent}
.tf-seq-msg.is-right::after{right:-3px;border-left:9px solid #3f5588;border-right:0}.tf-seq-msg.is-left::after{left:-3px;border-right:9px solid #3f5588;border-left:0}
.tf-seq-label{background:#fff;padding:2px 8px;border-radius:8px;box-shadow:0 0 0 1px #d3dcef;transform:translateY(-6px);text-align:center;color:#161d30;line-height:1.35}
.tf-seq-msg{align-items:flex-end}.tf-seq-lane{height:52px}
.tf-seq-note{left:calc(var(--from) * 100% / var(--cols));right:calc((var(--cols) - var(--to) - 1) * 100% / var(--cols));margin:5px 8px;border:1px solid #efd6a6;border-radius:8px;background:#fff7e3;height:auto;padding:6px}
.tf-seq-note .tf-seq-label{transform:none;background:none;box-shadow:none}
.tf-seq-msg.tone-bad{border-bottom-color:#a4231a}.tf-seq-msg.tone-bad::after{border-left-color:#a4231a;border-right-color:#a4231a}
.tf-seq-msg.tone-ok{border-bottom-color:#17693a}.tf-seq-msg.tone-ok::after{border-left-color:#17693a;border-right-color:#17693a}
.tf-seq-msg.is-right.tone-bad::after,.tf-seq-msg.is-right.tone-ok::after{border-right-color:transparent}.tf-seq-msg.is-left.tone-bad::after,.tf-seq-msg.is-left.tone-ok::after{border-left-color:transparent}
.tf-seq-list{display:none;position:relative;margin:0;padding:0;list-style:none}
.tf-seq-list::before{content:"";position:absolute;left:9px;top:10px;bottom:10px;width:2px;background:#c8d5f5}
.tf-seq-item{position:relative;display:grid;grid-template-columns:auto 1fr;gap:2px 10px;padding:10px 12px;margin:0 0 8px 26px;border:1px solid #d3dcef;border-radius:12px;background:#fff;font-size:13px;line-height:1.5}
.tf-seq-item::before{content:"";position:absolute;left:-22px;top:15px;width:10px;height:10px;border-radius:50%;background:#1f4fd1;box-shadow:0 0 0 3px #e6edff}
.tf-seq-item.tone-bad::before{background:#a4231a}.tf-seq-item.tone-ok::before{background:#17693a}
.tf-seq-item-time{grid-row:1/3;font-size:12px;color:#46536c;font-variant-numeric:tabular-nums;min-width:36px;font-weight:700}
.tf-seq-item-who{font-size:12px;color:#1f3a78;font-weight:700}
/* bars */
.tf-bars{display:flex;flex-direction:column;gap:12px}
.tf-bar-row{display:grid;grid-template-columns:minmax(100px,30%) 1fr;gap:4px 12px;align-items:center;font-size:13px}
.tf-bar-label{font-weight:700;color:#161d30}
.tf-bar-track{position:relative;height:26px;border-radius:8px;background:#eef1f7}
.tf-bar{height:100%;border-radius:8px;background:linear-gradient(90deg,#7d9bf2,#1f4fd1)}
.tf-bar-row:nth-child(2n) .tf-bar{background:linear-gradient(90deg,#6cc3bd,#0b5a61)}
.tf-bar-value{position:absolute;right:8px;top:4px;font-size:12px;font-weight:700;color:#161d30;background:rgba(255,255,255,.9);padding:0 6px;border-radius:6px;font-variant-numeric:tabular-nums}
.tf-bar-note{grid-column:2;font-size:12px;color:#46536c}
/* highlight in explanations: the related parts get a strong frame and a label; the others stay readable */
.tf.has-hl [data-part]{opacity:1}
.tf.has-hl [data-part]:not(.is-hl){filter:saturate(.15)}
.tf.has-hl [data-part]:not(.is-hl),.tf.has-hl [data-part]:not(.is-hl) *{color:#56627a}
.tf.has-hl [data-part].is-hl{outline:3px solid #c77700;outline-offset:2px;box-shadow:0 0 0 7px rgba(215,140,20,.16)}
.tf.has-hl tr[data-part].is-hl{outline-offset:-3px;background:#fff4df}
.tf.has-hl [data-part]:not(.is-hl) .tf-step,.tf.has-hl [data-part]:not(.is-hl) .tf-chip,.tf.has-hl [data-part]:not(.is-hl) .tf-layer-no{color:#fff;background:#646d82}
.tf.has-hl [data-part]:not(.is-hl) .tf-step{box-shadow:0 0 0 3px #fff}
.tf.has-hl .tf-node.is-hl::after,.tf.has-hl .tf-layer.is-hl::after{content:"関係";position:absolute;top:-11px;right:10px;padding:0 8px;border-radius:999px;background:#8a4b00;color:#fff;font-size:11px;font-weight:700;line-height:20px}
.tf.has-hl .tf-card.is-hl::after{content:"関係";position:absolute;top:8px;right:8px;padding:0 8px;border-radius:999px;background:#8a4b00;color:#fff;font-size:11px;font-weight:700;line-height:20px}
.tf.has-hl .tf-seq-item.is-hl{border-color:#c77700}
.question-figure .tf{margin:14px 0 6px}
.explanation-figure .tf{margin:10px 0 16px}
@media (max-width:640px){
  .tf{padding:14px 12px}
  .tf-head{align-items:flex-start}
  .tf-flow,.tf-group-body{flex-direction:column;align-items:stretch}
  .tf-node{max-width:none;flex:none}
  .tf-arrow{flex-direction:row;min-height:34px;justify-content:flex-start;padding-left:26px;gap:10px}
  .tf-arrow-line{width:3px;height:24px}
  .tf-arrow-line::after{right:auto;left:-5px;top:auto;bottom:-4px;border:6.5px solid transparent;border-top:9px solid currentColor;border-bottom:0}
  .tf-arrow-label{max-width:none;margin:0}
  .tf-cards.is-compare{grid-template-columns:1fr}
  .tf-vs{justify-self:center;transform:rotate(90deg);line-height:1}
  .tf-seq{display:none}.tf-seq-list{display:block}
  .tf-bar-row{grid-template-columns:1fr}.tf-bar-note{grid-column:1}
  .tf .tablewrap{border:0;overflow:visible;border-radius:0}
  .tf-table,.tf-table tbody,.tf-table tr,.tf-table th,.tf-table td{display:block;width:auto}
  .tf-table thead{display:none}
  .tf-table tbody tr{border:1px solid #d3dcef;border-radius:12px;margin:0 0 10px;padding:10px 12px;background:#fff}
  .tf-table tbody tr:nth-child(even){background:#fff}
  .tf-table tbody th{border:0;padding:0 0 6px;font-size:14px}
  .tf-table tbody td{border:0;padding:4px 0 0}
  .tf-table tbody td::before{content:attr(data-label);display:block;font-size:11px;color:#46536c;font-weight:700}
}
@media print{.tf{box-shadow:none;break-inside:avoid}}
/* The organization's brand color is set by app.js as --brand-org (and --brand-org-dark for the dark scheme). */
:root{--brand:var(--brand-org,#123de1)}
/* Rights notice under the sidebar note (links to the terms page) */
.side-legal{display:block;margin-top:10px;font-size:11px;line-height:1.6;color:#b8c2da;text-decoration:none}.side-legal:hover{text-decoration:underline}
/* Google sign-in on the login screen */
.auth-or{display:flex;align-items:center;gap:10px;margin:16px 0 12px;color:#56627a;font-size:12px}
.auth-or::before,.auth-or::after{content:"";flex:1;height:1px;background:#d7deed}
.google-signin{display:inline-flex;justify-content:center;width:100%;text-decoration:none}
.auth-error{margin:10px 0 0;padding:10px 12px;border-radius:10px;background:#fdeceb;border-left:4px solid #b42318;color:#7a1710;font-size:13px;line-height:1.7}
/* Until the first screen is drawn, the shell stays invisible: switching between the signed-in layout and the
   sign-in layout then causes no visible layout shift. app.js adds .booted (and always after 2.5 s). */
body:not(.booted) #workspace,body:not(.booted) #sidebar{visibility:hidden}
/* Reading bookmark on phones: title, three buttons and the status line only, so the lesson starts sooner. */
@media (max-width:640px){.reading-tools212{padding:12px 14px;margin-bottom:16px}.reading-tools212 .section-kicker,.reading-tools212>div:first-child p{display:none}.reading-tools212 strong{font-size:15px}.reading-tools212 .btn-row{margin-top:8px}.reading-tools212 .btn{min-height:44px;font-size:13px}.reading-tools212 .small-note{font-size:11.5px;margin:6px 0 0}}.next-lesson{margin-top:26px;padding:22px 24px;border:1px solid var(--line);border-radius:12px;background:#f5f8fd}.next-lesson h2{font-size:18px;margin:0 0 6px}.next-lesson p{color:var(--muted);font-size:14px;margin:0 0 14px}.dict-list{display:grid;gap:14px}.dict-entry{padding:18px 22px;background:#fff;border:1px solid var(--line);border-radius:12px}.dict-entry h3{margin:0 0 4px;font-size:19px;overflow-wrap:anywhere}.dict-entry p{margin:6px 0;font-size:15px;line-height:1.8}.dict-entry .dict-full{color:var(--muted);font-size:13px;margin:0 0 8px}.dict-entry .dict-chapters{font-size:13px;color:var(--muted)}.record-table th[scope=row]{font-weight:600;min-width:220px}.record-table td{vertical-align:top;white-space:nowrap}.record-table details{margin-top:6px;white-space:normal}.record-history{margin:6px 0 0;padding-left:20px;font-size:13px;line-height:1.8}.record-choices{padding-left:20px;line-height:1.8}.record-choices li{margin:6px 0}

.mobile-quiz-actions{display:flex;gap:8px;flex-wrap:wrap}.submit-hint{margin:12px 0 0;font-weight:600;color:var(--ink,inherit)}

.policy-quest{border:1px solid var(--line);border-radius:12px;padding:10px 14px;margin:0 0 10px;display:flex;flex-wrap:wrap;gap:4px 16px}.policy-quest legend{font-weight:600;padding:0 4px}.policy-quest .field{flex:1 1 200px;margin:0}
