/* サポ塾 学習画面。共通原本は変更せず、このファイルで専用UIを定義。261103 */
:root{--bg:#f6f8fb;--surface:#fff;--text:#233548;--muted:#738092;--line:#e5ebf1;--brand:#174d70;--accent:#157c87;--blue-pale:#eaf2f8;--green:#16755e;--green-pale:#eaf6f0;--red:#b8414e;--red-pale:#fff0f1;--amber:#a76a16;--shadow:0 4px 24px #173e5c05;color-scheme:light}
:root[data-theme=dark]{--bg:#111c29;--surface:#192736;--text:#e0e8ef;--muted:#a5b6c5;--line:#2e4153;--brand:#8bc7e9;--accent:#77d5cf;--blue-pale:#223b50;--green:#8ad6b8;--green-pale:#203d36;--red:#ff9ca8;--red-pale:#442c36;--amber:#ecc78b;--shadow:none;color-scheme:dark}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:30px}body{margin:0;background:var(--bg);color:var(--text);font-family:"Yu Gothic UI","Meiryo",system-ui,sans-serif;font-size:14px;line-height:1.7;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button,a{touch-action:manipulation}button{color:inherit}a{color:inherit;text-decoration:none}button:disabled{cursor:not-allowed;opacity:.45}button:hover:disabled{transform:none}button{border:0;background:none}button:hover{background:none}a:hover{color:var(--brand)}:focus-visible{outline:3px solid #379cb7;outline-offset:4px}h1,h2,h3,p{margin:0}h1,h2,h3{color:var(--text);background:none;padding:0;border:0;line-height:1.5}h1{font-size:32px;font-weight:700;letter-spacing:.035em}h2{font-size:20px;font-weight:700}h3{font-size:16px}p{line-height:1.9}.muted,.small-muted{color:var(--muted)}.small-muted{font-size:12px}.center{text-align:center}.full-width{width:100%}[hidden]{display:none!important}.skip{position:fixed;z-index:200;top:-80px;left:20px;padding:10px 18px;background:var(--surface)}.skip:focus{top:12px}.layout{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:var(--surface);border-right:1px solid var(--line);padding:34px 23px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:11px;font-size:27px;font-weight:800;letter-spacing:.06em;color:var(--brand)}.brand-icon{display:grid;place-items:center;width:45px;height:45px;background:#174d70;color:white;border-radius:14px;font-size:26px;font-weight:700;transform:rotate(-4deg)}.brand small{display:block;font-size:9px;letter-spacing:.04em;color:var(--muted);margin-top:1px;font-weight:500}.sidebar-label{font-size:9px;letter-spacing:.17em;color:var(--muted);margin:52px 12px 16px}.sidebar nav{display:grid;gap:9px}.sidebar nav a,.sidebar nav button{display:flex;align-items:center;gap:15px;padding:13px 16px;text-align:left;border-radius:9px;font-size:13px;min-height:48px}.sidebar nav span{font-size:22px;width:21px;line-height:1}.sidebar nav [aria-current=page]{background:var(--blue-pale);color:var(--brand);font-weight:700}.sidebar nav a:hover,.sidebar nav button:hover{background:var(--bg)}.sidebar-bottom{margin-top:auto;padding:30px 9px 0}.free-label{font-size:11px;color:var(--accent);font-weight:700}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;vertical-align:middle;margin-right:6px}.sidebar-bottom p{font-size:11px;color:var(--muted);margin:12px 0 25px;line-height:1.9}.sidebar-settings{display:block;text-align:left;font-size:11px;padding:9px 0}.official{display:block;font-size:11px;color:var(--muted);margin-top:14px}.workspace{margin-left:238px;flex:1;min-width:0}.topbar{height:76px;border-bottom:1px solid var(--line);background:var(--surface);display:flex;align-items:center;justify-content:space-between;padding:0 44px}.topbar-title{font-size:12px;color:var(--muted)}.topbar>div{display:flex;gap:13px;align-items:center}.demo-pill{background:var(--blue-pale);color:var(--brand);font-size:10px;padding:4px 10px;border-radius:6px}.icon-button{display:inline-grid;place-items:center;width:38px;height:38px;padding:0;border-radius:8px;font-size:21px}.icon-button:hover{background:var(--blue-pale)}.mobile-brand,.mobile-nav,.mobile-break{display:none}.sample-notice{padding:9px 26px;text-align:center;background:var(--blue-pale);color:var(--brand);font-size:11px;line-height:1.7}.storage-warning{padding:14px 26px;background:#fff2cf;color:#714b16}.workspace main{max-width:1320px;margin:auto;padding:38px 44px 32px;outline:none}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.eyebrow{font-size:10px;letter-spacing:.18em;font-weight:600;color:var(--accent);margin-bottom:9px}.page-heading .muted{font-size:12px;margin-top:9px}.exam-tabs{display:flex;padding:4px;border:1px solid var(--line);border-radius:9px;background:var(--surface);flex-shrink:0}.exam-tabs button{font-size:12px;min-height:38px;padding:6px 16px;border-radius:6px;white-space:nowrap;color:var(--muted)}.exam-tabs button.active{background:#174d70;color:white;font-weight:600}.hero{position:relative;overflow:hidden;background:#174d70;border-radius:15px;padding:31px 36px;display:flex;align-items:center;min-height:270px;color:white}.hero:after{content:"";position:absolute;width:350px;height:350px;border:1px solid #ffffff10;border-radius:50%;right:-70px;bottom:-180px;pointer-events:none}.hero-copy{position:relative;z-index:1}.hero-label{font-size:10px;color:#bde2e7;font-weight:600;letter-spacing:.06em}.hero h2{font-size:30px;color:white;line-height:1.6;letter-spacing:.06em;margin:14px 0 10px}.hero p{color:#d8e7f2;font-size:12px}.hero .button{margin-top:23px;background:white;color:#174d70;font-size:12px;padding:12px 22px;gap:30px}.hero .button:hover{background:#e9f6f8}.hero small{display:block;color:#d0dfe9;font-size:9px;margin-top:10px}.architecture{position:absolute;right:25px;bottom:24px;width:38%;max-width:355px;color:#a9d6e3;opacity:.7;pointer-events:none}.architecture svg{width:100%;display:block}.architecture>span{display:block;text-align:center;font-size:8px;letter-spacing:.25em;opacity:.65;margin-top:12px}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:13px 23px;min-height:46px;border:1px solid transparent;background:#174d70;color:white;border-radius:8px;font-size:13px;font-weight:600;line-height:1.5;transition:background .15s}.button:hover{background:#22658b;color:white}.button.secondary{background:var(--surface);color:var(--brand);border-color:var(--line)}.button.secondary:hover{background:var(--blue-pale)}.button.compact{font-size:12px;padding:10px 16px;min-height:42px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0 34px}.metrics>div{display:flex;align-items:center;gap:15px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:19px 22px;box-shadow:var(--shadow)}.metric-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;font-size:24px}.blue{background:var(--blue-pale);color:var(--brand)}.green{background:var(--green-pale);color:var(--green)}.amber{background:#fbf3e7;color:#ac7b32}.metrics>div>div>span{display:block;font-size:11px;color:var(--muted)}.metrics strong{display:block;font-family:system-ui,sans-serif;font-size:27px;line-height:1.5;font-weight:650;letter-spacing:.02em}.metrics small{font-size:10px;font-weight:400;color:var(--muted);letter-spacing:0}.section{margin:12px 0 28px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:17px}.section-heading .eyebrow{font-size:9px;margin-bottom:3px}.section-heading h2{font-size:19px}.text-link{color:var(--brand);font-size:11px;font-weight:600;padding:7px 0}.text-link:hover{text-decoration:underline}.subjects{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.subject-card{position:relative;display:block;background:var(--surface);border:1px solid var(--line);text-align:left;padding:20px 17px 15px;border-radius:11px;transition:transform .15s,border-color .15s;min-width:0}.subject-card:hover{background:var(--surface);border-color:#9ab9ce;transform:translateY(-3px)}.subject-icon{height:39px;width:39px;border-radius:10px;background:var(--blue-pale);color:var(--brand);font-family:serif;font-size:24px;display:grid;place-items:center;margin-bottom:17px}.subject-1 .subject-icon{background:var(--green-pale);color:var(--green)}.subject-2 .subject-icon{background:#f4edf9;color:#8760a4}.subject-3 .subject-icon{background:#fcf0e5;color:#b38040}.subject-4 .subject-icon{background:#e9f3f6;color:#4a8391}.subject-code{font-size:8px;letter-spacing:.12em;color:var(--muted)}.subject-card h3{font-size:15px;margin:3px 0 9px;white-space:nowrap}.subject-card p{font-size:11px;color:var(--muted)}.subject-card p span{display:block;font-size:9px;margin-top:2px}.thin-progress{height:4px;background:var(--line);margin:17px 0 8px;border-radius:5px;overflow:hidden}.thin-progress>span{height:100%;background:var(--accent);display:block}.subject-card>small{display:flex;justify-content:space-between;font-size:9px;color:var(--muted)}.review-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:28px 0}.review-card{display:flex;align-items:center;gap:14px;padding:21px 19px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:10px;min-width:0}.review-card:hover{background:var(--blue-pale)}.review-card h3{font-size:13px;margin-bottom:3px}.review-card p{font-size:10px;color:var(--muted)}.review-card>span:last-child{margin-left:auto;color:var(--muted)}.review-icon{font-size:26px;line-height:1;background:#fbf2e6;color:#b58242;border-radius:11px;padding:8px 11px}.review-icon.pale{background:var(--blue-pale);color:var(--brand)}.privacy-note{display:flex;gap:14px;align-items:center;border-top:1px solid var(--line);padding-top:24px;color:var(--muted)}.privacy-note>span{font-size:25px}.privacy-note p{font-size:10px}.privacy-note strong{font-size:11px;color:var(--text);font-weight:500}.site-footer{max-width:1320px;margin:0 auto;padding:15px 44px 25px;display:flex;align-items:center;gap:16px;color:var(--muted);font-size:9px}.site-footer button{color:var(--muted);font-size:9px}.site-footer a{margin-left:auto}.site-footer img{width:91px;height:auto;max-height:32px;object-fit:contain}.site-footer #updated{margin-left:8px}.filter-panel,.content-panel{border:1px solid var(--line);background:var(--surface);padding:24px;border-radius:12px;box-shadow:var(--shadow)}.filter-grid{display:grid;grid-template-columns:repeat(3,1fr) 1.3fr;gap:14px}.filter-grid label,.setting-section label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:600;color:var(--muted)}select,input[type=search]{font-size:13px;border:1px solid var(--line);border-radius:7px;min-width:0;min-height:44px;background:var(--bg);color:var(--text);padding:9px 12px;width:100%}.mode-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:21px}.chip{border:1px solid var(--line);border-radius:7px;padding:7px 12px;min-height:36px;font-size:11px;color:var(--muted)}.chip.active{border-color:var(--brand);background:var(--blue-pale);color:var(--brand)}.chip:hover{background:var(--bg)}.filter-note{font-size:10px;color:var(--muted);margin-top:15px}.results-bar{display:flex;justify-content:space-between;align-items:center;margin:23px 0 15px;font-size:12px;color:var(--muted)}.results-bar strong{font-size:22px;color:var(--text);margin-right:4px}.question-list{display:grid;gap:12px}.question-row{display:flex;gap:16px;border:1px solid var(--line);background:var(--surface);padding:22px 24px;border-radius:11px;align-items:center}.question-row-content{min-width:0;flex:1}.row-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:10px}.question-title{display:block;text-align:left;line-height:1.9;padding:0;color:var(--text);font-size:14px;font-weight:600;margin:7px 0}.question-title:hover{color:var(--brand);text-decoration:underline}.row-bottom{display:flex;gap:15px;align-items:center;font-size:10px;margin-top:9px}.sample-tag{background:var(--blue-pale);border-radius:4px;padding:2px 7px;color:var(--brand);font-size:9px}.bookmark-button{flex-shrink:0;font-size:25px;width:42px;height:42px;display:grid;place-items:center;color:var(--muted);border-radius:7px;padding:0}.bookmark-button:hover{background:var(--blue-pale)}.bookmark-button.saved{color:var(--amber)}.correct-text{color:var(--green)}.wrong-text{color:var(--red)}.empty-state{text-align:center;border-radius:12px;padding:44px 20px;background:var(--surface);color:var(--muted)}.empty-state>span{font-size:46px;color:var(--brand)}.empty-state h2{margin:10px 0;font-size:19px}.empty-state p{font-size:12px;margin-bottom:20px}.study-top{display:flex;justify-content:space-between;font-size:14px;margin-bottom:15px}.back-link{font-size:12px;color:var(--muted);padding:6px 0}.back-link:hover{color:var(--brand)}progress{appearance:none;-webkit-appearance:none;overflow:hidden;border:0;border-radius:5px;background:var(--line);height:6px;width:100%}progress::-webkit-progress-bar{background:var(--line)}progress::-webkit-progress-value{background:var(--accent);border-radius:5px}progress::-moz-progress-bar{background:var(--accent)}.session-progress{display:block;margin-bottom:26px}.study-layout{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:24px;align-items:start}.study-card{background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:28px 30px}.study-card .row-meta .bookmark-button{margin-left:auto}.subject-badge{background:var(--blue-pale);color:var(--brand);padding:4px 10px;border-radius:6px;font-weight:600}.question-label{color:var(--accent);font-family:system-ui,sans-serif;letter-spacing:.1em;font-size:11px;font-weight:650;margin:23px 0 13px}.question-label>span{font-family:inherit;font-size:9px;letter-spacing:0;color:var(--muted);font-weight:400;margin-left:7px}.question-stem{font-size:19px;line-height:1.95;letter-spacing:.025em;margin-bottom:27px;font-weight:600}.question-figure{display:block;width:100%;max-width:520px;margin:0 auto;border-radius:10px}figure{margin:0 0 22px}figcaption{font-size:10px;color:var(--muted);text-align:center;margin-top:6px}.answer-choices{display:grid;gap:12px}.choice{display:flex;align-items:center;gap:15px;min-height:65px;border:1px solid var(--line);border-radius:9px;padding:14px 17px;text-align:left;font-size:14px;line-height:1.8;background:var(--surface);opacity:1!important}.choice:hover:not(:disabled){background:var(--bg);border-color:var(--brand)}.choice-number{display:grid;place-items:center;width:30px;height:30px;border-radius:7px;background:var(--bg);font:600 13px system-ui,sans-serif;flex-shrink:0}.choice.selected{background:var(--blue-pale);border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}.choice.selected .choice-number{background:#174d70;color:white}.choice.right-answer{border-color:var(--green);background:var(--green-pale);box-shadow:0 0 0 1px var(--green)}.choice.wrong-answer{border-color:var(--red);background:var(--red-pale);box-shadow:0 0 0 1px var(--red)}.choice-mark{margin-left:auto;font-weight:bold;font-size:22px;color:var(--green)}.wrong-answer .choice-mark{color:var(--red)}.answer-action{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid var(--line);padding-top:23px;margin-top:25px}.answer-action>.button:first-child{margin-left:auto}.answer-action>.muted{font-size:10px}.study-aside{padding:23px;border:1px solid var(--line);background:var(--surface);border-radius:12px}.aside-heading{font-size:12px;font-weight:700;margin-bottom:15px}.question-dots{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.question-dots span{display:grid;place-items:center;aspect-ratio:1;border:1px solid var(--line);background:var(--bg);border-radius:6px;font-size:11px;color:var(--muted)}.question-dots span.current{outline:2px solid var(--brand);outline-offset:1px;color:var(--brand);font-weight:700}.question-dots span.done-correct{background:var(--green-pale);color:var(--green)}.question-dots span.done-wrong{background:var(--red-pale);color:var(--red)}hr{border:0;border-top:1px solid var(--line);margin:23px 0}.study-aside p{font-size:12px;color:var(--text)}.study-aside small{font-size:9px;color:var(--muted);display:block;margin-top:9px}.feedback{margin-top:24px;border:1px solid var(--line);background:var(--surface);border-radius:12px;overflow:hidden;outline:none}.feedback-title{background:var(--green-pale);display:flex;align-items:center;gap:16px;padding:22px 26px;color:var(--green)}.feedback-title>span{font:600 32px system-ui,sans-serif}.feedback-title h2{font-size:18px;color:inherit}.feedback-title p{font-size:11px;margin-top:4px}.incorrect .feedback-title{background:var(--red-pale);color:var(--red)}.explanation{padding:25px 28px}.explanation h3{font-size:14px;margin-bottom:10px}.explanation p{font-size:13px;line-height:2.1}.keyword-list{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.keyword-list span{font-size:10px;background:var(--blue-pale);color:var(--brand);padding:4px 9px;border-radius:5px}.explanation details{background:var(--bg);padding:12px 15px;border-radius:8px;font-size:12px}.explanation summary{cursor:pointer;padding:3px 0}.explanation details p{font-size:11px;margin-top:12px}.explanation .review-disclosure{font-size:10px;color:var(--muted);border-top:1px solid var(--line);padding-top:15px;margin-top:20px;line-height:1.8}.completion{max-width:760px;margin:30px auto;background:var(--surface);padding:48px 30px;text-align:center;border:1px solid var(--line);border-radius:15px}.completion-icon{display:grid;place-items:center;width:75px;height:75px;background:var(--green-pale);color:var(--green);font-size:36px;border-radius:50%;margin:0 auto 20px}.completion h1{font-size:25px;margin:10px 0}.completion-score{margin:27px 0 0}.completion-score strong{font-size:65px;font-family:system-ui,sans-serif;font-weight:650;color:var(--brand)}.completion-score span{font-size:17px;color:var(--muted)}.completion-actions{display:flex;justify-content:center;gap:12px;margin:27px 0 20px;flex-wrap:wrap}.progress-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:22px;margin-bottom:22px}.content-panel h2{font-size:17px;margin-bottom:12px}.content-panel>.muted{font-size:11px}.subject-stat{margin-top:22px}.subject-stat>div{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin-bottom:7px}.subject-stat small{font-size:10px;color:var(--muted)}.progress-orbit{background:conic-gradient(var(--accent) var(--progress),var(--line) 0);width:170px;height:170px;border-radius:50%;display:grid;place-items:center;margin:28px auto 19px}.progress-orbit>div{border-radius:50%;background:var(--surface);width:146px;height:146px;display:flex;align-items:center;justify-content:center;flex-direction:column}.progress-orbit strong{font:650 40px system-ui,sans-serif}.progress-orbit strong small{font-size:16px}.progress-orbit span{font-size:11px;color:var(--muted)}.progress-grid .full-width{margin-top:20px}.recent-panel{margin-bottom:22px}.recent-row{display:flex;gap:14px;align-items:center;border-top:1px solid var(--line);padding:13px 0}.recent-row .question-title{font-size:12px;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.recent-row time{color:var(--muted);font-size:10px;white-space:nowrap}.result-dot{display:grid;place-items:center;flex-shrink:0;width:27px;height:27px;border-radius:50%}.good{background:var(--green-pale);color:var(--green)}.bad{background:var(--red-pale);color:var(--red)}.field-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px 25px}.field-stats>div{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:11px 0;font-size:12px}.field-stats b{color:var(--brand)}dialog{border:1px solid var(--line);border-radius:15px;background:var(--surface);color:var(--text);padding:27px;width:min(580px,calc(100% - 32px));max-height:85dvh;overflow:auto;box-shadow:0 20px 100px #0003}dialog::backdrop{background:#10263780;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:10px}.dialog-head h2{font-size:20px}#dialogBody>p{font-size:12px;margin-bottom:15px}.dialog-actions{display:flex;justify-content:flex-end;margin-top:22px}.setting-section{border-top:1px solid var(--line);padding:20px 0}.setting-section h3{font-size:14px;margin-bottom:9px}.setting-section p{font-size:12px;color:var(--muted)}.setting-buttons{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}.setting-section label{max-width:320px;margin-top:14px}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:var(--text);color:var(--surface);padding:14px 23px;max-width:min(580px,90vw);font-size:12px;border-radius:9px;z-index:500;box-shadow:0 5px 30px #0002}.loading{padding:60px;color:var(--muted)}
@media(min-width:1550px){.workspace main{padding-top:48px}.hero{min-height:300px}.hero h2{font-size:34px}.subject-card{padding:24px 22px}.hero p{font-size:13px}}
@media(max-width:1220px){.sidebar{width:205px;padding:30px 17px}.workspace{margin-left:205px}.workspace main{padding:30px 27px}.topbar{padding:0 27px}.site-footer{padding-left:27px;padding-right:27px}h1{font-size:27px}.hero{padding:28px}.hero h2{font-size:27px}.subjects{gap:9px}.subject-card{padding:17px 12px}.subject-card h3{font-size:13px}.metrics>div{padding:16px;gap:11px}.metric-icon{width:36px;height:36px;font-size:21px}.review-card{padding:17px 14px;gap:10px}.review-card h3{font-size:12px}.review-card p{font-size:9px}.review-icon{padding:7px;font-size:23px}.study-layout{grid-template-columns:minmax(0,1fr) 165px;gap:17px}.study-aside{padding:17px}.question-dots{gap:6px}.filter-grid{grid-template-columns:1fr 1fr}}
@media(max-width:980px){.sidebar{width:185px;padding:28px 13px}.workspace{margin-left:185px}.brand{font-size:24px;gap:9px}.brand-icon{width:37px;height:39px;font-size:22px}.brand small{font-size:8px}.sidebar nav a,.sidebar nav button{padding:12px;font-size:12px;gap:10px}.sidebar-bottom{padding-left:7px;padding-right:3px}.workspace main{padding:26px 22px}.topbar{height:65px;padding:0 22px}.page-heading{align-items:flex-start;flex-direction:column;gap:16px}.page-heading h1{font-size:26px}.page-heading .muted{margin-top:6px}.exam-tabs{align-self:flex-start}.exam-tabs button{min-height:33px;padding:5px 20px}.hero{min-height:285px;padding:25px}.hero h2{font-size:26px}.architecture{width:37%;right:0;bottom:35px;opacity:.4}.hero-copy{max-width:90%}.subjects{grid-template-columns:repeat(3,1fr);gap:12px}.subject-card h3{font-size:15px}.metrics{gap:9px}.metrics>div{padding:16px 10px;gap:8px}.metrics .metric-icon{width:30px;height:34px;font-size:19px}.metrics strong{font-size:23px}.metrics>div>div>span{font-size:9px}.review-grid{grid-template-columns:1fr;gap:12px}.review-card p{font-size:11px}.review-card h3{font-size:14px}.study-layout{display:block}.study-aside{display:none}.study-card{padding:25px}.progress-grid{grid-template-columns:1fr}.site-footer{flex-wrap:wrap;padding:14px 22px 25px}.site-footer #updated{display:block;margin:0}.site-footer img{width:80px}.filter-panel{padding:20px}.question-row{padding:20px}.question-title{font-size:13px}}
@media(max-width:700px){.sidebar{display:none}.workspace{margin-left:0}.topbar{height:61px;padding:0 21px}.topbar-title{display:none}.mobile-brand{display:block;font-size:23px;font-weight:800;letter-spacing:.04em;color:var(--brand)}.topbar>div{gap:7px}.demo-pill{font-size:9px;padding:3px 8px}.icon-button{width:34px;height:34px}.sample-notice{font-size:9px;padding:8px 18px;text-align:left}.workspace main{padding:25px 20px 24px;max-width:560px}.page-heading{gap:18px;margin-bottom:21px}.eyebrow{font-size:9px;letter-spacing:.16em;margin-bottom:8px}.page-heading h1{font-size:27px;line-height:1.65;letter-spacing:.035em}.mobile-break{display:block}.page-heading .muted{font-size:11px}.exam-tabs{align-self:stretch;display:grid;grid-template-columns:1fr 1fr}.exam-tabs button{font-size:12px;min-height:36px}.hero{padding:25px 23px;min-height:297px;border-radius:13px}.hero-label{font-size:9px}.hero h2{font-size:27px;margin-top:14px}.hero p{font-size:11px}.hero .button{margin-top:23px;padding:12px 17px;font-size:11px;gap:23px}.hero small{font-size:8px}.architecture{right:-45px;bottom:66px;width:58%;opacity:.16}.hero-copy{max-width:100%}.metrics{margin:17px 0 27px;gap:8px}.metrics>div{display:block;padding:13px 10px}.metrics .metric-icon{width:28px;height:28px;font-size:19px;margin-bottom:8px;border-radius:7px}.metrics>div>div>span{font-size:9px;white-space:nowrap}.metrics strong{font-size:23px}.metrics small{font-size:9px}.metrics strong small{display:inline;white-space:nowrap}.section-heading h2{font-size:18px}.section-heading .text-link{font-size:9px}.section-heading .eyebrow{font-size:8px}.subjects{grid-template-columns:repeat(2,1fr);gap:11px}.subject-card{padding:19px 17px 14px}.subject-card h3{font-size:16px}.subject-icon{margin-bottom:12px;width:36px;height:36px}.subject-card p span{display:inline;margin-left:4px;font-size:8px}.thin-progress{margin-top:15px}.review-grid{margin:22px 0}.review-card{padding:18px 15px;gap:12px}.review-card h3{font-size:12px}.review-card p{font-size:9px}.review-icon{padding:9px;font-size:23px}.privacy-note{align-items:flex-start;padding-top:20px;gap:10px}.privacy-note p{font-size:9px}.privacy-note strong{font-size:10px}.site-footer{max-width:560px;padding:8px 20px 100px;font-size:8px;gap:12px}.site-footer button{font-size:9px}.mobile-nav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;bottom:0;left:0;right:0;background:var(--surface);border-top:1px solid var(--line);height:calc(65px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);z-index:100}.mobile-nav a,.mobile-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;font-size:24px;color:var(--muted);line-height:1.4;padding:7px}.mobile-nav span{font-size:9px}.mobile-nav [aria-current=page]{color:var(--brand);background:var(--blue-pale)}.filter-grid{gap:12px}.filter-grid label{font-size:10px}.filter-panel{padding:17px}.filter-grid select,.filter-grid input{font-size:11px;padding:9px 8px}.mode-chips{gap:6px;margin-top:17px}.chip{font-size:10px;padding:7px 10px}.filter-note{font-size:9px;margin-top:13px}.results-bar{margin:20px 0 12px;font-size:10px}.results-bar .button{font-size:10px;padding:9px 12px;gap:5px}.results-bar strong{font-size:20px}.question-row{padding:16px;gap:8px}.row-meta{gap:7px;font-size:9px}.question-title{font-size:12px;line-height:1.95}.row-bottom{font-size:9px}.bookmark-button{width:35px;height:38px;font-size:24px}.study-top{font-size:12px}.back-link{font-size:10px}.session-progress{margin-bottom:18px}.study-card{padding:19px 17px;border-radius:11px}.question-label{font-size:10px;margin-top:20px}.question-stem{font-size:16px;line-height:2;margin-bottom:24px}.answer-choices{gap:11px}.choice{font-size:13px;padding:12px 13px;gap:11px;min-height:64px}.choice-number{width:27px;height:29px;font-size:12px}.answer-action{margin-top:23px;padding-top:19px;flex-wrap:wrap}.answer-action>.muted{font-size:9px}.answer-action .button{padding:11px 20px;min-width:130px;font-size:12px}.feedback-title{padding:19px 17px;gap:12px}.feedback-title h2{font-size:15px}.feedback-title p{font-size:10px}.explanation{padding:20px 17px}.explanation p{font-size:12px}.explanation h3{font-size:13px}.completion{padding:32px 18px;margin:15px auto}.completion h1{font-size:19px}.completion .muted{font-size:12px}.completion-actions{display:grid}.completion-score strong{font-size:55px}.progress-grid{gap:16px}.content-panel{padding:20px}.content-panel h2{font-size:16px}.recent-row{gap:9px}.recent-row time{font-size:8px}.recent-row .question-title{font-size:11px}.field-stats{gap:0 17px}.field-stats>div{font-size:10px}.toast{bottom:85px;width:max-content;max-width:90vw;padding:13px 17px;font-size:11px}dialog{padding:22px}.dialog-head h2{font-size:18px}.setting-buttons .button{font-size:11px;padding:12px}.storage-warning{font-size:11px;padding:11px 18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{.sidebar,.topbar,.sample-notice,.site-footer,.mobile-nav,dialog,.toast{display:none!important}.workspace{margin:0}.workspace main{padding:0;max-width:none}.layout,.study-layout{display:block}.study-card,.content-panel{border:1px solid #aaa}.study-aside{display:none}body{background:white;color:black}}

/* 過去問取り込み・再作図 261103 */
.source-image-note{font-size:11px;color:var(--muted);margin-bottom:18px}.source-question-image{max-width:100%;background:#fff;border:1px solid var(--line)}.source-text{background:var(--bg);padding:12px 15px;border-radius:8px;font-size:11px;margin:18px 0}.source-text summary{cursor:pointer}.source-text pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.9 sans-serif;color:var(--text)}.number-choices{grid-template-columns:repeat(auto-fit,minmax(115px,1fr))}.number-choices .choice{padding:12px 10px;font-size:12px;gap:9px}.number-choices:has(.with-figure){grid-template-columns:1fr}.choice.with-figure{display:grid;grid-template-columns:30px 1fr;text-align:left;padding:18px;gap:15px}.choice-visual{grid-column:1/-1;background:white;text-align:center;border-radius:8px;padding:10px}.choice-visual img{max-width:100%;max-height:430px;width:auto;height:auto;display:block;margin:auto}.feedback.pending .feedback-title{background:var(--blue-pale);color:var(--brand)}.question-dots span.done-pending,.result-dot.pending{background:var(--blue-pale);color:var(--brand)}.question-row .question-title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.number-choices .with-figure .choice-mark{grid-column:2}.study-card .source-text p{font-size:10px;color:var(--muted)}

/* PDF本文のテキスト表示 v261103_r3 */
.text-choices{grid-template-columns:1fr}.text-choices .choice{align-items:flex-start;min-height:70px;padding:17px 18px;font-size:14px;line-height:1.95}.choice-text{white-space:pre-line;overflow-wrap:anywhere;flex:1}.question-stem{white-space:pre-line;overflow-wrap:anywhere}.question-heading{font-size:15px;color:var(--muted);margin-bottom:17px}.question-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:2;letter-spacing:.02em;margin-bottom:20px}.source-reference{border:1px solid var(--line);border-radius:8px;margin:20px 0;padding:12px 15px;font-size:12px}.source-reference summary{cursor:pointer;color:var(--brand);font-weight:600}.source-reference[open]>.source-image-note{margin-top:14px}.text-review-note{border-left:3px solid var(--amber);background:var(--bg);padding:10px 13px;font-size:11px;color:var(--muted);margin:12px 0}.text-choices .choice-number{margin-top:3px}.text-choices .choice.with-figure{display:grid}.text-choices .with-figure .choice-visual{grid-column:1/-1}@media(max-width:700px){.question-body{font-size:14px}.text-choices .choice{font-size:13px;padding:13px 12px;gap:11px}.question-stem{font-size:16px}.source-reference{padding:11px 12px;font-size:11px}}
/* データから再作図した構造図。ダークモードでも図面は白地で表示。 */
.generated-diagram{margin:1.5rem 0;padding:12px;background:#fff;border:1px solid #cbd5e1;border-radius:12px;overflow:hidden}
.generated-diagram a{display:block}
.drawing-zoom{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.generated-diagram img{display:block;width:100%;max-width:800px;height:auto;margin:auto}
.generated-diagram figcaption{color:#475569;font-size:.75rem;line-height:1.6;text-align:center;margin-top:8px}
.math-fraction{display:inline-flex;flex-direction:column;vertical-align:middle;text-align:center;line-height:1.2;margin:0 .2em;font-variant-numeric:lining-nums;white-space:nowrap}
.math-fraction>span:first-child{border-bottom:1px solid currentColor;padding:0 .15em .1em}
.math-fraction>span:last-child{padding-top:.1em}
.source-inline{display:inline-block;vertical-align:middle;object-fit:contain;background:transparent;margin:0 .03em}
[data-theme="dark"] .source-inline{filter:invert(1)}
.source-formula{margin:.15em .15em}
.sidebar-check{display:flex;align-items:center;gap:9px;padding:11px 8px;margin:0 0 19px;border:1px solid var(--line);border-radius:8px;font-size:11px;font-weight:700}
.sidebar-check[aria-current=page]{color:var(--brand);background:var(--blue-pale);border-color:var(--brand)}
.comparison-local{font-size:11px;color:var(--muted)}
.compare-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:22px}
.compare-filters label,.compare-select-row label,.compare-toolbar label,.compare-check-panel>label{display:grid;gap:6px;font-size:11px;color:var(--muted)}
.compare-filters input,.compare-filters select,.compare-select-row select,.compare-toolbar select,.compare-check-panel textarea{width:100%;min-height:40px;padding:9px 11px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--text);font:inherit}
.compare-filters>.text-link{justify-self:start;align-self:end}
.compare-select-row{display:flex;align-items:center;gap:16px;margin:20px 0}
.compare-select-row>label{flex:1}.check-badge{padding:5px 12px;border-radius:20px;background:var(--bg);font-size:12px;white-space:nowrap}
.check-pending{color:var(--muted);border:1px solid var(--line)}.check-checked{color:var(--green);background:var(--green-pale)}.check-fix{color:var(--red);background:var(--red-pale)}
.compare-navigation,.study-navigation{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0}
.compare-navigation>span,.study-navigation>span{font-size:12px;color:var(--muted);white-space:nowrap}
.compare-card{border:1px solid var(--line);border-radius:13px;background:var(--surface);overflow:hidden}
.compare-toolbar{display:flex;align-items:end;gap:14px;flex-wrap:wrap;padding:19px;border-bottom:1px solid var(--line)}
.compare-toolbar h2{font-size:16px;flex:1;min-width:190px;align-self:center;margin:0}
.compare-toolbar h2 a{color:inherit;text-decoration:underline;text-underline-offset:4px}
.drawing-status{display:block;margin-top:3px;font-size:10px;font-weight:400;color:var(--muted)}
.choice-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px 20px;white-space:normal}
.choice-field{display:flex;flex-direction:column;gap:4px}
.choice-field-label{font-size:11px;line-height:1.6;color:var(--muted)}
.choice-field-value{font-size:15px;line-height:1.6;font-weight:600;color:inherit}
.study-layout>div,.study-card{min-width:0}
.question-table-scroll{max-width:100%;overflow-x:auto;margin:22px 0 28px;border:1px solid var(--line);border-radius:10px;overscroll-behavior-x:contain}
.question-table{width:100%;min-width:580px;border-collapse:collapse;font-size:1em;line-height:1.8;color:var(--text);background:var(--surface)}
.question-table th,.question-table td{border:1px solid var(--line);padding:10px 12px;vertical-align:middle;text-align:left;white-space:pre-line;overflow-wrap:anywhere}
.question-table th{background:var(--bg);font-weight:600;text-align:center}
.question-table-note{font-size:1em;line-height:2;white-space:pre-line;margin:16px 0 24px}
.study-card .choice-field-value{font-size:1em}
.combination-fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,100px),1fr));gap:8px 16px}
.combination-fields .choice-field{flex-direction:row;align-items:baseline;gap:4px;flex-wrap:wrap}
.combination-fields .choice-field-label{font-size:.85em;max-width:100%}
.combination-fields .choice-field-value{min-width:0}
.sidebar nav .youtube-menu-icon{display:block;width:24px;height:18px}
.compare-toolbar label{max-width:260px}.compare-toolbar .compare-checkbox{display:flex;align-items:center;gap:7px;min-height:40px;color:var(--text)}
.compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line)}
.compare-pane{min-width:0;background:var(--surface)}
.compare-pane-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:55px;padding:12px 16px;border-bottom:1px solid var(--line)}
.compare-pane-heading h3{font-size:13px;margin:0}.compare-pane-heading a,.compare-pane-heading>span{font-size:10px;color:var(--muted)}
.compare-viewport{height:clamp(320px,65vh,800px);overflow:auto;overscroll-behavior:contain;background:white}
.compare-canvas{min-width:100%;padding:14px;box-sizing:border-box}
.compare-canvas>img,.compare-canvas>a>img{display:block;width:100%;height:auto;max-width:none}
.compare-note{font-size:11px;color:var(--muted);margin:0;padding:11px 18px;border-top:1px solid var(--line)}
.compare-question{color:#233548;font-size:15px;line-height:2;overflow-wrap:anywhere}
.compare-question ol{padding-left:25px}.compare-question li{margin:18px 0}.compare-question>img,.compare-question li>img:not(.source-inline){display:block;width:100%;height:auto;margin:15px auto}
.compare-question .source-inline{filter:none}
.compare-check-panel{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:21px;margin:20px 0}
.compare-check-panel h2{font-size:15px;margin:0 0 6px}.compare-check-buttons{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px}
.compare-check-panel textarea{resize:vertical;font-size:13px;min-height:90px}.compare-check-panel>button{grid-column:1/-1;justify-self:end}
@media(min-width:1450px){.workspace main:has(.compare-card){max-width:1800px}}
@media(max-width:900px){.compare-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.compare-check-panel{grid-template-columns:1fr}.compare-viewport{height:55vh}}
@media(max-width:700px){.compare-grid{grid-template-columns:1fr}.mobile-nav{grid-template-columns:repeat(6,1fr)}.compare-navigation .button,.study-navigation .button{padding:10px;font-size:11px;min-height:42px}.compare-navigation>span,.study-navigation>span{font-size:10px}.compare-toolbar{padding:15px;gap:12px}.compare-toolbar h2{flex-basis:100%}.compare-select-row{gap:8px}.compare-select-row select{font-size:11px}.compare-pane-heading{padding:12px}.compare-canvas{padding:10px}}
:root{--app-font:"Yu Gothic UI","Yu Gothic","Hiragino Kaku Gothic ProN","Hiragino Sans","Meiryo",sans-serif}
body,button,input,select,textarea,pre,code,.source-text pre{font-family:var(--app-font)}
.compare-page-heading{margin-bottom:14px;align-items:center}
.compare-page-heading h1{font-size:24px}
.compare-page-heading .eyebrow,.compare-page-heading .muted{display:none}
.compare-page-heading+.compare-card{margin-top:0}

/* v261107_r2 Official archive palette: shikakuouen.com/archive/ */
:root{--bg:#f5f7f5;--surface:#fff;--text:#173e35;--muted:#61736a;--line:#dce5df;--brand:#275f4f;--accent:#357762;--blue-pale:#eaf2ed;--green:#275f4f;--green-pale:#eaf4ee;--shadow:0 4px 20px #173e3505}
:root[data-theme=dark]{--bg:#14221c;--surface:#1d3028;--text:#e2ede6;--muted:#aec2b6;--line:#385044;--brand:#9ed0b6;--accent:#9ed0b6;--blue-pale:#294a39;--green:#a6ddbf;--green-pale:#294536;--shadow:none}
.brand-icon,.exam-tabs button.active,.button{background:#275f4f}
.button:hover{background:#1e4d3f}.button.secondary{background:var(--surface)}
.brand-icon{border-radius:8px;transform:none}.brand small{font-size:10px}
.exam-countdown{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 28px;padding:24px 28px;background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--brand);border-radius:12px;margin-bottom:24px}
.exam-countdown h2{font-size:20px}.exam-countdown .eyebrow{margin-bottom:6px}.countdown-date{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:8px 0}.countdown-date time{font-weight:600}.countdown-status{font-size:10px;background:var(--blue-pale);color:var(--brand);padding:3px 8px;border-radius:4px}
.countdown-number{display:flex;align-items:baseline;gap:9px;align-self:center;color:var(--brand);white-space:nowrap}.countdown-number strong{font-size:64px;font-family:var(--app-font);font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}.countdown-number>span{font-size:15px}.countdown-number .countdown-message{font-size:24px}
.countdown-settings{grid-column:1/-1;border-top:1px solid var(--line);padding-top:12px;font-size:12px}.countdown-settings summary{cursor:pointer;color:var(--brand)}.countdown-settings label{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:14px}.countdown-settings input{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--text)}
.related-videos{margin-top:22px;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.related-videos h2{font-size:19px}.related-video-list{display:grid;gap:12px;margin-bottom:14px}.related-video-card{display:flex;align-items:center;gap:16px;padding:18px;border:1px solid var(--line);border-radius:9px;min-width:0}.related-video-card:hover{background:var(--blue-pale);border-color:var(--brand)}.video-play{display:grid;place-items:center;flex-shrink:0;width:54px;height:40px;color:#fff;background:#b93832;border-radius:8px;font-size:20px}.video-info{display:grid;gap:8px;min-width:0}.video-info strong{font-size:13px;line-height:1.7;overflow-wrap:anywhere}.video-badges{display:flex;gap:7px;flex-wrap:wrap;color:var(--muted);font-size:10px}.video-badges>span{background:var(--bg);padding:2px 7px;border-radius:4px}.video-watch{font-size:11px;color:var(--brand)}
@media(max-width:700px){.exam-countdown{padding:20px 18px;gap:16px}.exam-countdown>div:first-child{grid-column:1/-1}.countdown-number{grid-column:1/-1}.countdown-number strong{font-size:60px}.exam-countdown h2{font-size:18px}.related-videos{padding:18px}.related-video-card{padding:14px;gap:12px;align-items:flex-start}.video-play{width:38px;height:30px;font-size:15px}.related-videos .section-heading{align-items:flex-start}.related-videos .text-link{white-space:nowrap}}

/* v261107_r1 ホームの学習ダッシュボード */
.dashboard-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;padding:22px 24px;margin-bottom:24px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.dashboard-actions h2{font-size:18px}.dashboard-actions p{font-size:12px;margin-top:5px}
.dashboard-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
@media(max-width:700px){.dashboard-actions{padding:18px}.dashboard-buttons{width:100%;gap:10px}.dashboard-buttons .button{width:100%}.dashboard-buttons .text-link{padding:10px 0}}

/* v261107_r3 YouTube thumbnail cards */
.video-thumbnail{position:relative;display:block;flex:0 0 160px;width:160px;aspect-ratio:16/9;overflow:hidden;border-radius:8px;background:var(--blue-pale)}
.video-thumbnail-fallback{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;padding:6px;color:var(--muted);font-size:10px}
.video-thumbnail-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.video-thumbnail .video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:36px;height:26px;font-size:14px;border-radius:6px;background:#b93832e6}
@media(max-width:700px){.related-video-card{flex-direction:column}.video-thumbnail{flex:none;width:100%}.video-thumbnail .video-play{width:48px;height:34px;font-size:18px}}

/* v261107_r4 Subject selection */
.question-subjects .subject-card h2{font-size:17px;margin:4px 0 12px}.question-subjects .subject-card{min-height:220px}.all-subjects-link{margin-top:18px}.back-link+.filter-panel{margin-top:14px}
@media(max-width:700px){.question-subjects .subject-card{min-height:190px}.question-subjects .subject-card h2{font-size:16px}}

/* v261107_r5 User's yellow-green main color and subject accents */
:root{--primary:#c8dd6a;--primary-hover:#b9d052;--bg:#f7f8f2;--surface:#fff;--text:#283528;--muted:#697365;--line:#e1e6d7;--brand:#52661d;--accent:#52661d;--blue-pale:#f0f5dc;--green:#35724d;--green-pale:#edf5eb}
:root[data-theme=dark]{--primary:#c8dd6a;--primary-hover:#d4e68c;--bg:#192119;--surface:#243025;--text:#edf1e5;--muted:#b3beaa;--line:#3d4c37;--brand:#d3e58a;--accent:#d3e58a;--blue-pale:#354327;--green:#a4d6ad;--green-pale:#293f2d}
.button,.exam-tabs button.active{background:var(--primary);color:#293715}.button:hover{background:var(--primary-hover);color:#293715}.button.secondary{background:var(--surface);color:var(--brand)}.button.secondary:hover{background:var(--blue-pale);color:var(--brand)}
.sidebar nav [aria-current=page]{box-shadow:inset 3px 0 var(--primary)}
[data-subject=planning]{--subject-color:#287a90;--subject-pale:#e6f2f6}
[data-subject=environment]{--subject-color:#3e7d45;--subject-pale:#eaf4e5}
[data-subject=law]{--subject-color:#8150a5;--subject-pale:#f1eaf8}
[data-subject=structure]{--subject-color:#ad6025;--subject-pale:#fcf0e2}
[data-subject=construction]{--subject-color:#4b65ab;--subject-pale:#eaf0fc}
:root[data-theme=dark] [data-subject=planning]{--subject-color:#8ed3e5;--subject-pale:#233e45}
:root[data-theme=dark] [data-subject=environment]{--subject-color:#a2d894;--subject-pale:#2c4027}
:root[data-theme=dark] [data-subject=law]{--subject-color:#cdb1eb;--subject-pale:#3b2d4b}
:root[data-theme=dark] [data-subject=structure]{--subject-color:#efbb83;--subject-pale:#493727}
:root[data-theme=dark] [data-subject=construction]{--subject-color:#a6bdf4;--subject-pale:#2c3551}
.question-subjects .subject-card{border-top:4px solid var(--subject-color)}.question-subjects .subject-icon{background:var(--subject-pale);color:var(--subject-color)}.question-subjects .thin-progress>span{background:var(--subject-color)}
.subject-badge[data-subject]{color:var(--subject-color);background:var(--subject-pale);border-radius:5px;padding:3px 9px}
.question-row[data-subject]{border-left:4px solid var(--subject-color)}.study-card[data-subject]{border-top:4px solid var(--subject-color)}.subject-stat[data-subject] progress{accent-color:var(--subject-color)}.subject-stat[data-subject] progress::-webkit-progress-value{background:var(--subject-color)}
.year-filter>p{font-size:11px;color:var(--muted);font-weight:600;margin-bottom:9px}.year-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.year-buttons button{min-height:44px;min-width:87px;padding:9px 14px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:12px}.year-buttons button:hover{background:var(--blue-pale)}.year-buttons button[aria-pressed=true]{color:#293715;background:var(--primary);border-color:var(--primary);font-weight:700}
.question-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.question-filter-grid label{display:grid;gap:7px;font-size:11px;font-weight:600;color:var(--muted)}
.sidebar .brand{display:block;text-align:center}.sidebar .sapo-logo{display:block;width:135px;height:auto;margin:0 auto}.sidebar .brand small{display:block;font-size:10px;letter-spacing:0;color:var(--muted);margin-top:5px}.sidebar-label{margin-top:25px}.mobile-brand .sapo-logo{width:65px;height:53px;object-fit:contain}
.learning-welcome{display:flex;align-items:center;gap:24px;padding:20px 28px;margin-bottom:24px;background:var(--blue-pale);border-radius:14px;animation:learning-enter .55s ease-out both}.learning-welcome>img{width:116px;height:105px;object-fit:contain}.learning-welcome h2{font-size:21px}.learning-welcome p{font-size:13px;color:var(--muted);margin-top:6px}
.study-cheer{width:95px;height:85px;object-fit:contain}.dashboard-actions{justify-content:flex-start}.dashboard-actions .dashboard-buttons{margin-left:auto}.completion-mascot{display:block;width:160px;height:146px;object-fit:contain;margin:0 auto 20px;animation:learning-celebrate .7s ease-out both}.understanding-cheer{display:flex;align-items:center;gap:10px;margin-bottom:15px;font-size:12px;color:var(--green)}.understanding-cheer img{object-fit:contain;animation:learning-celebrate .7s ease-out both}
.question-subjects .subject-card{transition:transform .2s,border-color .2s,box-shadow .2s}.question-subjects .subject-card:hover{transform:translateY(-4px);box-shadow:0 7px 20px #25382710}.question-subjects .subject-card:active{transform:translateY(0)}
@keyframes learning-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes learning-celebrate{0%{opacity:0;transform:scale(.85)}60%{opacity:1;transform:scale(1.06)}100%{opacity:1;transform:scale(1)}}
@media(max-width:700px){.question-filter-grid{grid-template-columns:1fr}.year-buttons{gap:7px}.year-buttons button{flex:1 0 25%;min-width:75px}.learning-welcome{padding:16px;gap:16px}.learning-welcome>img{width:75px;height:69px}.learning-welcome h2{font-size:16px}.learning-welcome p{font-size:11px}.study-cheer{width:65px;height:60px}.dashboard-actions>.dashboard-buttons{margin-left:0}.completion-mascot{width:135px;height:123px}}
@media(prefers-reduced-motion:reduce){.learning-welcome,.completion-mascot,.understanding-cheer img{animation:none}.question-subjects .subject-card{transition:none}.question-subjects .subject-card:hover{transform:none}}

/* v261107_r6 Bright, white-first learning space matching the homepage. */
:root{--bg:#fbfcf7;--surface:#fff;--text:#2b3528;--muted:#6c7664;--line:#e8ecdf;--brand:#536923;--accent:#647d2b;--blue-pale:#f3f8df;--shadow:0 3px 16px #4c622508;color-scheme:light}
:root:not([data-theme=dark]) .topbar{background:#c8dd6a;border-bottom:0}
:root:not([data-theme=dark]) .topbar-title,:root:not([data-theme=dark]) .topbar .icon-button{color:#31441a}
:root:not([data-theme=dark]) .demo-pill{background:#ffffffb3;color:#465725}
:root:not([data-theme=dark]) .sample-notice{background:#f4f8e4;color:#60713c}
:root:not([data-theme=dark]) .sidebar{background:#fff;border-right-color:#edf0e5}
:root:not([data-theme=dark]) .exam-countdown{background:linear-gradient(115deg,#f9fce9,#fff 80%);border-color:#e5edc9;border-top-color:#c8dd6a;box-shadow:0 4px 18px #72833b07}
:root:not([data-theme=dark]) .countdown-number{color:#637f22}
:root:not([data-theme=dark]) .metrics>div,:root:not([data-theme=dark]) .content-panel,:root:not([data-theme=dark]) .dashboard-actions,:root:not([data-theme=dark]) .filter-panel{border-color:#e8eddf;box-shadow:0 4px 18px #60743705}
.learning-photo{position:relative;overflow:hidden;border-radius:14px;margin-bottom:30px;background:#f4f4e8}.learning-photo>img{display:block;width:100%;height:auto;aspect-ratio:3.8;object-fit:cover;object-position:left 20%}.learning-photo>p{position:absolute;left:22px;bottom:16px;background:#fffffff0;border-radius:8px;padding:7px 15px;color:#425525;font-size:16px;font-weight:700;letter-spacing:.04em}
@media(max-width:700px){.learning-photo{margin-bottom:22px;border-radius:10px}.learning-photo>img{max-height:none;aspect-ratio:2.4;object-fit:cover}.learning-photo>p{left:10px;bottom:8px;font-size:11px;padding:4px 9px}.topbar{height:65px}}

/* v261107_r7 Answer identity and outcome must be readable without relying on color. */
.answer-result{margin:24px 0 20px;padding:22px 24px;border:2px solid;border-radius:12px;scroll-margin-top:24px;outline-offset:4px}
.answer-result.result-correct{background:#edf8f0;border-color:#278048;color:#155e31}.answer-result.result-incorrect{background:#fff0f1;border-color:#c83c4d;color:#a32435}.answer-result.result-pending,.answer-result.result-credit{background:var(--blue-pale);border-color:var(--brand);color:var(--brand)}
.answer-result-heading{display:flex;align-items:center;gap:16px}.answer-result-symbol{font-size:56px;font-weight:800;line-height:1;flex-shrink:0}.answer-result-heading p{font-size:11px;font-weight:600}.answer-result-heading h2{font-size:28px;color:inherit;line-height:1.4}.answer-result-details{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.answer-result-details>div{padding:12px 16px;border-radius:8px;background:#ffffffd9}.answer-result-details span{display:block;font-size:12px;font-weight:600}.answer-result-details strong{display:block;font-size:21px;line-height:1.6}.answer-result-note{font-size:12px;margin-top:12px}
.choice-content{display:block;flex:1;min-width:0}.choice-content>.choice-text{display:block}.choice-states{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:8px}.choice-state{display:inline-block;padding:3px 10px;border-radius:5px;font-size:12px;font-weight:700;line-height:1.6;white-space:nowrap}.choice-state.your-answer{background:#263c50;color:#fff}.choice-state.correct-answer{background:#247744;color:#fff}.choice-state.incorrect-answer{background:#bc3044;color:#fff}
.answer-choices .choice:disabled{opacity:1;color:var(--text);background:var(--surface);cursor:default}.answer-choices .choice:disabled.right-answer{background:#edf8f0;border:2px solid #278048;box-shadow:none}.answer-choices .choice:disabled.wrong-answer{background:#fff0f1;border:2px solid #c83c4d;box-shadow:none}.answer-choices .choice:disabled.selected:not(.right-answer):not(.wrong-answer){background:var(--blue-pale);border:2px solid var(--brand);box-shadow:none}
.answer-choices .choice.right-answer .choice-number{background:#247744;color:#fff}.answer-choices .choice.wrong-answer .choice-number{background:#bc3044;color:#fff}.answer-choices .choice.selected:not(.right-answer):not(.wrong-answer) .choice-number{background:#263c50;color:#fff}.answered-choices .choice:not(.selected):not(.right-answer){border-color:var(--line);box-shadow:none}.choice.with-figure .choice-mark{grid-column:2;justify-self:end}
:root[data-theme=dark] .answer-result.result-correct,:root[data-theme=dark] .answer-choices .choice:disabled.right-answer{background:#203f2b;color:#e3f5e7;border-color:#80c898}
:root[data-theme=dark] .answer-result.result-incorrect,:root[data-theme=dark] .answer-choices .choice:disabled.wrong-answer{background:#492b32;color:#ffe7eb;border-color:#f18a9c}
:root[data-theme=dark] .answer-result-details>div{background:#ffffff12}
@media(max-width:700px){.answer-result{padding:18px 15px;margin:20px 0 16px}.answer-result-heading{gap:12px}.answer-result-symbol{font-size:46px}.answer-result-heading h2{font-size:24px}.answer-result-details{gap:8px;margin-top:14px}.answer-result-details>div{padding:10px}.answer-result-details strong{font-size:17px}.answer-result-details span,.choice-state{font-size:11px}.choice-state{padding:3px 8px}.choice-states{gap:5px}.text-choices .choice{gap:10px}.choice-mark{font-size:25px}}

/* v261107_r8 Keep continuing separate from finishing. */
.finish-study-link{font-size:11px;color:var(--muted);padding:8px 0 8px 14px;text-decoration:underline;text-underline-offset:4px;background:none;border:0}
.finish-study-link:hover{color:var(--text);background:none}.study-complete-note{font-size:12px;color:var(--muted);margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}
.answered-choices+.study-navigation{margin-top:26px;padding-top:20px;border-top:1px solid var(--line)}
@media(max-width:700px){.finish-study-link{font-size:10px;min-height:44px}.study-navigation .button{min-height:46px}.study-complete-note{font-size:11px}}

/* v261107_r9 Subtle background result marks. */
.answer-result{position:relative;isolation:isolate;overflow:hidden}
.answer-result .answer-result-symbol{position:absolute;right:20px;top:50%;transform:translateY(-50%);font-size:210px;font-weight:700;line-height:1;opacity:.075;pointer-events:none;user-select:none;z-index:0}
.answer-result-heading>div,.answer-result-details,.answer-result-note{position:relative;z-index:1}
@media(max-width:700px){.answer-result .answer-result-symbol{right:8px;font-size:180px}}

/* v261107_r10 Show the result directly on each choice, without a separate card. */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.answer-choices{scroll-margin-top:24px;outline:none}
.answer-choices .choice{position:relative;isolation:isolate;overflow:hidden}
.answer-choices .choice.right-answer,.answer-choices .choice.wrong-answer{min-height:110px}
.answer-choices .choice>.choice-number,.answer-choices .choice>.choice-content,.answer-choices .choice>.choice-visual{position:relative;z-index:1}
.answer-choices .choice .choice-mark{position:absolute;inset:0 14px 0 auto;display:flex;align-items:center;justify-content:center;width:120px;margin:0;font-size:110px;font-weight:700;line-height:1;opacity:.09;pointer-events:none;user-select:none;z-index:0;grid-column:auto}
.answer-choices .choice.right-answer .choice-mark{color:#247744}.answer-choices .choice.wrong-answer .choice-mark{color:#bc3044}
:root[data-theme=dark] .answer-choices .choice .choice-mark{opacity:.14}
:root[data-theme=dark] .answer-choices .choice.right-answer .choice-mark{color:#a2dbb4}:root[data-theme=dark] .answer-choices .choice.wrong-answer .choice-mark{color:#f7a7b5}

/* v261107_r11 Daily study activity inside the countdown panel. */
.study-calendar{grid-column:1/-1;border-top:1px solid var(--line);padding-top:22px;min-width:0}
.calendar-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}.calendar-heading h3{font-size:17px;margin:0}.calendar-heading p{font-size:12px;color:var(--muted);margin-top:4px}.calendar-heading p strong{font-size:16px;color:var(--text)}
.calendar-month-controls{display:flex;align-items:center;gap:8px}.calendar-month-controls h4{font-size:15px;min-width:105px;text-align:center;margin:0;color:var(--text)}.calendar-month-controls>button{height:40px;min-width:38px;border:1px solid var(--line);border-radius:7px;background:var(--surface);font-size:25px;line-height:1}.calendar-month-controls>button:hover{background:var(--blue-pale)}.calendar-month-controls .calendar-this-month{font-size:11px;padding:0 11px;margin-left:4px}
.calendar-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:5px;margin:0;background:none}.calendar-table th,.calendar-table td{border:0;padding:0;background:none;color:var(--text);text-align:center;vertical-align:top}.calendar-table th{font-size:11px;font-weight:500;padding-bottom:5px;color:var(--muted)}.calendar-table th:first-child{color:#b35d61}.calendar-table th:last-child{color:#5d7ba0}
.study-calendar .heat-0{background:#f4f5ef;color:#87917c}.study-calendar .heat-1{background:#f1f5d6;color:#566d28}.study-calendar .heat-2{background:#dbe9a8;color:#40561c}.study-calendar .heat-3{background:#b9d773;color:#304715}.study-calendar .heat-4{background:#729c3c;color:#fff}
.calendar-day{display:flex;flex-direction:column;justify-content:space-between;gap:5px;min-height:74px;width:100%;border:2px solid transparent;border-radius:9px;padding:7px 9px;text-align:left;transition:box-shadow .15s}.calendar-day:hover{box-shadow:0 0 0 1px var(--brand)}.calendar-day.is-today{border-color:var(--primary)}.calendar-day[aria-pressed=true]{outline:2px solid var(--brand);outline-offset:1px}.calendar-day.is-future:not(.is-today){opacity:.6}.calendar-date{display:flex;align-items:center;justify-content:space-between;gap:3px;font-size:12px;font-weight:600}.calendar-date>small{font-size:9px;font-weight:400}.calendar-count{font-size:16px;font-weight:700;line-height:1.3}.calendar-count>small{font-size:10px;margin-left:3px;font-weight:400}.calendar-day.heat-0 .calendar-count{font-size:12px;font-weight:400}.calendar-gauge{display:block;height:3px;width:100%;border-radius:4px;background:#657b2420;overflow:hidden}.calendar-gauge>span{display:block;height:100%;border-radius:4px;background:currentColor}.calendar-empty{height:0}
.calendar-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 5px 0;color:var(--muted);font-size:10px}.calendar-foot>p{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.calendar-legend{display:inline-block;min-width:28px;padding:2px 5px;border-radius:4px;text-align:center;font-size:9px}.calendar-day-detail{display:flex;align-items:center;gap:16px;flex-wrap:wrap;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:12px 16px;margin-top:14px;font-size:12px}.calendar-day-detail time{font-weight:600;color:var(--muted)}.calendar-day-detail strong{font-size:15px;color:var(--brand)}.calendar-day-detail>span{color:var(--muted);font-size:11px}
:root[data-theme=dark] .study-calendar .heat-0{background:#2d382c;color:#b2bda6}:root[data-theme=dark] .study-calendar .heat-1{background:#394a2b;color:#d3e69f}:root[data-theme=dark] .study-calendar .heat-2{background:#4e6930;color:#e5f3b7}:root[data-theme=dark] .study-calendar .heat-3{background:#759840;color:#f8ffe9}:root[data-theme=dark] .study-calendar .heat-4{background:#a7c960;color:#233617}
@media(max-width:700px){.study-calendar{padding-top:18px}.calendar-heading{gap:12px}.calendar-heading h3{font-size:16px}.calendar-month-controls{width:100%;justify-content:center;gap:6px}.calendar-month-controls>button{min-height:44px}.calendar-table{border-spacing:3px}.calendar-day{min-height:64px;padding:5px 3px;border-radius:6px;gap:5px}.calendar-date{font-size:10px;flex-direction:column;align-items:flex-start;gap:0;min-height:23px}.calendar-date>small{font-size:8px;line-height:1.1}.calendar-count{font-size:12px}.calendar-count>small{font-size:8px;margin-left:1px}.calendar-day-detail{gap:6px 12px;padding:11px 12px}.calendar-foot{font-size:9px;gap:6px}.calendar-legend{min-width:25px;padding:2px 4px;font-size:8px}}

/* v261108_r72 Center the verdict mark on the answer card itself. */
.answer-flash{position:absolute;left:var(--answer-flash-left);top:var(--answer-flash-top);width:var(--answer-flash-width);height:var(--answer-flash-height);z-index:1500;display:block;border-radius:14px;background:#ffffff66;pointer-events:none;animation:answer-flash-fade 1s ease-out both}
.answer-flash[data-verdict=correct]{color:#238248}.answer-flash[data-verdict=incorrect]{color:#ce304c}
.answer-flash-mark{position:absolute;display:block;left:50%;top:50%;width:var(--answer-flash-size);height:var(--answer-flash-size);transform:translate(-50%,-50%)}
.answer-flash[data-verdict=correct] .answer-flash-mark{border:var(--answer-flash-stroke) solid currentColor;border-radius:50%;box-sizing:border-box}
.answer-flash[data-verdict=incorrect] .answer-flash-mark::before,.answer-flash[data-verdict=incorrect] .answer-flash-mark::after{content:"";position:absolute;left:0;top:50%;width:100%;height:var(--answer-flash-stroke);border-radius:20px;background:currentColor;transform:translateY(-50%) rotate(45deg)}
.answer-flash[data-verdict=incorrect] .answer-flash-mark::after{transform:translateY(-50%) rotate(-45deg)}
.answer-flash-label{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);font-size:clamp(22px,4vmin,38px);font-weight:800;line-height:1.3;white-space:nowrap;background:#fffffff2;padding:5px 18px;border-radius:10px}
@keyframes answer-flash-fade{0%{opacity:0}12%,72%{opacity:1}100%{opacity:0}}
:root[data-theme=dark] .answer-flash{background:#18211955}:root[data-theme=dark] .answer-flash[data-verdict=correct]{color:#7cdb9e}:root[data-theme=dark] .answer-flash[data-verdict=incorrect]{color:#ff94a8}
@media(prefers-reduced-motion:reduce){.answer-flash{animation:none}}
@media print{.answer-flash{display:none!important}}

/* v261107_r13 A small calendar beside the countdown, not a full-width panel. */
.exam-countdown:has(.study-calendar){grid-template-columns:minmax(0,1fr) auto 268px;gap:12px 20px;padding:20px 24px}
.exam-countdown:has(.study-calendar)>.countdown-settings{grid-column:1/3;grid-row:2;align-self:end}
.exam-countdown .study-calendar{grid-column:3;grid-row:1/3;width:268px;border-top:0;border-left:1px solid var(--line);padding:0 0 0 16px;align-self:start}
.study-calendar .calendar-heading{margin:0 0 4px;display:block}.study-calendar .calendar-heading>div:first-child{display:none}
.study-calendar .calendar-month-controls{width:100%;justify-content:center;gap:5px}.study-calendar .calendar-month-controls h4{font-size:12px;min-width:85px}.study-calendar .calendar-month-controls>button{height:26px;min-height:26px;min-width:26px;font-size:20px;border-radius:5px}.study-calendar .calendar-month-controls .calendar-this-month{font-size:9px;padding:0 7px;margin-left:2px}
.study-calendar .calendar-table{border-spacing:3px 2px}.study-calendar .calendar-table th{font-size:9px;padding-bottom:2px}
.study-calendar .calendar-day{min-height:23px;height:23px;padding:2px 3px;gap:1px;border-width:1px;border-radius:4px}.study-calendar .calendar-date{font-size:10px;min-height:0;display:block;text-align:center;width:100%;line-height:1.2}.study-calendar .calendar-date>small,.study-calendar .calendar-count{display:none}.study-calendar .calendar-gauge{height:2px}.study-calendar .calendar-day[aria-pressed=true]{outline-width:1px;outline-offset:0}
.study-calendar .calendar-foot{padding:4px 2px 0;font-size:8px;gap:3px}.study-calendar .calendar-foot>p{gap:3px;line-height:1.3}.study-calendar .calendar-foot>span{display:none}.study-calendar .calendar-legend{font-size:8px;min-width:22px;padding:1px 3px;border-radius:3px}
.study-calendar .calendar-day-detail{padding:5px 7px;margin-top:5px;gap:5px 8px;border:0;background:var(--blue-pale);font-size:9px;border-radius:5px}.study-calendar .calendar-day-detail strong{font-size:11px}.study-calendar .calendar-day-detail>span{font-size:9px}
@media(max-width:980px){.exam-countdown:has(.study-calendar){grid-template-columns:minmax(0,1fr) 248px;gap:12px 18px}.exam-countdown:has(.study-calendar)>.countdown-number{grid-column:1;grid-row:2;justify-self:start}.exam-countdown:has(.study-calendar)>.countdown-settings{grid-column:1;grid-row:3}.exam-countdown .study-calendar{grid-column:2;grid-row:1/4;width:248px}.exam-countdown:has(.study-calendar) .countdown-number strong{font-size:46px}.exam-countdown:has(.study-calendar) h2{font-size:17px}}
@media(max-width:700px){.exam-countdown:has(.study-calendar){grid-template-columns:minmax(0,1fr);padding:18px;gap:14px}.exam-countdown .study-calendar{grid-column:1;grid-row:3;width:min(268px,100%);justify-self:center;padding:0;border-left:0}.exam-countdown:has(.study-calendar)>div:first-child{grid-column:1}.exam-countdown:has(.study-calendar)>.countdown-settings{grid-column:1;grid-row:4}.study-calendar .calendar-day{min-height:27px;height:27px}.study-calendar .calendar-month-controls>button{height:30px;min-height:30px}}

/* v261107_r14 Learning targets, review cycle and evidence-based progress. */
.plan-page{display:grid;gap:20px}.plan-page .content-panel h2{margin-bottom:15px}.plan-targets{display:grid;grid-template-columns:1.3fr 1fr 1.3fr;gap:20px;margin:18px 0}.plan-targets>div{padding:16px;background:var(--blue-pale);border-radius:9px}.plan-targets span,.plan-summary span{display:block;font-size:11px;color:var(--muted)}.plan-targets strong{display:block;font-size:29px;line-height:1.6;font-weight:750}.plan-targets strong small{font-size:13px;font-weight:500}.plan-targets b{font-size:12px;color:var(--brand)}
.plan-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0}.plan-summary>div{border-left:3px solid var(--primary);padding:5px 12px}.plan-summary strong{display:block;font-size:25px;line-height:1.6}.plan-summary small{font-size:11px;font-weight:400;color:var(--muted)}.plan-review-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}
.plan-year-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}.plan-year{border:1px solid var(--line);padding:15px 18px;border-radius:9px;min-width:0}.plan-year-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.plan-year-title h3{font-size:15px}.plan-year-title>span{font-size:10px}.goal-met{color:var(--green);font-weight:700}.plan-year-score{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:9px 0}.plan-year-score strong{font-size:24px;white-space:nowrap}.plan-year-score small{font-size:12px;font-weight:400;color:var(--muted)}.plan-year-score>span{font-size:11px;color:var(--muted)}.plan-year progress{display:block;width:100%;height:7px;accent-color:var(--accent)}.plan-year .small-muted{font-size:9px;margin-top:7px}
.plan-subjects{display:grid;gap:10px;margin:16px 0}.plan-subjects>div{display:grid;grid-template-columns:130px minmax(0,1fr);gap:4px 16px;border-left:3px solid var(--subject-color);padding:10px 14px;background:var(--bg);border-radius:6px}.plan-subjects b{font-size:13px;color:var(--subject-color)}.plan-subjects span{font-size:12px}.plan-subjects small{grid-column:2;color:var(--muted);font-size:10px}
.plan-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.plan-steps article{background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:18px}.plan-step-number{display:grid;place-items:center;width:30px;height:30px;background:var(--primary);color:#293715;font-weight:700;border-radius:50%;margin-bottom:12px}.plan-steps h3{font-size:15px;margin-bottom:10px}.plan-steps p{font-size:12px;line-height:1.9;color:var(--muted)}.plan-steps b{display:block;margin-top:12px;font-size:12px;color:var(--brand)}.plan-note{margin:18px 0 12px;font-size:12px;line-height:1.9}.plan-note p{font-size:12px;color:var(--muted);margin-top:6px}
.plan-inputs{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}.plan-inputs label{display:grid;gap:6px;color:var(--muted);font-size:11px}.plan-inputs input{width:100%;min-height:44px;font:inherit;font-size:14px;padding:10px 12px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:7px}.plan-inputs small{font-size:10px}.plan-estimate{padding:15px;background:var(--blue-pale);border-radius:8px;font-size:13px;margin-bottom:12px}.plan-estimate strong{color:var(--brand)}
@media(max-width:980px){.plan-targets{grid-template-columns:1fr;gap:10px}.plan-targets>div{padding:12px 16px}.plan-targets strong{font-size:26px}.plan-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.plan-steps{grid-template-columns:1fr}.plan-steps article{padding:16px}.plan-step-number{float:left;margin:0 12px 10px 0}}
@media(max-width:700px){.plan-page{gap:16px}.plan-year-list,.plan-inputs{grid-template-columns:1fr}.plan-year{padding:15px}.plan-targets{margin:14px 0}.plan-summary{gap:14px 8px}.plan-summary>div{padding:4px 8px}.plan-summary strong{font-size:22px}.plan-summary span{font-size:9px}.plan-subjects>div{grid-template-columns:1fr;padding:12px}.plan-subjects small{grid-column:1}.plan-year-score strong{font-size:23px}.plan-review-actions .button{width:100%}.mobile-nav{grid-template-columns:repeat(6,1fr)}.mobile-nav span{font-size:8px}}

/* v261107_r16 geological survey */
.exam-selector{max-width:100%}.exam-tabs{flex-wrap:wrap}.geo-departments{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;max-width:500px}.geo-departments [aria-pressed="true"]{background:var(--primary,#c8dd6a);color:#23331b}.geo-resources{margin:16px 0;padding:14px;border:1px solid #dce5cf;border-radius:12px}.geo-resources summary{cursor:pointer;font-weight:700}.geo-draft{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid #cbd5bd;border-radius:8px;font:inherit;resize:vertical}.geo-resources img{max-height:1100px;object-fit:contain}.subject-card:nth-child(6n+1){--subject-color:#27877d}.subject-card:nth-child(6n+2){--subject-color:#5e963e}.subject-card:nth-child(6n+3){--subject-color:#9571ba}.subject-card:nth-child(6n+4){--subject-color:#d88a39}.subject-card:nth-child(6n+5){--subject-color:#478db0}.subject-card:nth-child(6n){--subject-color:#b86783}

/* v261107_r17 learning continuity and mobile */
.today-learning{margin-bottom:24px}.today-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.today-grid article{padding:18px;background:#f8faef;border:1px solid #e1e7cf;border-radius:14px;min-width:0}.today-grid .button{margin:4px 6px 4px 0}.today-grid p{overflow-wrap:anywhere}.dashboard-details>summary{padding:18px;cursor:pointer;color:var(--text);font-weight:700}.study-card{font-size:calc(1rem * var(--study-font-scale,1))}.study-card .question-stem,.study-card .question-body,.study-card .choice-text{font-size:1em}.study-jumps{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.study-jumps button{padding:10px;border:1px solid #d5dfc4;border-radius:10px;background:var(--surface,#fff);color:inherit}.study-navigation,.answer-action{position:static!important}.study-card [id],.question-stem{scroll-margin-top:18px}.confidence-control{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0;padding:14px;background:#fff8e6;border-radius:10px;color:#3a321a}.confidence-control input{width:22px;height:22px}.confidence-control small{flex-basis:100%}.material-edit{display:grid;gap:14px;margin-top:20px}.material-edit textarea,.material-edit input,.material-edit select,.report-item textarea,#problemReport{display:block;width:100%;font:inherit;padding:10px;border:1px solid #cbd7ba;border-radius:8px;color:var(--text);background:var(--surface,#fff)}.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}.report-item{padding:18px 0;border-bottom:1px solid #d6dfc9}#materialPreview{padding:16px;background:#f7faef;color:#22351d}.material-content details{padding:10px 0}#figureDialog{width:min(96vw,1200px);max-width:96vw;height:90dvh;max-height:94dvh;padding:16px;border:1px solid #d9e4c7;border-radius:14px}#figureDialog::backdrop{background:#182315bb}.figure-controls{display:flex;gap:8px;flex-wrap:wrap}.figure-controls button{padding:10px 14px;border:1px solid #c8d6ae;border-radius:9px;background:#eff5df;color:#26351a}#figureViewport{height:calc(100% - 100px);overflow:auto;touch-action:pan-x pan-y;cursor:grab;background:white}#figureImage{display:block;max-width:none!important;object-fit:contain;user-select:none;-webkit-user-drag:none}.figure-shortcuts{display:flex;flex-wrap:wrap;gap:10px}.setting-section input[type=checkbox]{width:20px;height:20px}.today-learning h1{font-size:1.6rem}
@media(max-width:700px){.today-grid{grid-template-columns:1fr}.today-learning{padding:18px}.today-learning .section-heading{display:block}.today-learning .exam-selector{margin-top:16px}.exam-tabs button{min-height:42px}.material-edit textarea{font-size:16px}.study-jumps{font-size:.85rem}.study-card{padding:18px!important}.study-navigation{gap:8px;flex-wrap:wrap}.study-navigation .button{min-height:44px}.workspace{padding-bottom:88px}.today-grid article{padding:16px}.today-learning h1{margin-top:0}.material-edit{min-width:0}.page-heading{flex-wrap:wrap}#figureDialog{padding:10px}#main{min-width:0}}
:root[data-theme=dark] .today-grid article{background:var(--surface);border-color:var(--line)}.sidebar{overflow-y:auto}.feedback .material-content{font-size:calc(1rem * var(--study-font-scale,1))}

/* v261107_r21 qualification selection belongs to navigation */
.qualification-menu{margin-top:22px}.qualification-menu>p{font-size:11px;color:var(--muted);margin-bottom:8px}.qualification-menu .exam-tabs{display:grid;width:100%;gap:3px}.qualification-menu .exam-tabs button{text-align:left;white-space:normal;min-height:40px}.qualification-menu .geo-departments{display:grid;margin-top:8px}.qualification-menu .geo-departments button{text-align:left;font-size:11px;white-space:normal}.qualification-menu+.sidebar-label{margin-top:24px}.mobile-exam-menu{display:none}#dialogBody .exam-selector{margin:16px 0}#dialogBody .exam-tabs{flex-wrap:wrap}#dialogBody .geo-departments{max-width:100%}
@media(max-width:980px){.mobile-exam-menu{display:flex;align-items:center;gap:4px;max-width:200px;min-height:40px;border:1px solid var(--line);border-radius:8px;padding:6px 10px;background:var(--surface);font-size:12px}.mobile-exam-menu span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar .demo-pill{display:none}}
@media(max-width:480px){.mobile-exam-menu{max-width:160px}.topbar>div{gap:4px}}
/* v261107_r25: infrequent qualification selection at the end of the sidebar */
.sidebar>.qualification-menu{margin-top:20px;padding-top:16px;border-top:1px solid var(--line);flex-shrink:0}

/* v261107_r26 explanations for learning choices */
.today-grid .learning-help-link{display:block;min-height:40px;padding:8px 0;margin-top:8px;font-size:12px;text-decoration:underline;text-underline-offset:3px}.learning-help h3{margin:20px 0 8px}.learning-help p{margin:10px 0}.learning-help ol{padding-left:22px;line-height:1.9}.learning-help li+li{margin-top:8px}

.all-subjects-heading{margin:26px 0 16px}
/* v261107_r28 keep help beside the title, without adding another row */
.learning-card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:nowrap}.learning-card-heading h2{flex:0 0 auto;white-space:nowrap}.today-grid .learning-card-heading .learning-help-link{display:inline-block;flex:0 1 auto;min-width:0;max-width:52%;min-height:30px;margin:0;padding:3px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right;font-size:11px}
@media(min-width:701px) and (max-width:1200px){.learning-card-heading h2{font-size:16px}.today-grid .learning-card-heading .learning-help-link{font-size:10px}}
/* v261107_r31 readable study metadata without extra label rows */
.study-card .row-meta{font-size:calc(1rem * var(--study-font-scale,1));line-height:1.6;color:var(--text);gap:10px;margin-bottom:16px}.study-card .row-meta .subject-badge{font-size:.875em;padding:4px 10px}
/* v261107_r34 keep pass and submit adjacent */
.study-answer-buttons{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;margin-left:auto}.study-answer-buttons .button{white-space:nowrap}
@media(max-width:420px){.study-answer-buttons .button{padding-left:10px;padding-right:10px}}
/* v261107_r35 show question units without adding rows */
.question-dots span{display:flex;align-items:center;justify-content:center;gap:1px}.question-dots span small{font-size:.8em;font-weight:400}

/* v261107_r36 compact exercise verdict marks behind the number */
.question-dots>span{position:relative;isolation:isolate}
.question-dots .dot-label{position:relative;z-index:1;display:flex;align-items:center;gap:1px;font-weight:inherit}
.question-dots .done-correct::before,.question-dots .done-wrong::before{content:"";position:absolute;inset:5px;opacity:.18;pointer-events:none}
.question-dots .done-correct::before{border:2px solid currentColor;border-radius:50%}
.question-dots .done-wrong::before{background:linear-gradient(currentColor,currentColor) center/3px 100% no-repeat,linear-gradient(currentColor,currentColor) center/100% 3px no-repeat;transform:rotate(45deg)}
/* Development-only question source preview */
.study-card .row-meta .development-source-link{padding:2px 0;color:var(--muted);font-size:11px;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.development-source-pages figure{margin-top:18px}.development-source-pages img{display:block;width:100%;height:auto;background:#fff}.development-source-pages figcaption{text-align:left;color:var(--text)}
#settingsDialog:has(.development-source-pages){width:min(1000px,96vw);max-width:96vw}
@media print{.development-source-link{display:none!important}}
/* v261107_r40 compact field accuracy bars */
.field-stats>.field-stat{display:grid;gap:6px;min-width:0;border-bottom:0;padding:10px 0}
.field-stat-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-width:0}
.field-stat-heading b{flex-shrink:0;color:var(--subject-color,var(--brand))}
.field-stat progress{height:5px;accent-color:var(--subject-color,var(--accent))}
.field-stat progress::-webkit-progress-value{background:var(--subject-color,var(--accent))}
.field-stat progress::-moz-progress-bar{background:var(--subject-color,var(--accent))}
.subject-accuracy-panel{position:relative;padding-bottom:54px}
.subject-progress-row{position:relative;padding-top:17px;line-height:0}
.subject-progress-row>progress{display:block}
.subject-rate-label,.subject-rate-empty{position:absolute;top:-3px;font-size:10px;line-height:1.4;color:var(--text);white-space:nowrap}
.subject-rate-label{left:clamp(18px,var(--subject-rate),calc(100% - 18px));transform:translateX(-50%);font-weight:700}
.subject-rate-empty{left:0;color:var(--muted)}
.subject-passing-line{position:absolute;z-index:2;border-left:2px solid #b8483f;filter:drop-shadow(0 0 1px var(--surface));pointer-events:none}
.subject-passing-label{position:absolute;transform:translateX(-50%);margin:0!important;padding:2px 7px;background:var(--surface);color:#9f352e!important;font-size:11px!important;font-weight:700;line-height:1.5!important;white-space:nowrap;pointer-events:none}
/* Reviewed geology text / single readable source image */
.geotechnical-source-figure .question-figure{max-width:900px;width:100%;border-radius:0}
/* Compact home encouragement; the existing learning entries remain close by. */
.study-coach{--coach-heading:#244c37;display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:12px;padding:12px 14px;margin:0 0 14px;border:1px solid var(--line);border-left:5px solid var(--primary,#c8dd6a);border-radius:10px;background:linear-gradient(110deg,#f5f9df,var(--surface));color:var(--text)}
.study-coach>img{width:52px;height:52px;object-fit:contain}
.study-coach-copy{min-width:0}.study-coach-main{line-height:1.9;overflow-wrap:anywhere}
.study-coach-label{display:inline-block;margin-right:10px;padding:3px 9px;border-radius:5px;background:#e2edbc;font-size:13px;font-weight:800;color:var(--coach-heading);vertical-align:2px}
.study-coach-copy h2{display:inline;font-size:clamp(20px,1.7vw,24px);font-weight:800;letter-spacing:.02em;line-height:1.5;margin:0 12px 0 0;color:var(--coach-heading)}.study-coach-copy p{display:inline;font-size:13px;line-height:1.8;margin:0}
.study-coach-meta{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;margin-top:4px}
.study-coach-evidence{display:flex;flex-wrap:wrap;gap:3px 12px;margin:0;flex:1 1 auto;min-width:0;font-size:11px;color:var(--muted)}
.study-coach-help{font-size:10px;white-space:nowrap}
.study-coach[data-coach-state=restart]{--coach-heading:#76551c;border-left-color:#e0b059;background:linear-gradient(110deg,#fff8e9,var(--surface))}
.study-coach[data-coach-state=review],.study-coach[data-coach-state=challenge]{--coach-heading:#205c70;border-left-color:#65a5b6}
.study-coach[data-coach-state=review] .study-coach-label,.study-coach[data-coach-state=challenge] .study-coach-label{background:#dceef0}
:root[data-theme=dark] .study-coach{--coach-heading:var(--text);background:var(--surface)}:root[data-theme=dark] .study-coach .study-coach-label{background:var(--bg);color:var(--primary)}
@media(max-width:700px){.study-coach{grid-template-columns:38px minmax(0,1fr);gap:8px;padding:10px}.study-coach>img{width:38px;height:38px;align-self:start;margin-top:4px}.study-coach-label{font-size:12px}.study-coach-copy h2{font-size:19px}.study-coach-copy p{font-size:12px}.study-coach-meta{gap:5px 9px}.study-coach-evidence{font-size:10px}}

/* Color illustrations identify the learning menus on desktop and mobile. */
.sidebar nav .illustrated-nav-icon{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px}
.learning-menu-icon{display:block;object-fit:contain;transition:transform .16s ease}
.sidebar nav .illustrated-nav-icon .learning-menu-icon{width:32px;height:32px}
.sidebar nav :is(a,button):has(.illustrated-nav-icon){padding-top:8px;padding-bottom:8px}
.sidebar nav :is(a,button):hover .learning-menu-icon{transform:translateY(-1px) rotate(-3deg)}
.mobile-nav .learning-menu-icon{width:26px;height:26px}
@media(prefers-reduced-motion:reduce){.learning-menu-icon{transition:none}.sidebar nav :is(a,button):hover .learning-menu-icon{transform:none}}

/* v261108_r8 Lead with the subject, year, question number and field. */
.question-row .question-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 12px;width:100%;margin:0;padding:0;border:0;background:none;text-align:left;color:var(--text);font-family:inherit;font-size:18px;font-weight:700;line-height:1.6;cursor:pointer;overflow-wrap:anywhere}
.question-heading .subject-badge{font-size:14px;font-weight:700;align-self:center;flex-shrink:0;padding:4px 10px}
.question-heading .question-identity{font-weight:800}
.question-heading .question-field{font-size:16px}
.question-heading:hover .question-identity,.question-heading:hover .question-field{text-decoration:underline;text-underline-offset:4px}
.question-heading:focus-visible{outline:2px solid var(--brand);outline-offset:5px;border-radius:3px}
.question-row .question-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:9px 0 0;font-size:12px;font-weight:400;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}
@media(max-width:700px){.question-row .question-heading{gap:4px 8px;font-size:16px}.question-heading .subject-badge{font-size:12px;padding:3px 8px}.question-heading .question-field{font-size:14px}.question-row .question-preview{font-size:11px;margin-top:8px}}
/* v261108_r11 Center the primary practice entry in the results area. */
.results-bar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:16px}
.results-actions{grid-column:2;display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.results-actions>.button{min-height:52px;padding:14px 24px;font-size:15px;font-weight:800;line-height:1.5;box-shadow:0 4px 12px #70872826;text-align:center}
@media(max-width:700px){.results-bar{grid-template-columns:minmax(0,1fr);gap:12px}.results-actions{grid-column:1;display:grid}.results-actions>.button{max-width:100%;padding:14px 20px;font-size:14px}}
.listening-study{margin-bottom:24px}.listening-feedback .feedback-title{background:var(--blue-pale);color:var(--brand)}.listening-feedback .choice-explanation{padding:16px 0;border-top:1px solid var(--line)}.listening-feedback .choice-explanation:first-of-type{border-top:0}.listening-feedback .choice-explanation b{display:block;margin-bottom:6px}
/* v261108_r13 Keep the page width stable when filters change the result height. */
html{scrollbar-gutter:stable}
@supports not (scrollbar-gutter:stable){html{overflow-y:scroll}}
/* v261108_r18 Persistent subject choices */
.question-subjects .subject-card[aria-pressed=true]{background:var(--blue-pale);outline:2px solid var(--brand);outline-offset:-2px}
.subject-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 18px}
.subject-list-heading .all-subjects-heading{margin:0;font-size:18px}
.subject-list-heading>.chip{flex-shrink:0}

/* v261108_r19 Three short steps explain the question filters. */
.filter-panel .filter-step{margin:0;padding:0}
.filter-panel .filter-step+.filter-step{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.filter-step .filter-step-title{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0 0 10px;font-size:14px;font-weight:700;color:var(--text);line-height:1.6}
.filter-step-number{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--blue-pale);color:var(--brand);font-size:13px;flex-shrink:0}
.filter-step-title small{font-size:11px;font-weight:400;color:var(--muted)}
.filter-step-help{font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 12px}
.filter-step .year-buttons{margin-bottom:0}
.filter-step .mode-chips{margin-top:0}
@media(max-width:700px){.filter-step .filter-step-title{font-size:13px}.filter-step-help{font-size:11px}.filter-panel .filter-step+.filter-step{margin-top:16px;padding-top:14px}}

/* v261108_r20 Keep each step heading and its explanation on one line. */
.filter-step-intro{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin-bottom:12px}
.filter-step-intro .filter-step-title{flex-shrink:0;margin:0}
.filter-step-intro .filter-step-help{margin:0}
/* v261108_r21 Dashboard title with two supporting lines on the right. */
.page-heading.dashboard-heading{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:20px}
.dashboard-heading h1{margin:0;white-space:nowrap}
.dashboard-heading-details{min-width:0}
.dashboard-heading-details .eyebrow{margin:0 0 4px}
.dashboard-heading-details .muted{margin:0;font-size:12px;line-height:1.7}
@media(max-width:700px){.page-heading.dashboard-heading{gap:12px}.dashboard-heading h1{font-size:20px}.dashboard-heading-details .eyebrow{font-size:8px;letter-spacing:.1em}.dashboard-heading-details .muted{font-size:10px}}
/* v261108_r22 Start encouragement details below the title. */
.study-coach-main>p{display:block;margin:4px 0 0}


/* v261108_r25 Group field accuracy by subject. */
.field-subject-group{margin-top:22px}
.field-subject-group>h3{margin:0 0 8px;padding:5px 0 5px 12px;border-left:4px solid var(--subject-color,var(--brand));font-size:16px;line-height:1.5;color:var(--text)}
@media(max-width:700px){.field-subject-group>h3{font-size:14px}.field-subject-group .field-stats{grid-template-columns:minmax(0,1fr)}}

/* v261108_r26 Start field-specific practice from accuracy statistics. */
.field-practice-help{margin:6px 0 0;color:var(--muted);font-size:12px}
.field-practice-link{display:inline;text-align:left;padding:3px 0;border:0;background:none;color:var(--text);font:inherit;line-height:1.7;cursor:pointer;overflow-wrap:anywhere}
.field-practice-link>span{color:var(--subject-color,var(--brand));white-space:nowrap}
.field-practice-link:hover{text-decoration:underline;text-underline-offset:3px;color:var(--subject-color,var(--brand))}
.field-practice-link:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:2px}

/* v261108_r27 Show accuracy and unique-question coverage together. */
.field-stat-metrics{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.field-metric{min-width:0}
.field-metric>div{display:flex;justify-content:space-between;gap:8px;align-items:baseline;font-size:11px}
.field-metric>div>span,.field-metric>small{color:var(--muted)}
.field-metric b{color:var(--subject-color,var(--brand));white-space:nowrap}
.field-metric progress{display:block;width:100%;margin-top:5px}
.field-metric>small{display:block;text-align:right;font-size:10px;margin-top:2px}
.field-studied progress::-webkit-progress-value{background:var(--brand)}
.field-studied progress::-moz-progress-bar{background:var(--brand)}

/* v261108_r28 Four columns for field statistics on wide screens. */
.field-subject-group .field-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 24px;align-items:start}
@media(max-width:1100px){.field-subject-group .field-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.field-subject-group .field-stats{grid-template-columns:minmax(0,1fr)}}
/* v261108_r29 Lead each subject with its overall statistics. */
.field-stats>.field-subject-total{padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
.field-subject-total .field-practice-link{font-weight:700}

/* v261108_r30 Put subject totals on the same row as the subject heading. */
.field-subject-group{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 24px;align-items:center}
.field-subject-group>h3{margin:0;grid-column:1}
.field-subject-group .field-stats{display:contents}
.field-subject-group .field-stats>.field-subject-total{grid-column:2/-1;display:flex;align-items:center;gap:20px;padding:0;border:0;border-radius:0;background:none}
.field-subject-total .field-stat-metrics{display:flex;align-items:center;gap:20px}
.field-subject-total .field-metric{display:flex;align-items:center;gap:8px;white-space:nowrap}
.field-subject-total .field-metric progress{display:none}
.field-subject-total .field-metric>small{margin:0}
@media(max-width:1100px){.field-subject-group{grid-template-columns:repeat(2,minmax(0,1fr))}.field-subject-group>h3{grid-column:1/-1}.field-subject-group .field-stats>.field-subject-total{grid-column:1/-1}}
@media(max-width:700px){.field-subject-group{grid-template-columns:minmax(0,1fr)}.field-subject-group .field-stats>.field-subject-total{gap:10px;flex-wrap:wrap}.field-subject-total .field-stat-metrics{gap:12px}}
/* Recent history is collapsed until the user opens it. */
.recent-accordion>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer;list-style:none}
.recent-accordion>summary::-webkit-details-marker{display:none}
.recent-accordion>summary h2{margin:0}
.recent-accordion-hint{font-size:12px;color:var(--muted);white-space:nowrap}
.recent-accordion-hint::before{content:"表示する ＋"}
.recent-accordion[open] .recent-accordion-hint::before{content:"閉じる −"}
.recent-accordion>summary:focus-visible{outline:2px solid var(--brand);outline-offset:5px;border-radius:3px}
.recent-history-actions{display:flex;justify-content:flex-end;margin:16px 0 8px}

/* v261108_r31 Align subject totals next to the name without a link. */
.field-subject-group{display:block}
.field-subject-group .field-stats{display:grid}
.field-subject-heading{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:10px 20px;margin-bottom:10px}
.field-subject-heading>h3{margin:0;padding:5px 0 5px 12px;border-left:4px solid var(--subject-color,var(--brand));font-size:16px;line-height:1.5;color:var(--text)}
.field-subject-heading>.field-subject-total{display:flex;align-items:center;justify-content:flex-start;gap:16px;padding:0;border:0;background:none;flex:0 1 auto}
.field-subject-total .field-stat-heading{flex:0 0 auto}
.field-total-label{font-size:12px;font-weight:700}
.field-subject-total .field-stat-metrics{flex:0 1 auto;gap:16px}
@media(max-width:700px){.field-subject-heading{gap:8px 12px}.field-subject-heading>h3{font-size:14px}.field-subject-heading>.field-subject-total{gap:10px}}

/* v261108_r32 Subject-colored learned portions share one overall ring. */
.subject-progress-orbit{position:relative;background:none}
.progress-orbit-chart{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke-width:12}
.progress-orbit-track{stroke:var(--line)}
.progress-orbit-segment{stroke:var(--subject-color,var(--orbit-color,var(--brand)))}
.subject-progress-orbit>div{position:relative}
.progress-orbit-legend{display:flex;flex-wrap:wrap;gap:7px 16px;list-style:none;padding:0;margin:14px 0 0}
.progress-orbit-legend li{display:flex;align-items:center;gap:6px;font-size:11px}
.orbit-legend-dot{width:9px;height:9px;border-radius:50%;background:var(--subject-color,var(--orbit-color,var(--brand)));flex-shrink:0}
.progress-orbit-legend small{font-size:10px;color:var(--muted)}
/* v261108_r34 A teacher advises against explicit study milestones. */
.study-coach{grid-template-columns:80px minmax(0,1fr)}
.study-coach>img{width:80px;height:80px;object-fit:contain}
.study-coach-pace{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:8px;font-size:11px;color:var(--muted)}
.study-coach-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 12px}
.study-coach-controls label{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted);margin:0}
.study-coach-controls select{font:inherit;font-size:11px;padding:4px 7px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:5px;min-height:30px;max-width:150px}
.study-coach[data-coach-state=schedule-behind],.study-coach[data-coach-state=schedule-adjust]{--coach-heading:#76551c;border-left-color:#d6a44f;background:linear-gradient(110deg,#fff8e9,var(--surface))}
.study-coach[data-coach-state=schedule-ontrack]{--coach-heading:#244c37;border-left-color:#6f9c52}
.study-coach[data-coach-state=schedule-behind] .study-coach-label,.study-coach[data-coach-state=schedule-adjust] .study-coach-label{background:#f2e5be}
:root[data-theme=dark] .study-coach[data-coach-state]{--coach-heading:var(--text);background:var(--surface)}
:root[data-theme=dark] .study-coach .study-coach-label{background:var(--bg);color:var(--text)}
@media(max-width:700px){.study-coach{grid-template-columns:56px minmax(0,1fr)}.study-coach>img{width:56px;height:56px}.study-coach-pace{font-size:10px;gap:3px 9px}.study-coach-controls{justify-content:flex-start;gap:8px}}
.progress-grid>.content-panel{min-width:0}
.progress-round-note{font-size:10px;color:var(--muted);margin:12px 0 0}

/* v261108_r36 Separate teacher appearance and guidance tone; show daily coaching. */
.study-coach-controls label{white-space:nowrap;flex-shrink:0}
.study-coach-controls select{max-width:140px}
.study-coach .study-coach-daily{font-size:12px;margin-top:6px;color:var(--muted)}
.study-coach[data-coach-state=schedule-balance],.study-coach[data-coach-state=schedule-return-weak],.study-coach[data-coach-state=schedule-weak]{--coach-heading:#76551c;border-left-color:#d6a44f;background:linear-gradient(110deg,#fff8e9,var(--surface))}
.study-coach[data-coach-state=schedule-balance] .study-coach-label,.study-coach[data-coach-state=schedule-return-weak] .study-coach-label,.study-coach[data-coach-state=schedule-weak] .study-coach-label{background:#f2e5be}
:root[data-theme=dark] .study-coach[data-coach-state]{--coach-heading:var(--text);background:var(--surface)}
:root[data-theme=dark] .study-coach .study-coach-label{background:var(--bg);color:var(--text)}
@media(max-width:700px){.study-coach .study-coach-daily{font-size:11px}}
/* v261108_r37 Give the next action a single prominent place after answering. */
.study-navigation.study-next-action{justify-content:center;margin-top:26px;padding-top:20px;border-top:1px solid var(--line)}
.study-navigation.study-next-action>.button{width:min(520px,100%);min-height:64px;padding:18px 32px;font-size:18px;font-weight:800;line-height:1.5;text-align:center;box-shadow:0 5px 16px #70872829}
@media(max-width:700px){.study-navigation.study-next-action>.button{width:100%;min-height:58px;padding:16px 20px;font-size:17px}}
/* v261108_r38 Recognizable illustrations instead of abstract subject symbols. */
.question-subjects .subject-icon{width:54px;height:54px;border-radius:13px}
.subject-illustration{display:block;width:44px;height:44px;object-fit:contain}
.question-subjects .subject-card[data-subject=planning]{--subject-color:#287a90;--subject-pale:#e6f2f6}
.question-subjects .subject-card[data-subject=environment]{--subject-color:#3e7d45;--subject-pale:#eaf4e5}
.question-subjects .subject-card[data-subject=law]{--subject-color:#8150a5;--subject-pale:#f1eaf8}
.question-subjects .subject-card[data-subject=structure]{--subject-color:#ad6025;--subject-pale:#fcf0e2}
.question-subjects .subject-card[data-subject=construction]{--subject-color:#4b65ab;--subject-pale:#eaf0fc}
@media(max-width:700px){.question-subjects .subject-icon{width:46px;height:46px}.subject-illustration{width:38px;height:38px}}
/* v261108_r38 The advice is spoken by the selected teacher. */
.study-coach-main{position:relative;padding:11px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.study-coach-main::before{content:"";position:absolute;left:-7px;top:25px;width:12px;height:12px;transform:rotate(45deg);background:var(--surface);border-left:1px solid var(--line);border-bottom:1px solid var(--line)}
.study-coach>img{align-self:start;margin-top:14px}
@media(max-width:700px){.study-coach-main{padding:9px 11px}.study-coach-main::before{top:20px}.study-coach>img{margin-top:9px}}
.study-coach{grid-template-columns:128px minmax(0,1fr);align-items:center;padding:16px 18px;gap:28px}
.study-coach .teacher-portrait{--teacher-size:128px;align-self:center;margin-top:0;transform:translateY(-10px)}
.study-coach-copy{display:grid;gap:14px;align-self:stretch}
.study-coach-main{margin-top:0;padding:14px 16px}
.study-coach-main>h2{font-size:clamp(20px,1.65vw,25px);line-height:1.55}
.study-coach-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.study-coach-actions .button{display:flex;align-items:center;justify-content:center;width:100%;min-height:58px;padding:14px 18px;font-size:19px;font-weight:800;line-height:1.45;text-align:center;box-shadow:0 5px 14px #70872826}
.study-coach-action-secondary{background:var(--surface)}
@media(max-width:700px){.study-coach{grid-template-columns:88px minmax(0,1fr);align-items:start;padding:12px 10px;gap:18px}.study-coach .teacher-portrait{--teacher-size:88px;align-self:start;margin-top:6px;transform:translateY(-8px)}.study-coach-copy{gap:10px}.study-coach-main{margin-top:0;padding:10px 12px}.study-coach-main>h2{font-size:18px;line-height:1.5}.study-coach-actions{grid-template-columns:minmax(0,1fr);gap:9px}.study-coach-actions .button{min-height:52px;padding:12px 14px;font-size:17px}}
/* v261108_r39 Keep exam application deadlines visible beside the countdown settings. */
.exam-application{margin:0 0 14px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
.application-heading{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}
.application-heading h3{font-size:14px;margin:0}
.application-badge{font-size:11px;color:var(--brand);font-weight:700}
.application-period{font-size:12px;margin:7px 0;color:var(--text)}
.application-period small{font-size:10px;color:var(--muted)}
.application-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px}
.countdown-settings .application-submitted{font-size:12px;display:flex;align-items:center;gap:8px;margin:0}
.countdown-settings input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:0 0 18px;padding:0;accent-color:var(--brand)}
.application-date-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px}
.application-date-fields input{min-width:0;max-width:100%}
.application-note{font-size:10px;color:var(--muted);line-height:1.8;margin-top:10px}
.exam-application[data-application-status=closing],.exam-application[data-application-status=today],.exam-application[data-application-status=overdue]{border-color:#d6a44f;background:#fff8e9}
.exam-application[data-application-status=submitted] .application-badge{color:var(--green)}
.study-coach .study-coach-application{border-left:3px solid #d6a44f;padding:6px 10px;background:#fff8e9;border-radius:0 6px 6px 0;color:var(--text);font-size:13px;margin:8px 0}
.study-coach[data-application-alert=urgent]{border-left-color:#d6a44f}
:root[data-theme=dark] .exam-application,:root[data-theme=dark] .study-coach .study-coach-application{background:var(--surface)}
@media(max-width:700px){.application-date-fields{grid-template-columns:minmax(0,1fr)}.application-actions{align-items:flex-start}.study-coach .study-coach-application{font-size:12px}}
/* v261108_r41 Larger teacher portraits with centered names. */
.study-coach{grid-template-columns:108px minmax(0,1fr)}
.teacher-portrait{--teacher-size:108px;width:var(--teacher-size);display:flex;flex-direction:column;align-items:center;align-self:start;margin-top:10px;text-align:center}
.teacher-image-frame{display:block;width:var(--teacher-size);height:var(--teacher-size);position:relative;overflow:hidden;border-radius:10px}
.teacher-image-frame img{position:absolute;max-width:none;width:145%;height:145%;left:50%;top:0;transform:translateX(-50%);object-fit:contain}
.teacher-portrait>.teacher-name{display:block;width:100%;margin-top:5px;text-align:center;font-size:12px;line-height:1.3;color:var(--muted);overflow-wrap:anywhere}
.study-coach-controls{flex-wrap:wrap}.study-coach-controls select{max-width:180px}
@media(max-width:700px){.study-coach{grid-template-columns:80px minmax(0,1fr)}.teacher-portrait{--teacher-size:80px;margin-top:9px}.teacher-portrait>.teacher-name{font-size:11px}.study-coach-controls label{flex-wrap:wrap}.study-coach-controls select{max-width:150px}}

/* v261108_r44 Show field and character hints in the teacher selector. */
.study-coach-controls label:has(#coachPersona){max-width:100%;min-width:0}
.study-coach-controls #coachPersona{width:440px;max-width:100%;min-width:0}
@media(max-width:700px){.study-coach-controls label:has(#coachPersona){width:100%}.study-coach-controls #coachPersona{width:100%}}


/* v261108_r52 Click or tap the portrait to read its profile. */
.teacher-profile-trigger{display:block;padding:0;border:0;border-radius:10px;background:none;cursor:pointer}
.teacher-profile-trigger:focus-visible{outline:3px solid #379cb7;outline-offset:4px}

/* v261108_r53 Edit the existing teacher settings from the profile dialog. */
.profile-teacher-settings{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.profile-teacher-settings h3{font-size:15px;margin:0 0 12px}
.profile-teacher-settings .study-coach-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;justify-content:start}
.profile-teacher-settings .study-coach-controls label{display:flex;flex-direction:column;align-items:stretch;gap:5px;width:100%;min-width:0;font-size:12px}
.profile-teacher-settings .study-coach-controls label:first-child{grid-column:1/-1}
.profile-teacher-settings .study-coach-controls select{width:100%;max-width:100%;min-width:0;min-height:40px;font-size:13px}
.profile-teacher-settings .study-coach-help{justify-self:start;text-align:left}
.profile-teacher-settings .small-muted{margin-top:10px;font-size:11px}
@media(max-width:420px){.profile-teacher-settings .study-coach-controls{grid-template-columns:minmax(0,1fr)}}

/* v261108_r54 Thumbnail choices in the profile dialog. */
.teacher-choice-field{grid-column:1/-1;min-width:0}
.teacher-choice-label{display:block;font-size:12px;color:var(--muted);margin-bottom:5px}
.teacher-picker{width:100%;min-width:0}
.teacher-picker>summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text)}
.teacher-picker>summary::-webkit-details-marker{display:none}
.teacher-picker>summary::marker{content:''}
.teacher-picker-arrow{margin-left:auto;flex:0 0 auto;font-size:20px;color:var(--muted)}
.teacher-picker[open] .teacher-picker-arrow{transform:rotate(180deg)}
.teacher-options{list-style:none;margin:6px 0 0;padding:4px;max-height:320px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.teacher-options li{margin:0;padding:0}
.teacher-options .teacher-choice{display:flex;align-items:center;gap:10px;width:100%;padding:7px 8px;text-align:left;white-space:normal;border-radius:6px;background:var(--surface);color:var(--text);font:inherit}
.teacher-options .teacher-choice:hover,.teacher-options .teacher-choice:focus-visible{background:var(--blue-pale)}
.teacher-options .teacher-choice[aria-pressed=true]{background:var(--blue-pale);box-shadow:inset 3px 0 var(--brand)}
.teacher-choice-thumb{position:relative;display:block;flex:0 0 48px;width:48px;height:48px;overflow:hidden;border-radius:7px;background:var(--bg)}
.teacher-choice-thumb img{position:absolute;max-width:none;width:70px;height:70px;left:50%;top:0;transform:translateX(-50%);object-fit:contain}
.teacher-choice-copy{display:block;flex:1;min-width:0}
.teacher-choice-copy strong{display:block;font-size:13px;line-height:1.5;font-weight:600}
.teacher-choice-copy small{display:block;font-size:11px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
@media(max-width:420px){.teacher-options{max-height:260px}.teacher-options .teacher-choice{gap:8px;padding:6px}.teacher-choice-copy strong{font-size:12px}}

/* v261108_r55 Explain the teacher as a study coach. */
.profile-coach-role{padding:13px 15px;margin-bottom:18px;border-radius:8px;background:var(--bg)}
.profile-coach-role h3,.profile-teacher-character h3{font-size:14px;margin:0 0 7px}
.profile-coach-role p{font-size:12px;line-height:1.9}
.profile-coach-role p+p{margin-top:6px}
.profile-teacher-character .profile-teacher-policy{margin-top:8px;font-size:12px;color:var(--muted)}
.profile-teacher-policy strong{color:var(--text);font-weight:600}

/* v261108_r58 One learning records page, with goals and planning inside it. */
.records-plan>summary{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;cursor:pointer;list-style:none}
.records-plan>summary::-webkit-details-marker{display:none}
.records-plan>summary::before{content:"＋";font-size:17px;color:var(--brand)}
.records-plan[open]>summary::before{content:"−"}
.records-plan>summary h2{margin:0;font-size:17px}
.records-plan-hint{color:var(--muted);font-size:12px}
.records-plan>.plan-page{margin-top:20px}

/* v261108_r64 The public forum is for architect-exam questions. */
.sidebar nav .board-menu-copy{display:flex;flex-direction:column;gap:3px;width:auto;min-width:0;font-size:13px;line-height:1.4}
.sidebar nav .board-menu-copy small{font-size:9px;line-height:1.5;font-weight:400;color:var(--muted)}

/* v261108_r65 User-confirmed external links and email report preparation. */
.report-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
#reportCopyArea{display:block;width:100%;font:inherit;margin-top:6px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text)}
.external-site-url{font-size:12px;color:var(--muted);overflow-wrap:anywhere;margin:12px 0}

/* v261108_r68 Architect-only links leave no empty mobile navigation slot. */
@media(max-width:700px){:root[data-exam^="geo-"] .mobile-nav{grid-template-columns:repeat(5,1fr)}}

/* v261108_r70 The selected teacher is the home navigation avatar. */
.teacher-nav-avatar{position:relative;overflow:hidden;border-radius:10px;background:#f5f4df}
.teacher-nav-avatar .home-teacher-image{position:absolute;max-width:none;width:72px;height:72px;left:50%;top:-3px;transform:translateX(-50%);object-fit:contain}
.mobile-nav .teacher-nav-avatar{display:block;width:26px;height:26px}
.mobile-nav .teacher-nav-avatar .home-teacher-image{width:60px;height:60px;top:-3px}

/* v261108_r73 Selected qualification summary; choices open on demand. */
.current-exam{display:grid;gap:8px;padding:14px;border:1px solid var(--line);border-radius:9px;background:var(--blue-pale)}
.current-exam strong{font-size:13px}.current-exam>span{font-size:11px;color:var(--muted)}.current-exam .button{width:100%;margin-top:4px}

/* v261108_r77 Choose each qualification/department directly. */
#dialogBody .qualification-options{display:grid;grid-template-columns:minmax(0,1fr);gap:5px}#dialogBody .qualification-options button{white-space:normal;text-align:left;min-height:44px;width:100%;padding:10px 14px;line-height:1.6}
#dialogBody .qualification-options .qualification-coming-soon{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f1f2f3;color:#858b91;border:1px solid #d9dcdf;opacity:1;filter:grayscale(1)}#dialogBody .qualification-options .qualification-coming-soon small{flex-shrink:0;padding:2px 8px;border-radius:999px;background:#dfe2e4;color:#666d73;font-size:9px;font-weight:700;letter-spacing:.04em}

/* v261108_r80 Inner first round; later rounds grow outward. */
.progress-concentric{min-width:0}.concentric-orbit{position:relative;width:min(100%,320px);aspect-ratio:1;margin:20px auto 8px}.concentric-chart{display:block;width:100%;height:100%;fill:none}.concentric-center{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:none;gap:3px}.concentric-center>span{font-size:12px;color:var(--muted)}.concentric-center strong{font:650 clamp(28px,4vw,38px) system-ui,sans-serif;line-height:1.3}.concentric-center strong small{font-size:15px;font-weight:400}.concentric-order{text-align:center;font-size:11px;color:var(--muted);margin:12px 0 16px}.concentric-round-list{display:grid;gap:7px}.concentric-round-row{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:8px;min-height:44px;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);text-align:left;font-size:12px}.concentric-round-row:hover{background:var(--bg)}.concentric-round-row[aria-pressed=true]{border-color:var(--brand);background:var(--blue-pale)}.concentric-round-status{font-size:10px;color:var(--muted)}.concentric-round-amount{text-align:right;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.concentric-round-amount b{display:inline-block;min-width:35px;margin-left:6px;color:var(--text);font-weight:600}.concentric-selected-count{font-size:11px;margin-top:16px}.progress-concentric .progress-orbit-legend{margin-top:12px}.progress-concentric>.full-width{margin-top:20px}.progress-concentric>.text-link{margin-top:8px}
@media(max-width:400px){.concentric-round-row{padding:9px 8px;gap:5px}.concentric-round-amount{font-size:10px}.concentric-round-amount b{margin-left:3px}.concentric-center strong{font-size:30px}}

/* v261108_r81 Keep classification labels readable on narrow screens. */
.semantic-diagram{padding-bottom:8px;max-width:100%}.semantic-diagram img{display:block;width:100%;max-width:930px!important;height:auto}.semantic-diagram a{display:block}

/* Calendar examination date: distinct from learning volume and future-day dimming. */
.study-calendar .calendar-day.is-exam{background:#b74716;color:#fff;border:2px solid #8b330e;opacity:1;min-height:38px;height:38px;justify-content:center;gap:1px;box-shadow:0 2px 5px #8b330e25}
.study-calendar .calendar-day.is-exam .calendar-date{font-size:13px;font-weight:800}
.calendar-exam-tag{display:block;width:100%;text-align:center;font-size:9px;font-weight:700;line-height:1.1;white-space:nowrap}
.study-calendar .calendar-day.is-exam .calendar-gauge{display:none}
.study-calendar .calendar-day.is-exam[aria-pressed=true]{outline:2px solid #173442;outline-offset:1px}
.study-calendar .calendar-exam-note{display:flex;gap:5px;align-items:center;margin:5px 2px 0;color:#9b3b13;font-size:10px;font-weight:700}
:root[data-theme=dark] .study-calendar .calendar-exam-note{color:#ffc197}

/* Source-reviewed question passages and labelled blanks. */
.question-blank{display:inline-block;min-width:3em;padding:0 .45em;margin:0 .2em;border:1px solid currentColor;background:var(--surface,#fff);text-align:center;font-weight:600;line-height:1.55;white-space:nowrap}
.question-passage{margin:20px 0 26px;padding:18px 20px;border-left:3px solid var(--line);background:var(--bg);font-size:1em;font-weight:400;line-height:2.15;white-space:pre-line;overflow-wrap:anywhere}
.compare-question .question-stem{font-size:1em}
@media(max-width:700px){.question-passage{padding:14px 12px}.question-blank{min-width:2.5em}}

.math-overline{text-decoration:overline}

/* サポ塾オリジナル解説・教材表示のレイアウト */
.preserve-lines{white-space:pre-line;overflow-wrap:anywhere}
.material-content{display:grid;gap:20px}
.material-point{background:var(--bg);border-left:4px solid var(--brand);border-radius:0 10px 10px 0;padding:16px 20px}
.material-point h3{font-size:15px;color:var(--brand);margin:0 0 8px}
.explanation .material-point p{margin:0;font-size:14px;line-height:1.95}
.material-choices{display:grid;gap:10px}
.material-choices>h3{font-size:15px;margin:0 0 2px}
.material-choice{border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:0;overflow:hidden}
.material-choice.is-correct{border-color:var(--green);background:var(--green-pale)}
.material-choice summary{display:flex;align-items:center;gap:10px;padding:12px 16px;font-weight:700;font-size:14px;cursor:pointer;list-style:none}
.material-choice summary::-webkit-details-marker{display:none}
.material-choice summary::after{content:"＋";margin-left:auto;color:var(--muted);font-weight:600}
.material-choice[open] summary::after{content:"−"}
.explanation .material-choice p{margin:0;padding:0 16px 15px;font-size:14px;line-height:1.95;color:var(--text)}
.material-choice-badge{font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;line-height:1.5}
.material-choice-badge.is-correct{background:var(--green);color:#fff}
.material-choice-badge.is-selected{background:var(--red-pale);color:var(--red);border:1px solid var(--red)}
.material-calculation{border:1px solid var(--line);border-radius:10px;padding:15px 18px;background:var(--bg)}
.material-calculation h3{font-size:15px;margin:0 0 8px}
.explanation .material-calculation p{margin:0;font-size:14px;line-height:1.95}
.material-content .keyword-list{margin:0}
.material-meta{border-top:1px solid var(--line);padding-top:14px}
.material-meta h3{font-size:12px;color:var(--muted);margin:0 0 6px}
.material-meta p{margin:0;font-size:12px;line-height:1.8;color:var(--muted)}
.material-meta .small-muted{margin-top:6px}
.choice-item{display:grid;gap:0}
.choice-item:has(.choice-explanation) .choice{border-bottom-left-radius:0;border-bottom-right-radius:0}
.choice-explanation{border:1px solid var(--line);border-top:0;border-left:4px solid var(--line);border-radius:0 0 9px 9px;background:var(--bg);padding:12px 16px 14px 18px}
.choice-explanation.is-correct{border:2px solid #278048;border-top:0;border-left:4px solid #278048;background:#edf8f0;box-shadow:none}
.choice-explanation.is-wrong{border:2px solid #c83c4d;border-top:0;border-left:4px solid #c83c4d;background:#fff0f1;box-shadow:none}
:root[data-theme=dark] .choice-explanation.is-correct{background:#203f2b;border-color:#80c898}
:root[data-theme=dark] .choice-explanation.is-wrong{background:#492b32;border-color:#f18a9c}
.choice-explanation-label{display:inline-block;font-size:11px;font-weight:700;color:var(--brand);margin-bottom:4px}
.choice-explanation.is-correct .choice-explanation-label{color:var(--green)}
.choice-explanation.is-wrong .choice-explanation-label{color:var(--red)}
.choice-explanation p{margin:0;font-size:14px;line-height:1.9;color:var(--text)}
.legal-basis{margin-top:14px;padding:0;border:1px solid #9db9dc;border-radius:10px;background:var(--surface);color:var(--text);overflow:hidden}
.legal-basis-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;padding:14px;list-style:none;cursor:pointer}
.legal-basis-heading::-webkit-details-marker{display:none}
.legal-basis-heading::after{content:"＋";margin-left:auto;color:var(--brand);font-weight:700}
.legal-basis[open]>.legal-basis-heading::after{content:"−"}
.legal-basis-heading h4{margin:0;color:var(--brand);font-size:14px}
.legal-basis-heading span{font-size:10px;color:var(--muted)}
.legal-basis-content{padding:0 14px 14px}
.legal-current-treatment{margin:0 0 10px!important;padding:8px 10px;border-radius:7px;background:var(--blue-pale);font-size:12px!important;line-height:1.6!important}
.legal-reference-list{display:grid;gap:9px}
.legal-reference{border:1px solid var(--line);border-radius:8px;background:var(--bg);overflow:hidden;padding-bottom:10px}
.legal-reference-primary{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;padding:10px 12px}
.legal-reference-primary strong{font-size:14px;color:var(--text)}
.legal-reference-primary a{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 12px;border:1px solid #277a4b;border-radius:7px;background:#277a4b;color:#fff;font-size:11px;font-weight:700;line-height:1.2;text-decoration:none;white-space:nowrap;box-shadow:0 1px 2px rgba(20,70,44,.18);transition:background .18s ease,border-color .18s ease,transform .18s ease}
.legal-reference-primary a:hover{background:#1f653d;border-color:#1f653d;color:#fff;transform:translateY(-1px)}
.legal-reference-primary a:focus-visible{outline:3px solid rgba(39,122,75,.28);outline-offset:2px}
.legal-check-point{margin:0!important;padding:0 12px!important;font-size:12px!important;line-height:1.65!important}
.study-card+.feedback{margin-top:14px}
.feedback-next-action{padding:0 28px 24px}
.feedback-next-action .study-next-action{margin-top:0;padding-top:0;border-top:0}
.choice-text:empty{display:none}
.study-card:has(.temperature-profile-choices) .drawing-zoom { max-width: 500px; margin: auto; }
.answer-choices.temperature-profile-choices {
  grid-template-columns: repeat(auto-fit, minmax(min(136px, 100%), 1fr));
  gap: 8px;
}
.temperature-profile-choices .choice.with-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
}
.answer-choices.temperature-profile-choices .choice-visual { order: -1; width: 100%; padding: 0; }
.answer-choices.temperature-profile-choices .choice-visual img { width: 100%; height: 270px; max-height: none; object-fit: contain; }
.choice.with-figure .choice-content{align-self:center}
.answer-choices.figure-grid-choices{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.answer-choices.figure-grid-choices .choice.with-figure{padding:14px;gap:10px}
.answer-choices.figure-grid-choices .choice-visual{padding:8px}
.answer-choices.figure-grid-choices .choice-visual img{max-height:260px}
@media(max-width:600px){.answer-choices.figure-grid-choices{grid-template-columns:1fr}}
.answer-choices.wiring-symbol-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
}
.wiring-symbol-choices .choice.with-figure {
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
}
.answer-choices.wiring-symbol-choices .choice-visual { padding: 0; }
.answer-choices.wiring-symbol-choices .choice-visual img {
  width: 100%;
  max-width: 320px;
  height: 104px;
  object-fit: cover;
}
@media (max-width: 600px) {
  .answer-choices.wiring-symbol-choices { gap: 8px; }
  .answer-choices.wiring-symbol-choices .choice.with-figure { padding: 9px; gap: 5px; }
  .answer-choices.wiring-symbol-choices .choice-visual img { height: 76px; }
}
@media(max-width:700px){.material-content{gap:16px}.material-point{padding:14px 15px}.material-choice summary{padding:11px 13px;font-size:13px}.explanation .material-point p,.explanation .material-choice p,.explanation .material-calculation p,.choice-explanation p{font-size:13px}.explanation .material-choice p{padding:0 13px 13px}.choice-explanation{padding:10px 13px 12px 14px}.feedback-next-action{padding:0 17px 20px}}
@media(max-width:700px){.legal-basis-heading{padding:11px}.legal-basis-content{padding:0 11px 11px}.legal-reference-primary{align-items:flex-start;flex-direction:column}.legal-reference-primary a{white-space:normal}}
.excel-preview-table{width:100%;border-collapse:collapse;margin:10px 0 14px;font-size:13px}
.excel-preview-table th,.excel-preview-table td{border:1px solid var(--border);padding:6px 8px;text-align:left}
.excel-preview-table th{background:var(--surface-muted,#f5f6f2)}
.excel-preview-table td.num{text-align:right;font-variant-numeric:tabular-nums}
.setting-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.auth-guest-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px;background:#fff8db;border-bottom:1px solid #e6cf7a;color:#4a3b00;font-size:13px}
[data-theme="dark"] .auth-guest-banner{background:#332b12;border-color:#665522;color:#f5e6a8}
.auth-guest-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.sidebar-account{margin-bottom:10px;padding:10px;border:1px solid var(--border);border-radius:10px;background:var(--surface-muted,#f7f8f4);font-size:12px}
[data-theme="dark"] .sidebar-account{background:rgba(255,255,255,.04)}
.sidebar-account-email{font-weight:700;word-break:break-all;margin-bottom:6px;display:block}
.topbar-account{display:inline-flex;align-items:center;gap:6px;font-size:12px}
.account-menu-wrap{position:relative;display:inline-flex;align-items:center}
.account-menu-trigger{display:inline-flex;align-items:center;gap:6px;padding:3px 9px 3px 4px;min-height:38px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--text);transition:background .15s,border-color .15s}
.account-menu-trigger:hover,.account-menu-trigger[aria-expanded="true"]{background:var(--blue-pale);border-color:var(--brand)}
.account-menu-trigger:focus-visible{outline:3px solid #379cb7;outline-offset:2px}
.account-avatar{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--blue-pale);color:var(--brand);flex-shrink:0}
.account-caret{font-size:9px;line-height:1;color:var(--muted)}
.account-menu-dropdown{position:absolute;top:calc(100% + 8px);right:0;width:min(264px,calc(100vw - 24px));max-width:calc(100vw - 24px);background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(16,38,55,.16);padding:8px 0;z-index:160;text-align:left}
[data-theme="dark"] .account-menu-dropdown{box-shadow:0 14px 36px rgba(0,0,0,.45)}
.account-menu-header{padding:8px 14px 6px;user-select:text;cursor:default}
.account-menu-caption{display:block;font-size:10px;font-weight:600;color:var(--muted);line-height:1.3;margin-bottom:2px}
.account-menu-email{font-size:12px;font-weight:700;color:var(--text);line-height:1.45;word-break:break-all}
.account-menu-sync{display:flex;align-items:center;gap:8px;padding:6px 14px 10px;font-size:12px;color:var(--text)}
.account-sync-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;background:var(--muted)}
.account-sync-dot[data-tone="green"]{background:#16a34a}
.account-sync-dot[data-tone="yellow"]{background:#eab308}
.account-sync-dot[data-tone="red"]{background:#dc2626}
[data-theme="dark"] .account-sync-dot[data-tone="green"]{background:#4ade80}
[data-theme="dark"] .account-sync-dot[data-tone="yellow"]{background:#facc15}
[data-theme="dark"] .account-sync-dot[data-tone="red"]{background:#f87171}
.account-sync-text{font-size:12px;font-weight:600}
.account-sync-retry{margin-left:auto;font-size:11px;font-weight:600;color:var(--brand);padding:2px 8px;border-radius:6px;border:1px solid var(--line)}
.account-sync-retry:hover{background:var(--blue-pale)}
.account-menu-divider{height:1px;background:var(--line);margin:4px 0}
.account-menu-item{display:flex;align-items:center;width:100%;padding:10px 14px;text-align:left;font-size:13px;font-weight:600;color:var(--text);min-height:40px}
.account-menu-item:hover{background:var(--blue-pale);color:var(--brand)}
.account-menu-item:focus-visible,.account-sync-retry:focus-visible{outline:3px solid #379cb7;outline-offset:-3px}
.account-menu-logout{color:var(--red)}
.account-menu-logout:hover{background:var(--red-pale);color:var(--red)}
.account-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;border:1px solid var(--border);background:var(--surface,#fff);color:var(--text);font-size:12px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
[data-theme="dark"] .account-pill{background:rgba(255,255,255,.06)}
.google-auth-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:10px 16px;border:2px solid #2b6cb0;border-radius:10px;background:#fff;color:#1f2937;font-size:15px;font-weight:700;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.08)}
.google-auth-btn:hover{background:#f8fafc}
.google-auth-btn:disabled{opacity:.6;cursor:not-allowed}
.auth-divider{display:flex;align-items:center;gap:10px;margin:14px 0;color:var(--muted);font-size:12px}
.auth-divider::before,.auth-divider::after{content:"";flex:1;height:1px;background:var(--border)}
.auth-tabs{display:flex;gap:8px;margin-bottom:12px}
.auth-tabs .chip{flex:1;text-align:center}
.auth-form{display:grid;gap:10px}
.auth-form label{display:grid;gap:4px;font-size:13px;font-weight:600}
.auth-form input{padding:9px 10px;border:1px solid var(--border);border-radius:8px;font-size:14px;background:var(--surface,#fff);color:var(--text)}
.auth-notice{padding:10px 12px;border-radius:8px;border:1px solid #90cdf4;background:#ebf8ff;color:#1a365d;font-size:13px;margin:10px 0}
.auth-error{padding:10px 12px;border-radius:8px;border:1px solid #feb2b2;background:#fff5f5;color:#742a2a;font-size:13px;margin:10px 0}
[data-theme="dark"] .auth-notice{background:#1a365d;color:#ebf8ff;border-color:#3182ce}
[data-theme="dark"] .auth-error{background:#4a1d1d;color:#fed7d7;border-color:#c53030}
.auth-links{display:flex;justify-content:space-between;align-items:center;margin-top:8px;flex-wrap:wrap;gap:8px}
.sync-status-pill{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:700;border:1px solid var(--border);background:var(--surface,#fff);color:var(--text)}
.sync-status-pill[data-sync-state="saved"]{background:#ebf8ee;border-color:#9ae6b4;color:#22543d}
.sync-status-pill[data-sync-state="pending"],.sync-status-pill[data-sync-state="syncing"]{background:#ebf8ff;border-color:#90cdf4;color:#2a4365}
.sync-status-pill[data-sync-state="offline"]{background:#fefcbf;border-color:#f6e05e;color:#744210}
.sync-status-pill[data-sync-state="error"]{background:#fff5f5;border-color:#feb2b2;color:#742a2a}
[data-theme="dark"] .sync-status-pill[data-sync-state="saved"]{background:#1c4532;border-color:#2f855a;color:#c6f6d5}
[data-theme="dark"] .sync-status-pill[data-sync-state="pending"],[data-theme="dark"] .sync-status-pill[data-sync-state="syncing"]{background:#1a365d;border-color:#3182ce;color:#bee3f8}
[data-theme="dark"] .sync-status-pill[data-sync-state="offline"]{background:#5f370e;border-color:#b7791f;color:#fefcbf}
[data-theme="dark"] .sync-status-pill[data-sync-state="error"]{background:#4a1d1d;border-color:#c53030;color:#fed7d7}
.speech-controls{display:block;margin:.75rem 0 1rem;padding:.7rem .85rem;border:1px solid var(--line,#d9ddd2);border-radius:.75rem;background:var(--panel,#fff)}
.speech-play-button{min-height:64px;padding:.25rem .9rem .25rem .4rem;gap:.45rem;font-size:.9rem}
.speech-play-button .speech-illustration{display:block;width:56px;height:56px;object-fit:contain}
.speech-control-content{min-width:0}
.speech-control-row{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.speech-controls [data-speech-status]{min-width:5em;color:var(--muted,#596258);font-size:.9rem}
.speech-rate,.speech-voice{display:flex;flex-direction:row;align-items:center;gap:.4rem;white-space:nowrap;writing-mode:horizontal-tb;font-size:.9rem;color:var(--muted,#596258)}
.speech-rate select,.speech-voice select{min-height:2.25rem;padding:.25rem 1.9rem .25rem .55rem;border:1px solid var(--line,#d9ddd2);border-radius:.5rem;background:var(--panel,#fff);color:inherit;font:inherit}
.speech-voice select{max-width:18rem}
.speech-timeline{display:flex;align-items:center;gap:.65rem;min-width:0;margin-top:.55rem}
.speech-timeline input{flex:1;min-width:8rem;accent-color:var(--primary-dark,#718b16);cursor:pointer}
.speech-timeline input:disabled{cursor:not-allowed;opacity:.5}
.speech-timeline output{min-width:6.8rem;color:var(--muted,#596258);font-size:.85rem;font-variant-numeric:tabular-nums;text-align:right}
.speech-controls button:disabled{opacity:.5;cursor:not-allowed}
.speech-unavailable{margin:.75rem 0;color:var(--muted,#596258);font-size:.9rem}
@media(max-width:700px){.speech-controls{padding:.65rem}.speech-play-button{min-height:56px;padding:.2rem .7rem .2rem .3rem}.speech-play-button .speech-illustration{width:48px;height:48px}.speech-control-row{gap:.5rem}.speech-voice{flex:1 1 100%}.speech-voice select{min-width:0;max-width:100%}}
.answer-mode-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;align-items:stretch}
.answer-mode-button{min-height:4.5rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;white-space:normal;text-align:center}
.answer-mode-button strong{font-size:1rem}.answer-mode-button small{font-weight:500;opacity:.78}
.binary-study-card{display:flex;flex-direction:column;gap:1rem}
.binary-mode-badge{display:inline-flex;align-items:center;border-radius:999px;padding:.25rem .65rem;background:#edf5ce;color:#405516;font-weight:700}
.binary-source-context{border:0;border-radius:0;background:transparent;padding:.35rem 0}
.binary-source-context .question-stem{font-size:14px;font-weight:400;line-height:1.9;margin:0}
.binary-prompt{margin-top:.25rem}.binary-prompt-label{display:block;color:var(--muted);font-size:.78rem;font-weight:500;margin-bottom:.35rem}
.binary-statement{display:block;border:2px solid color-mix(in srgb,var(--primary) 48%,var(--border));border-radius:1rem;padding:1.2rem;background:var(--surface-soft,#f7f8f2);font-size:14px;font-weight:600;line-height:1.95}
.binary-answer-buttons{display:grid;grid-template-columns:1fr 1fr auto;gap:.75rem;align-items:stretch;margin-top:1rem}.binary-answer-buttons .button{min-height:3.5rem}.binary-answer-buttons .binary-true,.binary-answer-buttons .binary-false{background:var(--surface);color:var(--text);border-color:var(--line);box-shadow:none}.binary-answer-buttons .binary-true:hover,.binary-answer-buttons .binary-false:hover{background:var(--blue-pale);color:var(--text)}.binary-answer-buttons .binary-true.selected,.binary-answer-buttons .binary-false.selected{background:var(--primary);color:#26320f;border-color:var(--primary);outline:3px solid color-mix(in srgb,var(--primary) 65%,transparent);outline-offset:2px}
.binary-feedback .feedback-title{flex-wrap:wrap}.binary-feedback .feedback-title>span{font-size:26px}.binary-feedback .feedback-title>p{margin:0;font-size:19px;line-height:1.95}.binary-feedback .feedback-title>p strong{font-size:19px}.explanation>p,.explanation .material-point p,.explanation .material-choice p,.explanation .material-calculation p,.choice-explanation p{font-size:14px;line-height:1.95}
@media(max-width:700px){.binary-feedback .feedback-title>p,.binary-feedback .feedback-title>p strong{font-size:16px}.explanation>p,.explanation .material-point p,.explanation .material-choice p,.explanation .material-calculation p,.choice-explanation p{font-size:13px}}
@media(max-width:760px){.answer-mode-actions{grid-template-columns:1fr}.binary-answer-buttons{grid-template-columns:1fr 1fr}.binary-answer-buttons [data-action=answer]{grid-column:1/-1}.binary-source-context .question-stem{font-size:13px}.binary-statement{padding:1rem;font-size:13px}}
/* みんなの学習状況・年度ランキング */
.community-dashboard{margin:24px 0;padding:24px;border:1px solid var(--line,#dfe6d7);border-radius:18px;background:var(--panel,#fff)}
.community-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none}.community-summary::-webkit-details-marker{display:none}.community-summary>span{display:flex;flex-direction:column;gap:4px}.community-summary strong{font-size:1.25rem}.community-summary small{color:var(--muted,#607064);font-size:.9rem}.community-summary::after{content:'＋';display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:var(--soft,#f5f7f1);color:var(--accent-dark,#27673f);font-size:1.25rem;font-weight:700}.community-dashboard[open]>.community-summary::after{content:'−'}.community-content{padding-top:20px}.community-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px}.community-actions p{margin:0;color:var(--muted,#607064);font-size:.9rem}
.community-summary{justify-content:flex-start;gap:8px}.community-summary>span{margin-right:auto}.community-summary-illustration{display:block;flex:0 0 96px;width:96px;height:96px;object-fit:contain;object-position:center}
.community-heading,.ranking-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.community-heading h2,.ranking-heading h2{margin:0 0 4px}.community-heading p,.ranking-heading p{margin:0;color:var(--muted,#607064)}
.ranking-heading{margin-top:32px;padding-top:28px;border-top:1px solid var(--line,#dfe6d7)}
.community-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.community-metrics article{display:flex;flex-direction:column;gap:4px;padding:18px;border-radius:14px;background:var(--soft,#f5f7f1)}
.community-metrics strong{font-size:2rem;line-height:1;color:var(--accent-dark,#27673f)}.community-metrics strong small{font-size:.9rem;margin-left:3px}.community-metrics span{font-size:.9rem;color:var(--muted,#607064)}
.hourly-chart-wrap{padding:16px 12px 8px;border-radius:14px;background:var(--soft,#f5f7f1);overflow-x:auto}
.chart-legend{display:flex;justify-content:flex-end;gap:18px;font-size:.8rem}.chart-legend span{display:flex;align-items:center;gap:6px}.chart-legend i{display:inline-block;width:12px;height:12px;border-radius:3px}.chart-legend .learners,.hour-bar.learners{background:#68a83f}.chart-legend .answers,.hour-bar.answers{background:#4d83c2}
.hourly-chart{display:grid;grid-template-columns:repeat(24,minmax(22px,1fr));gap:3px;min-width:600px;height:210px;margin-top:10px;padding-top:8px;border-bottom:1px solid var(--line,#cfd9c9)}
.hour-column{display:grid;grid-template-rows:1fr 22px;min-width:0}.hour-bars{display:flex;align-items:flex-end;justify-content:center;gap:2px;height:100%}.hour-bar{display:block;width:38%;max-width:11px;min-height:0;border-radius:4px 4px 0 0}.hour-label{text-align:center;font-size:.7rem;color:var(--muted,#607064)}
.chart-axis-label{text-align:center;margin:8px 0 0;font-size:.75rem;color:var(--muted,#607064)}
.ranking-period{margin:14px 0 10px;color:var(--muted,#607064);font-size:.9rem}.ranking-table-wrap{overflow-x:auto}.ranking-table,.self-ranking table{width:100%;border-collapse:collapse}.ranking-table th,.ranking-table td,.self-ranking td{padding:11px 12px;text-align:left;border-bottom:1px solid var(--line,#dfe6d7)}.ranking-table th{white-space:nowrap;font-size:.82rem;color:var(--muted,#607064)}.ranking-table td:nth-child(1),.ranking-table td:nth-child(3),.ranking-table td:nth-child(4){white-space:nowrap}.ranking-empty{text-align:center!important;color:var(--muted,#607064)}
.self-ranking{margin-top:16px;padding:14px;border:2px solid #9fcf66;border-radius:12px}.self-ranking h3{margin:0 0 6px;font-size:1rem}.ranking-self td{border:0}.self-badge{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:999px;background:#e4f4cd;color:#35651b;font-size:.72rem}.ranking-guidance{margin:16px 0 0;padding:14px;border-radius:12px;background:var(--soft,#f5f7f1)}
.community-unavailable{padding:14px;border-radius:12px;background:var(--soft,#f5f7f1);color:var(--muted,#607064)}
@media(max-width:640px){.community-dashboard{padding:16px 14px}.community-summary{gap:6px}.community-summary>span{min-width:0}.community-summary strong{font-size:1.1rem}.community-summary small{font-size:.8rem;line-height:1.55}.community-summary-illustration{flex-basis:68px;width:68px;height:68px}.community-summary::after{flex-basis:28px;width:28px;height:28px}.community-metrics{grid-template-columns:1fr}.community-heading,.ranking-heading{align-items:flex-start}.ranking-table{min-width:510px}.community-metrics strong{font-size:1.7rem}}

/* 連続読み上げ：問題数と同数の青系進捗目盛り */
.listening-progress{width:100%;margin-bottom:26px}
.listening-progress-segments{display:grid;grid-template-columns:repeat(var(--listening-total),minmax(0,1fr));gap:2px;width:100%;height:8px}
.listening-progress-segment{min-width:0;background:#d9e9f4}
.listening-progress-segment:first-child{border-radius:999px 0 0 999px}
.listening-progress-segment:last-child{border-radius:0 999px 999px 0}
.listening-progress-segment.is-complete{background:#2f82b8}
:root[data-theme=dark] .listening-progress-segment{background:#29475c}
:root[data-theme=dark] .listening-progress-segment.is-complete{background:#63b5df}
@media(max-width:700px){.listening-progress{margin-bottom:18px}.listening-progress-segments{gap:1px}}

/* 連続読み上げ：読み上げ位置のハイライトとクリック再生 */
.speech-click-hint{margin:-12px 0 18px;color:var(--muted);font-size:11px;text-align:right}
.speech-readable{border-radius:7px;cursor:pointer;transition:background-color .15s ease,box-shadow .15s ease}
.speech-readable:hover{background:#eef7fc}
.speech-readable.is-reading{background:#d8ecfa;box-shadow:0 0 0 3px #d8ecfa;color:var(--text)}
.speech-readable[aria-current=true]{scroll-margin-block:150px}
:root[data-theme=dark] .speech-readable:hover{background:#223f54}
:root[data-theme=dark] .speech-readable.is-reading{background:#294f68;box-shadow:0 0 0 3px #294f68}
@media(max-width:700px){.speech-click-hint{margin-top:-8px;font-size:10px;text-align:left}}

/* 問題一覧：学習方法の選択と開始操作を分離 */
.results-actions.answer-mode-panel{grid-column:2;display:grid;grid-template-columns:minmax(540px,1fr) auto;align-items:stretch;gap:14px;width:min(100%,960px)}
.answer-mode-panel .answer-mode-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.answer-mode-panel .answer-mode-button{min-height:76px;background:var(--surface);color:var(--text);border-color:var(--line);box-shadow:0 3px 12px #173e5c0d}
.answer-mode-panel .answer-mode-button:hover{background:var(--blue-pale);color:var(--text)}
.answer-mode-panel .answer-mode-button.selected{background:color-mix(in srgb,var(--primary,#c8dd6a) 23%,var(--surface));border-color:var(--primary-dark,#718b16);box-shadow:0 0 0 2px color-mix(in srgb,var(--primary-dark,#718b16) 24%,transparent)}
.answer-mode-panel .answer-mode-button.selected strong{color:var(--text)}
.answer-mode-panel .answer-mode-start{min-width:138px;min-height:76px;font-size:17px;font-weight:800;box-shadow:0 4px 12px #70872826}
@media(max-width:980px){.results-actions.answer-mode-panel{grid-template-columns:1fr;width:100%}.answer-mode-panel .answer-mode-start{min-height:54px}}
@media(max-width:700px){.results-actions.answer-mode-panel{grid-column:1}.answer-mode-panel .answer-mode-actions{grid-template-columns:1fr}.answer-mode-panel .answer-mode-button{min-height:68px}.answer-mode-panel .answer-mode-start{width:100%;max-width:none}}

/* ヘッダー：現在の資格モード */
.topbar-context{display:flex;align-items:center;gap:12px;min-width:0}
.topbar-exam-label{display:inline-flex;align-items:center;min-height:28px;padding:4px 11px;border:1px solid currentColor;border-radius:999px;font-size:11px;font-weight:700;line-height:1.4;white-space:nowrap}
.topbar-exam-label[data-exam="1"]{background:#e7f3fb;color:#176a98}
.topbar-exam-label[data-exam="2"]{background:#f2eafb;color:#754a9c}
.topbar-exam-label[data-exam="geo-field"]{background:#e3f5f1;color:#147764}
.topbar-exam-label[data-exam="geo-management"]{background:#fff0de;color:#9a5a12}
.topbar-exam-label[data-exam="geo-pollution"]{background:#fce9ec;color:#a53d4b}
:root[data-theme=dark] .topbar-exam-label[data-exam="1"]{background:#1d4058;color:#8fd3f4}
:root[data-theme=dark] .topbar-exam-label[data-exam="2"]{background:#3c2d50;color:#d4acef}
:root[data-theme=dark] .topbar-exam-label[data-exam="geo-field"]{background:#1f493f;color:#91dfcb}
:root[data-theme=dark] .topbar-exam-label[data-exam="geo-management"]{background:#4d3821;color:#f3c27d}
:root[data-theme=dark] .topbar-exam-label[data-exam="geo-pollution"]{background:#522d35;color:#f5a4af}
@media(max-width:980px){.topbar-context{gap:8px}.topbar-exam-label{max-width:260px;overflow:hidden;text-overflow:ellipsis;font-size:10px}}
@media(max-width:700px){.topbar-context{display:none}}

/* サイドバー：過去問演習と学習状況別の子メニュー */
.sidebar nav .sidebar-practice-group{display:grid;gap:2px}
.sidebar nav .sidebar-practice-parent{width:100%}
.sidebar nav .sidebar-practice-children{display:grid;gap:1px;margin:1px 0 5px 22px;padding-left:5px;border-left:2px solid var(--line)}
.sidebar nav .sidebar-practice-children button{display:flex;align-items:center;gap:5px;min-height:0;width:100%;padding:6px 0;border-radius:6px;color:var(--muted);font-size:11px;line-height:1.45;text-align:left;white-space:nowrap}
.sidebar nav .sidebar-practice-children .sidebar-practice-emoji{display:inline-block;flex:0 0 15px;width:15px;font-size:12px;line-height:1;text-align:center}
.sidebar nav .sidebar-practice-children button:hover{background:var(--bg);color:var(--text)}
.sidebar nav .sidebar-practice-children button[aria-current=page]{background:var(--blue-pale);color:var(--brand);font-weight:700;box-shadow:none}
:root:not([data-exam^="geo-"]) #geoCompareNav{display:none}
@media(max-width:980px) and (min-width:701px){.sidebar nav .sidebar-practice-children{margin-left:8px;padding-left:3px}.sidebar nav .sidebar-practice-children button{gap:4px;padding:5px 0;font-size:9.5px}.sidebar nav .sidebar-practice-children .sidebar-practice-emoji{flex-basis:14px;width:14px;font-size:11px}}
@media(max-width:700px){.mobile-nav{grid-template-columns:repeat(4,1fr)!important}:root[data-exam^="geo-"] .mobile-nav{grid-template-columns:repeat(3,1fr)!important}}
