@import "https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Noto+Sans+TC:wght@400;500;600;700&display=swap";:root{color:#12253c;font-synthesis:none;text-rendering:optimizelegibility;--navy:#122c47;--navy-deep:#0a2037;--ink:#1d3045;--muted:#6c7b89;--line:#dce5e6;--line-strong:#c6d4d6;--teal:#087f78;--teal-soft:#e4f1ef;--paper:#fffefa;background:#f4f7f7;font-family:Noto Sans TC,PingFang TC,Microsoft JhengHei,sans-serif}*{box-sizing:border-box}body{background:#f4f7f7;min-width:320px;min-height:100vh;margin:0}button,select{font:inherit}button{cursor:pointer}.question-browser{min-height:100vh;padding:0 38px 56px}.browser-topbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;max-width:1480px;height:64px;margin:0 auto;display:flex}.brand-lockup{align-items:center;gap:13px;display:flex}.brand-icon{width:39px;height:39px;color:var(--teal);background:var(--teal-soft);border-radius:11px;place-items:center;display:grid}.brand-mark{width:24px;height:24px}.brand-eyebrow,.section-kicker,.paper-overline{color:var(--teal);letter-spacing:.14em;margin:0;font-family:DM Mono,monospace;font-size:10px;font-weight:500}.brand-lockup h1{color:var(--navy);letter-spacing:-.03em;margin:3px 0 0;font-size:22px;line-height:1.1}.brand-lockup h1 span{color:#71818d;letter-spacing:0;font-family:Georgia,serif;font-size:18px;font-weight:400}.topbar-meta{color:#6f7f8c;align-items:center;gap:13px;font-size:13px;display:flex}.source-label{color:var(--teal);font-weight:600}.topbar-divider{background:var(--line-strong);width:1px;height:15px}.browser-intro{justify-content:space-between;align-items:end;gap:30px;max-width:1480px;margin:0 auto;padding:24px 2px 18px;display:flex}.browser-intro .section-kicker{display:none}.intro-copy h2{max-width:750px;color:var(--navy-deep);letter-spacing:-.055em;margin:0 0 5px;font-size:clamp(24px,2.2vw,28px);line-height:1.25}.intro-copy>p:last-child{color:var(--muted);margin:0;font-size:14px;line-height:1.5}.archive-stat{border-left:2px solid var(--teal);min-width:132px;color:var(--muted);white-space:nowrap;padding:0 2px 5px 24px}.archive-stat-label{color:#73838c;margin-bottom:5px;font-size:12px;display:block}.archive-stat strong{color:var(--navy);margin-right:5px;font-family:Georgia,serif;font-size:34px;font-weight:500;line-height:1}.archive-stat>span:last-child{color:var(--navy);font-size:14px}.filter-panel{border:1px solid var(--line);background:#fffc;border-radius:13px;max-width:1480px;margin:0 auto 18px;padding:11px 17px 9px;box-shadow:0 5px 18px #15304009}.filter-heading{align-items:center;gap:10px;min-width:155px;display:flex}.filter-heading-icon{width:32px;height:32px;color:var(--teal);background:var(--teal-soft);border-radius:8px;place-items:center;display:grid}.icon-search{width:18px;height:18px}.filter-heading h3{color:var(--navy);margin:0;font-size:14px}.filter-heading p{color:var(--muted);margin:2px 0 0;font-size:11px}.filter-panel{grid-template-columns:155px minmax(0,1fr);align-items:center;gap:7px 18px;display:grid}.filter-controls{align-items:end;gap:10px;display:flex}.filter-field{flex-direction:column;flex:170px;gap:5px;min-width:125px;display:flex}.filter-field span{color:#637581;font-size:11px;font-weight:600}.filter-field select{appearance:none;width:100%;min-height:36px;color:var(--ink);border:1px solid var(--line-strong);background-color:#fff;background-image:linear-gradient(45deg,#0000 50%,#78909b 50%),linear-gradient(135deg,#78909b 50%,#0000 50%);background-position:calc(100% - 16px) 15px,calc(100% - 11px) 15px;background-repeat:no-repeat;background-size:5px 5px,5px 5px;background-attachment:scroll;background-origin:padding-box;background-clip:border-box;border-radius:7px;outline:none;padding:0 31px 0 12px;font-size:14px;transition:border-color .16s,box-shadow .16s}.filter-field select:hover,.filter-field select:focus{border-color:var(--teal);box-shadow:0 0 0 3px #087f781a}.clear-filters{color:#647782;white-space:nowrap;background:0 0;border:1px solid #0000;border-radius:7px;min-height:36px;padding:0 13px;font-size:13px}.clear-filters:hover:not(:disabled),.clear-filters:focus-visible:not(:disabled){color:var(--teal);background:#f0f7f6;border-color:#b7d9d5}.clear-filters:disabled{cursor:default;opacity:.42}.filter-status{color:#758590;grid-column:2;font-size:12px}.filter-status-count{color:var(--teal);border-left:1px solid var(--line);margin-left:12px;padding-left:12px;font-weight:600;display:inline-block}.filter-note{color:#89979a;margin-left:12px;font-size:11px;display:inline-block}.browser-workspace{border:1px solid var(--line);background:#eef3f3;border-radius:14px;grid-template-columns:minmax(300px,37%) minmax(0,1fr);align-items:stretch;max-width:1480px;min-height:620px;margin:0 auto;display:grid;overflow:hidden;box-shadow:0 8px 24px #1530400b}.question-list{background:#eef4f3;border-right:1px solid #d6e1e1;min-width:0;padding:23px 17px 22px}.list-header{justify-content:space-between;align-items:end;padding:0 7px 17px;display:flex}.list-header h3{color:var(--navy);letter-spacing:-.03em;margin:6px 0 0;font-size:18px}.list-count{min-width:30px;color:var(--teal);background:var(--teal-soft);text-align:center;border-radius:6px;padding:5px 8px;font-family:DM Mono,monospace;font-size:12px}.question-card-list{flex-direction:column;gap:8px;display:flex}.question-card{width:100%;color:var(--ink);text-align:left;background:#ffffffb8;border:1px solid #0000;border-radius:9px;padding:13px 14px 12px;transition:border-color .16s,background .16s,transform .16s,box-shadow .16s;display:block;box-shadow:0 1px 3px #18374406}.question-card:hover{background:#fff;border-color:#b8d4d1;transform:translateY(-1px);box-shadow:0 4px 11px #1837440f}.question-card:focus-visible{outline-offset:1px;outline:3px solid #087f7840}.question-card.is-selected{box-shadow:inset 3px 0 0 var(--teal), 0 4px 12px #18374412;background:#fff;border-color:#66aea8}.question-card-topline,.question-card-bottomline{color:#70828d;letter-spacing:.02em;justify-content:space-between;align-items:center;gap:8px;font-family:DM Mono,monospace;font-size:10px;display:flex}.question-card-type{color:var(--teal);background:#e8f2f0;border-radius:4px;padding:3px 6px;font-family:Noto Sans TC,sans-serif;font-size:10px}.question-card-title{min-height:44px;color:var(--navy);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:9px 0 8px;font-size:14px;font-weight:600;line-height:1.55;display:-webkit-box;overflow:hidden}.question-card-bottomline{color:#71818b;font-family:Noto Sans TC,sans-serif;font-size:11px}.question-card-topic{max-width:62%;color:var(--teal);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.question-detail{background:#f1f4f3;min-width:0;padding:24px;overflow:hidden}.paper-sheet{color:#253543;background:var(--paper);border:1px solid #e5e5df;max-width:900px;min-height:572px;margin:0 auto;padding:37px clamp(26px,5vw,70px) 26px;box-shadow:0 2px 8px #162c350e}.paper-header{border-bottom:1px solid #d9e0dc;justify-content:space-between;align-items:start;gap:20px;padding-bottom:18px;display:flex}.paper-header h3{color:var(--navy);letter-spacing:-.04em;margin:8px 0 0;font-family:Georgia,Noto Serif TC,serif;font-size:30px;font-weight:500}.paper-marks{color:#74818a;border-left:1px solid #d7e0dc;align-items:baseline;gap:4px;min-width:55px;padding-left:15px;display:flex}.paper-marks strong{color:var(--teal);font-family:Georgia,serif;font-size:25px;font-weight:500}.paper-marks span{font-size:12px}.paper-meta{color:#71808a;flex-wrap:wrap;gap:19px;padding:13px 0 19px;font-size:12px;display:flex}.paper-meta span{align-items:baseline;gap:5px;display:inline-flex}.paper-meta b{color:#a0a9aa;font-size:10px;font-weight:500}.paper-title{border-bottom:1px dashed #d8e0dd;padding:14px 0 20px}.paper-title h4{color:#21364b;margin:0;font-family:Georgia,Noto Serif TC,serif;font-size:20px;font-weight:500;line-height:1.6}.paper-topics{flex-wrap:wrap;gap:6px;margin-top:11px;display:flex}.paper-topics span{color:var(--teal);background:var(--teal-soft);border-radius:4px;padding:3px 8px;font-size:11px}.paper-content{padding:22px 0 8px;font-family:Noto Sans TC,PingFang TC,sans-serif;font-size:15px;line-height:1.85}.question-block+.question-block{margin-top:19px}.question-text{white-space:normal;margin:0}.question-text+.question-table-wrap,.question-text+.mc-options,.question-text+.question-figure{margin-top:14px}.question-instruction{color:#596e79;font-size:14px}.question-muted{color:#8b989c;font-size:13px;font-style:italic}.question-table-wrap{border:1px solid #cfdad6;overflow-x:auto}.question-table{border-collapse:collapse;width:100%;min-width:390px;font-size:13px;line-height:1.6}.question-table th,.question-table td{text-align:left;vertical-align:top;border:1px solid #d6dfdb;padding:9px 12px}.question-table th{color:var(--navy);background:#edf4f2;font-weight:600}.question-table td{background:#fff6}.mc-options{gap:8px;margin:14px 0 0;padding:0;list-style:none;display:grid}.mc-options li,.mc-options-row{color:#304454;background:#f5f8f6;border:1px solid #dae5e1;border-radius:5px;align-items:center;gap:11px;min-height:39px;padding:7px 10px;display:flex}.question-block--option+.question-block--option,.question-block--option .mc-options{margin-top:0}.mc-option-label{width:23px;height:23px;color:var(--teal);background:#e2f0ed;border-radius:50%;flex:0 0 23px;place-items:center;font-family:DM Mono,monospace;font-size:11px;display:inline-grid}.question-figure{max-width:100%;margin:18px 0 0}.question-figure-link{width:fit-content;max-width:100%;color:inherit;text-decoration:none;display:block;position:relative}.question-figure img{border:1px solid #d5dfdc;max-width:100%;height:auto;display:block}.figure-zoom{color:#fff;opacity:0;background:#0f303ecc;border-radius:4px;padding:4px 7px;font-size:11px;transition:opacity .15s;position:absolute;bottom:8px;right:8px}.question-figure-link:hover .figure-zoom,.question-figure-link:focus-visible .figure-zoom{opacity:1}.question-figure figcaption{color:#75858a;margin-top:7px;font-size:12px}.paper-footer{color:#94a0a1;border-top:1px solid #e3e6e1;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:26px;padding-top:13px;font-size:11px;display:flex}.state-card{text-align:center;border:1px dashed var(--line-strong);background:#ffffffa8;border-radius:9px;margin:16px 4px;padding:28px 18px}.state-card--error{border-color:#e4c8c1}.state-icon{width:30px;height:30px;color:var(--teal);background:var(--teal-soft);border-radius:50%;place-items:center;margin:0 auto 10px;font-family:Georgia,serif;font-size:18px;display:grid}.state-card--error .state-icon{color:#ad5541;background:#f7e9e4}.state-card h4{color:var(--navy);margin:0 0 6px;font-size:14px}.state-card p{color:#77858b;max-width:240px;margin:0 auto 14px;font-size:12px;line-height:1.65}.state-action{color:#fff;background:var(--teal);border:0;border-radius:5px;min-height:35px;padding:0 13px;font-size:12px;font-weight:600}.state-action:hover,.state-action:focus-visible{background:#086962}.detail-placeholder{color:#7b898d;text-align:center;place-content:center;justify-items:center;gap:10px;height:100%;min-height:570px;font-size:14px;display:grid}.detail-placeholder p{margin:0 0 4px}.placeholder-mark{color:#77928f;background:#e0ecea;border-radius:50%;place-items:center;width:47px;height:47px;font-family:Georgia,serif;font-size:25px;display:grid}.skeleton-list{gap:8px;display:grid}.skeleton-card{background:#ffffff80;border-radius:9px;align-content:center;gap:9px;height:118px;padding:15px;display:grid}.skeleton-card span,.detail-loading-line{background:linear-gradient(90deg,#dce8e6 20%,#eff5f3 50%,#dce8e6 80%) 0 0/200% 100%;border-radius:4px;height:8px;animation:1.4s ease-in-out infinite shimmer;display:block}.skeleton-card span:first-child{width:30%}.skeleton-card span:nth-child(2){width:90%}.skeleton-card span:nth-child(3){width:52%}.detail-loading{background:var(--paper);border:1px solid #e5e5df;max-width:900px;min-height:570px;margin:0 auto;padding:58px clamp(26px,5vw,70px)}.detail-loading-line{height:11px;margin-bottom:19px}.detail-loading-line--short{width:27%;height:8px}.detail-loading-line--title{width:44%;height:29px;margin:22px 0 35px}.detail-loading-line--half{width:62%}@keyframes shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@media (width<=880px){.question-browser{padding:0 18px 36px}.browser-topbar{height:72px}.topbar-meta{font-size:12px}.source-label,.topbar-divider,.topbar-meta>span:last-child{display:none}.browser-intro{padding:38px 1px 28px}.intro-copy h2{font-size:29px}.filter-panel{grid-template-columns:1fr;gap:15px}.filter-heading{min-width:0}.filter-status{grid-column:1}.filter-controls{flex-wrap:wrap}.filter-field{flex-basis:calc(33.333% - 9px)}.clear-filters{margin-left:auto}.browser-workspace{grid-template-columns:1fr}.question-list{border-bottom:1px solid #d6e1e1;border-right:0}.question-detail{padding:18px}.question-card-list{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.detail-placeholder,.detail-loading{min-height:420px}}@media (width<=580px){.question-browser{padding:0 12px 24px}.browser-topbar{height:66px}.brand-lockup h1{font-size:19px}.brand-lockup h1 span{font-size:16px}.brand-eyebrow{font-size:9px}.browser-intro{flex-direction:column;align-items:start;gap:20px;padding:31px 1px 23px}.intro-copy h2{margin-top:8px;font-size:26px}.intro-copy>p:last-child{font-size:14px}.archive-stat{padding-left:13px}.filter-panel{padding:15px 13px 12px}.filter-controls{grid-template-columns:1fr 1fr;gap:10px;display:grid}.filter-field{flex-basis:auto;min-width:0}.filter-field--topic{grid-column:span 2}.clear-filters{grid-column:span 2;justify-self:start;margin:0}.browser-workspace{border-radius:10px}.question-list{padding:18px 11px}.question-card-list{grid-template-columns:1fr}.question-detail{padding:10px}.paper-sheet{padding:25px 18px 20px}.paper-header h3{font-size:26px}.paper-meta{gap:8px 14px}.paper-content{font-size:14px}.paper-footer{flex-direction:column}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* ===== 卷一練習：在試用版樣式之上的新增 ===== */
[hidden]{display:none!important}
.gate{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:#f4f7f7;padding:20px}
.gate-card{width:min(420px,100%);background:var(--paper);border:1px solid #e5e5df;border-radius:14px;padding:34px 32px 30px;box-shadow:0 10px 30px #15304014}
.gate-card h1{color:var(--navy);letter-spacing:-.03em;margin:4px 0 12px;font-size:24px;line-height:1.15}
.gate-card h1 span{color:#71818d;letter-spacing:0;font-family:Georgia,serif;font-size:17px;font-weight:400}
.gate-note{color:var(--muted);font-size:13px;line-height:1.7;margin:0 0 18px}
.gate-field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.gate-field span{color:#637581;font-size:11px;font-weight:600}
.gate-field input{min-height:42px;border:1px solid var(--line-strong);border-radius:7px;padding:0 12px;font-size:16px;letter-spacing:.12em;font-family:DM Mono,monospace;outline:none}
.gate-field input:focus{border-color:var(--teal);box-shadow:0 0 0 3px #087f781a}
.gate-error{color:#ad5541;font-size:12px;margin:0 0 10px}
.btn-primary{color:#fff;background:var(--teal);border:0;border-radius:7px;min-height:40px;padding:0 18px;font-size:14px;font-weight:600}
.btn-primary:hover,.btn-primary:focus-visible{background:#086962}
.btn-primary:disabled{opacity:.5;cursor:default}
.btn-ghost{color:var(--teal);background:#fff;border:1px solid #b7d9d5;border-radius:7px;min-height:40px;padding:0 16px;font-size:14px;font-weight:600}
.btn-ghost:hover,.btn-ghost:focus-visible{background:#f0f7f6}
.lang-toggle{display:inline-flex;border:1px solid var(--line-strong);border-radius:7px;overflow:hidden}
.lang-toggle button{border:0;background:#fff;color:#637581;padding:6px 12px;font-size:12px;font-weight:600}
.lang-toggle button.is-active{background:var(--teal);color:#fff}
.archive-stat-sub{display:block;color:#73838c;font-size:12px;margin-top:6px}
.question-card{position:relative}
.question-card-mark{position:absolute;top:10px;right:10px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700}
.question-card-mark.right{background:#e0f2ea;color:#1b7a4b}
.question-card-mark.wrong{background:#f8e5e0;color:#ad5541}
.question-card.has-mark .question-card-type{margin-right:24px}
.mc-choices{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:8px}
.mc-choice{width:100%;text-align:left;color:#304454;background:#f5f8f6;border:1px solid #dae5e1;border-radius:6px;display:flex;align-items:flex-start;gap:11px;min-height:42px;padding:9px 12px;font-size:15px;line-height:1.7;transition:border-color .15s,background .15s,transform .15s}
.mc-choice:hover:not(:disabled){background:#fff;border-color:#8cc4bf;transform:translateY(-1px)}
.mc-choice:focus-visible{outline:3px solid #087f7840;outline-offset:1px}
.mc-choice:disabled{cursor:default}
.mc-choice .mc-option-label{margin-top:3px}
.mc-choice.is-chosen{border-color:var(--teal);background:#fff;box-shadow:inset 3px 0 0 var(--teal)}
.mc-choice.is-correct{border-color:#3c9d6b;background:#eef8f2}
.mc-choice.is-correct .mc-option-label{background:#3c9d6b;color:#fff}
.mc-choice.is-wrong{border-color:#d38a7a;background:#fbf0ed}
.mc-choice.is-wrong .mc-option-label{background:#c96a55;color:#fff}
.mc-choice img{max-width:100%;max-height:220px;display:block;border:1px solid #d5dfdc;background:#fff}
.mc-choice-body{flex:1;min-width:0}
.result-card{margin-top:22px;border-radius:10px;padding:18px 20px;border:1px solid}
.result-card.right{background:#eef8f2;border-color:#bfe0cc}
.result-card.wrong{background:#fbf0ed;border-color:#ecc9c0}
.result-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.result-icon{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-weight:700;color:#fff;flex:0 0 28px}
.right .result-icon{background:#3c9d6b}
.wrong .result-icon{background:#c96a55}
.result-head h5{margin:0;font-size:16px;color:var(--navy)}
.result-sub{color:#5c6f7a;font-size:13px;margin:0 0 12px}
.result-section{margin-top:12px;padding-top:12px;border-top:1px dashed #d8e0dd}
.result-section h6{margin:0 0 6px;font-size:11px;letter-spacing:.12em;color:var(--teal);font-family:DM Mono,monospace;font-weight:500}
.result-section .note-body{font-size:14px;line-height:1.8;color:#2b3c4a}
.note-body p{margin:0 0 6px}
.note-body ul{margin:4px 0 6px;padding-left:20px}
.note-body li{margin-bottom:3px}
.result-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.paper-hint{color:#8b989c;font-size:12px;margin:10px 0 0}
.deleted-tag{display:inline-block;color:#8a5a2b;background:#fbefd9;border-radius:4px;padding:3px 8px;font-size:11px;margin-left:8px}
.lang-fallback{color:#8b989c;font-size:12px;font-style:italic;margin:0 0 10px}
.site-footer{max-width:1480px;margin:22px auto 0;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;color:#94a0a1;font-size:11px}
.question-text{white-space:pre-line}
@media (width<=580px){.mc-choice{font-size:14px}.result-card{padding:14px}.lang-toggle button{padding:6px 9px}}
/* 桌面：題目列表獨立捲動，右邊試卷保持可見 */
@media (width>880px){.question-list{position:sticky;top:0;max-height:100vh;overflow-y:auto;overscroll-behavior:contain}.browser-workspace{align-items:start}}
/* 手機／平板：列表限高內部捲動，試卷緊隨其下 */
@media (width<=880px){.question-list{max-height:56vh;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.question-detail{scroll-margin-top:8px}}
.gate-lang{margin-bottom:14px}
/* ===== 卷二問答作答 ===== */
.p2-part{margin-top:22px;padding-top:14px;border-top:1px dashed #d8e0dd}
.p2-part-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.p2-part-label{font-family:Georgia,Noto Serif TC,serif;font-size:17px;color:var(--navy)}
.p2-part-marks{color:#74818a;font-size:12px;white-space:nowrap}
.p2-answer{width:100%;min-height:120px;margin-top:10px;border:1px solid var(--line-strong);border-radius:7px;padding:10px 12px;font:inherit;font-size:15px;line-height:1.75;resize:vertical;background:#fff}
.p2-answer:focus{border-color:var(--teal);outline:none;box-shadow:0 0 0 3px #087f781a}
.p2-answer:disabled{background:#f5f8f6;color:#3a4a57}
.p2-count{color:#8b989c;font-size:11px;text-align:right;margin-top:4px}
.p2-submit{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:22px;padding-top:16px;border-top:1px solid #e3e6e1}
.p2-quota{color:#74818a;font-size:12px}
.p2-result{margin-top:22px}
.p2-score{display:flex;align-items:baseline;gap:8px;font-family:Georgia,serif;color:var(--navy)}
.p2-score strong{font-size:34px;color:var(--teal)}
.p2-score span{font-size:14px;color:#74818a}
.p2-points{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
.p2-point{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.7;padding:8px 10px;border-radius:6px;background:#f7faf9;border:1px solid #dae5e1}
.p2-point.hit{background:#eef8f2;border-color:#bfe0cc}
.p2-point.miss{background:#fbf0ed;border-color:#ecc9c0}
.p2-point-mark{width:20px;height:20px;border-radius:50%;flex:0 0 20px;display:grid;place-items:center;font-size:11px;font-weight:700;color:#fff;margin-top:3px}
.hit .p2-point-mark{background:#3c9d6b}.miss .p2-point-mark{background:#c96a55}
.p2-evidence{color:#5c6f7a;font-size:13px;font-style:italic}
.p2-comment{color:#2b3c4a}
.p2-part-result{margin-top:14px}
.p2-part-result h6{margin:0 0 4px;font-size:11px;letter-spacing:.12em;color:var(--teal);font-family:DM Mono,monospace;font-weight:500}
.p2-overall{margin-top:16px;padding:14px 16px;border-radius:8px;background:#eef3f3;font-size:14px;line-height:1.8}
.p2-overall p{margin:0 0 6px}
.p2-ref{margin-top:14px}
.p2-ref summary{cursor:pointer;color:var(--teal);font-size:13px;font-weight:600}
.p2-ref ol{margin:8px 0 0;padding-left:20px;font-size:13px;line-height:1.7;color:#3a4a57}
.p2-sec{color:var(--teal);background:#e8f2f0;border-radius:4px;padding:3px 6px;font-family:Noto Sans TC,sans-serif;font-size:10px}
.question-card-mark.score{width:auto;padding:0 6px;border-radius:10px;font-size:10px;font-family:DM Mono,monospace}

/* 回報題目問題 */
.report-link{color:#74818a;background:none;border:0;padding:0;font:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.report-link:hover{color:var(--teal)}
.paper-footer .report-link{margin-left:auto}
.report-dialog{border:0;border-radius:14px;padding:0;width:min(520px,calc(100% - 32px));box-shadow:0 18px 50px #15304026;background:var(--paper)}
.report-dialog::backdrop{background:#13293a80}
.report-card{padding:28px 28px 24px}
.report-card h2{color:var(--navy);letter-spacing:-.02em;margin:4px 0 8px;font-size:22px}
.report-q{color:var(--navy);font-size:13px;font-weight:600;margin:0 0 14px;padding:8px 10px;background:#f5f8f6;border-radius:6px}
.report-card select,.report-card textarea,.report-card input[type=text]{min-height:40px;border:1px solid var(--line-strong);border-radius:7px;padding:8px 12px;font:inherit;font-size:14px;line-height:1.6;background:#fff;letter-spacing:0;font-family:inherit}
.report-card textarea{resize:vertical;min-height:96px}
.report-card select:focus,.report-card textarea:focus,.report-card input:focus{border-color:var(--teal);outline:none;box-shadow:0 0 0 3px #087f781a}
.report-count{color:#8b989c;font-size:11px;text-align:right}
.report-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.report-actions{justify-content:flex-end;margin-top:6px}
.report-done{margin-top:14px;padding:10px 12px;border-radius:6px;background:#eef8f2;border:1px solid #bfe0cc;color:#1b7a4b;font-size:13px}
@media (max-width:520px){.report-two{grid-template-columns:1fr}.report-card{padding:22px 18px 18px}}

/* ===== 日／夜模式切換掣 ===== */
.theme-toggle{width:34px;height:30px;border:1px solid var(--line-strong);border-radius:7px;background:#fff;color:#637581;display:inline-grid;place-items:center;font-size:15px;line-height:1;padding:0}
.theme-toggle:hover,.theme-toggle:focus-visible{color:var(--teal);border-color:#8cc4bf}
.theme-toggle .theme-icon-moon{display:none}
[data-theme=dark] .theme-toggle .theme-icon-sun{display:none}
[data-theme=dark] .theme-toggle .theme-icon-moon{display:block}
.gate-controls{display:flex;gap:8px;align-items:center;margin-bottom:14px}

/* ===== 夜間模式 ===== */
[data-theme=dark]{color-scheme:dark;color:#e3ebf1;background:#0f1a24;--navy:#e8f0f6;--navy-deep:#f2f6fa;--ink:#e3ebf1;--muted:#9fb0bd;--line:#26384a;--line-strong:#35495b;--teal:#4fc1b6;--teal-soft:#153b3b;--paper:#172532;--dk-bg:#0f1a24;--dk-panel:#16232f;--dk-panel2:#1c2b38;--dk-field:#101c27;--dk-text:#e3ebf1;--dk-sub:#a9b8c4;--dk-dim:#7f91a0}
[data-theme=dark] body,[data-theme=dark] .gate{background:var(--dk-bg)}
[data-theme=dark] .brand-lockup h1 span,[data-theme=dark] .gate-card h1 span,[data-theme=dark] .topbar-meta,[data-theme=dark] .archive-stat-label,[data-theme=dark] .archive-stat-sub,[data-theme=dark] .filter-field span,[data-theme=dark] .filter-status,[data-theme=dark] .filter-note,[data-theme=dark] .gate-field span,[data-theme=dark] .question-card-topline,[data-theme=dark] .question-card-bottomline,[data-theme=dark] .paper-meta,[data-theme=dark] .paper-marks,[data-theme=dark] .question-figure figcaption,[data-theme=dark] .paper-footer,[data-theme=dark] .site-footer,[data-theme=dark] .state-card p,[data-theme=dark] .detail-placeholder,[data-theme=dark] .result-sub,[data-theme=dark] .paper-hint,[data-theme=dark] .lang-fallback,[data-theme=dark] .question-muted,[data-theme=dark] .p2-part-marks,[data-theme=dark] .p2-count,[data-theme=dark] .p2-quota,[data-theme=dark] .p2-score span,[data-theme=dark] .p2-evidence,[data-theme=dark] .report-link,[data-theme=dark] .report-count,[data-theme=dark] .clear-filters{color:var(--dk-dim)}
[data-theme=dark] .paper-meta b{color:#6b7d8c}
[data-theme=dark] .question-instruction{color:var(--dk-sub)}
[data-theme=dark] .filter-panel{background:#16232fcc;border-color:var(--line);box-shadow:0 5px 18px #00000040}
[data-theme=dark] .filter-field select{color:var(--dk-text);background-color:var(--dk-field);background-image:linear-gradient(45deg,#0000 50%,#8fa3b3 50%),linear-gradient(135deg,#8fa3b3 50%,#0000 50%)}
[data-theme=dark] .clear-filters:hover:not(:disabled),[data-theme=dark] .clear-filters:focus-visible:not(:disabled){background:var(--teal-soft);border-color:#2f6a66}
[data-theme=dark] .browser-workspace{background:var(--dk-panel);border-color:var(--line);box-shadow:0 8px 24px #00000050}
[data-theme=dark] .question-list{background:var(--dk-panel);border-color:var(--line)}
[data-theme=dark] .question-detail{background:var(--dk-panel2)}
[data-theme=dark] .question-card{background:#1c2b38;box-shadow:0 1px 3px #00000030}
[data-theme=dark] .question-card:hover{background:#223444;border-color:#3d6a67}
[data-theme=dark] .question-card.is-selected{background:#223444;border-color:var(--teal)}
[data-theme=dark] .question-card-type,[data-theme=dark] .p2-sec{background:var(--teal-soft)}
[data-theme=dark] .paper-sheet,[data-theme=dark] .detail-loading,[data-theme=dark] .gate-card,[data-theme=dark] .report-dialog{color:var(--dk-text);background:var(--paper);border-color:var(--line);box-shadow:0 2px 8px #00000040}
[data-theme=dark] .paper-header,[data-theme=dark] .paper-marks{border-color:var(--line)}
[data-theme=dark] .paper-title,[data-theme=dark] .result-section,[data-theme=dark] .p2-part{border-color:var(--line-strong)}
[data-theme=dark] .paper-title h4,[data-theme=dark] .result-section .note-body,[data-theme=dark] .p2-comment,[data-theme=dark] .p2-ref ol,[data-theme=dark] .p2-answer:disabled{color:var(--dk-text)}
[data-theme=dark] .question-table-wrap,[data-theme=dark] .question-table th,[data-theme=dark] .question-table td{border-color:var(--line-strong)}
[data-theme=dark] .question-table th{background:#1f3040}
[data-theme=dark] .question-table td{background:#ffffff08}
[data-theme=dark] .mc-options li,[data-theme=dark] .mc-options-row,[data-theme=dark] .mc-choice,[data-theme=dark] .p2-point,[data-theme=dark] .report-q,[data-theme=dark] .p2-overall{color:var(--dk-text);background:var(--dk-panel2);border-color:var(--line-strong)}
[data-theme=dark] .mc-option-label{background:var(--teal-soft)}
[data-theme=dark] .mc-choice:hover:not(:disabled){background:#243848;border-color:#4fc1b6}
[data-theme=dark] .mc-choice.is-chosen{background:#243848}
[data-theme=dark] .mc-choice.is-correct,[data-theme=dark] .result-card.right,[data-theme=dark] .p2-point.hit,[data-theme=dark] .report-done{background:#16342a;border-color:#2f6a4c}
[data-theme=dark] .mc-choice.is-wrong,[data-theme=dark] .result-card.wrong,[data-theme=dark] .p2-point.miss{background:#3a2320;border-color:#7a4237}
[data-theme=dark] .question-card-mark.right{background:#1f4a38;color:#8fdcb0}
[data-theme=dark] .question-card-mark.wrong{background:#4d2a25;color:#f2a08c}
[data-theme=dark] .report-done{color:#8fdcb0}
[data-theme=dark] .gate-error{color:#f2a08c}
[data-theme=dark] .state-card{background:#16232fa8;border-color:var(--line-strong)}
[data-theme=dark] .state-card--error .state-icon{color:#f2a08c;background:#4d2a25}
[data-theme=dark] .placeholder-mark{color:#8fb5b0;background:#1f3a3a}
[data-theme=dark] .skeleton-card{background:#ffffff0f}
[data-theme=dark] .skeleton-card span,[data-theme=dark] .detail-loading-line{background:linear-gradient(90deg,#26384a 20%,#31465a 50%,#26384a 80%) 0 0/200% 100%}
[data-theme=dark] .question-figure img,[data-theme=dark] .mc-choice img{border-color:var(--line-strong);background:#fff}
[data-theme=dark] .deleted-tag{color:#e9c078;background:#3d2e14}
[data-theme=dark] .btn-ghost,[data-theme=dark] .lang-toggle button,[data-theme=dark] .theme-toggle{background:var(--dk-field);color:var(--dk-sub);border-color:var(--line-strong)}
[data-theme=dark] .btn-ghost{color:var(--teal)}
[data-theme=dark] .btn-ghost:hover,[data-theme=dark] .btn-ghost:focus-visible{background:var(--teal-soft)}
[data-theme=dark] .lang-toggle button.is-active{background:var(--teal);color:#0f1a24}
[data-theme=dark] .btn-primary,[data-theme=dark] .state-action{color:#0f1a24}
[data-theme=dark] .btn-primary:hover,[data-theme=dark] .btn-primary:focus-visible,[data-theme=dark] .state-action:hover,[data-theme=dark] .state-action:focus-visible{background:#6ad2c8}
[data-theme=dark] .gate-field input,[data-theme=dark] .p2-answer,[data-theme=dark] .report-card select,[data-theme=dark] .report-card textarea,[data-theme=dark] .report-card input[type=text]{color:var(--dk-text);background:var(--dk-field);border-color:var(--line-strong)}
[data-theme=dark] .report-dialog::backdrop{background:#000000a0}
[data-theme=dark] .figure-zoom{background:#000000cc}

/* ===== Google 登入／用戶 ===== */
.btn-google{display:inline-flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;width:100%;min-height:44px;font-size:15px}
.btn-google svg{background:#fff;border-radius:50%;padding:2px;flex:0 0 22px;width:22px;height:22px}
.user-chip{display:inline-flex;align-items:center;gap:8px;color:#6f7f8c;font-size:13px;max-width:260px}
.user-chip #user-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--navy);font-weight:600}
.link-btn{background:none;border:0;padding:0;font:inherit;font-size:12px;color:var(--teal);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
[data-theme=dark] .user-chip{color:var(--dk-dim)}
@media (max-width:640px){.user-chip{max-width:140px}.topbar-meta .source-label{display:none}}
