:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f4f7f5;color:#17201c;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(180deg,#f4f7f5f0,#f4f7f5),repeating-linear-gradient(90deg,rgba(23,32,28,.04) 0 1px,transparent 1px 72px)}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.app-shell{min-height:100vh}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:72px;padding:12px clamp(16px,4vw,48px);border-bottom:1px solid #dce5dd;background:#fafcfaeb;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.brand{display:inline-flex;align-items:center;gap:12px;border:0;background:transparent;color:inherit;text-align:left}.brand-mark{display:grid;width:40px;height:40px;place-items:center;border-radius:8px;background:#1f6f5f;color:#fff;font-weight:800}.brand strong,.brand small{display:block}.brand small{color:#66736d;font-size:12px}.top-actions,.hero-actions,.quiz-actions,.mark-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.topbar-controls{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}.auth-form,.auth-account,.auth-status{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:4px;border:1px solid #d7e1d9;border-radius:8px;background:#fff}.auth-form{flex-wrap:wrap;max-width:680px}.auth-form input{width:132px;min-height:34px;border:1px solid #d7e1d9;border-radius:6px;padding:0 10px;background:#fbfdfb;color:#17201c;font-size:12px;font-weight:700}.auth-account>div,.auth-status{flex-direction:column;align-items:flex-start;justify-content:center}.auth-account span,.auth-status span{max-width:180px;overflow:hidden;color:#1f332c;font-size:12px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.auth-account small,.auth-status small,.auth-form small{color:#69756f;font-size:10px;font-weight:800}.auth-status-muted{background:#f5f8f6}.auth-error{color:#9b3e34!important}.compact-auth-button{min-height:34px;padding:0 10px;font-size:12px}.google-auth-button{display:inline-flex;align-items:center;justify-content:center;gap:6px}.google-auth-button span{display:grid;width:20px;height:20px;place-items:center;border:1px solid #d7e1d9;border-radius:50%;color:#1f6f5f;font-size:12px;font-weight:900}.subject-switcher{display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:4px;border:1px solid #d7e1d9;border-radius:8px;background:#eef4ef}.subject-tab{display:inline-flex;min-width:86px;min-height:34px;flex-direction:column;align-items:center;justify-content:center;border:1px solid transparent;border-radius:6px;background:transparent;color:#43504b;font-size:12px;font-weight:800}.subject-tab small{color:#738078;font-size:10px;font-weight:700}.subject-tab.active{border-color:#cbd8ce;background:#fff;color:#1f332c;box-shadow:0 6px 16px #1f302a14}.icon-button,.text-button,.primary-button,.secondary-button,.mark-button{min-height:40px;border-radius:8px;border:1px solid transparent;padding:0 14px;font-weight:700}.icon-button{width:40px;padding:0;border-color:#d7e1d9;background:#fff}.text-button{border-color:#d7e1d9;background:#fff;color:#26342f}.primary-button{border-color:#1f6f5f;background:#1f6f5f;color:#fff}.secondary-button,.mark-button{border-color:#d7e1d9;background:#fff;color:#26342f}.danger-button{border-color:#d8958b;color:#84392f}.mark-button.active{border-color:#6b8f37;background:#eef5e5}.dashboard,.setup-page,.quiz-page,.result-page,.summary-page,.empty-state{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:28px 0 56px}.overview-band{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:24px;align-items:stretch;min-height:300px;padding:clamp(24px,5vw,48px);border:1px solid #d8e2d9;border-radius:8px;background:linear-gradient(135deg,#fffffff5,#eff6f1eb),#fff;box-shadow:0 18px 50px #1f302a14}.overview-copy{display:flex;flex-direction:column;justify-content:center;gap:18px}.eyebrow{margin:0;color:#65736c;font-size:13px;font-weight:800;text-transform:uppercase}h1,h2,p{margin-top:0}h1{max-width:760px;margin-bottom:0;font-size:clamp(32px,6vw,56px);line-height:1.04;letter-spacing:0}h2{margin-bottom:16px;font-size:20px}.study-visual{position:relative;min-height:250px;overflow:hidden;border:1px solid #d7e1d9;border-radius:8px;background:radial-gradient(circle at 74% 32%,#f0c987 0 9%,transparent 10%),linear-gradient(145deg,#f9fbf8,#dce9df)}.subject-overview-band{background:linear-gradient(135deg,#fffffff5,#eff4f6eb),#fff}.subject-intro{max-width:680px;color:#4f5b56;font-size:17px;line-height:1.7}.physiology-visual{position:relative;min-height:250px;overflow:hidden;border:1px solid #d7e1d9;border-radius:8px;background:linear-gradient(145deg,#fbfcfb,#dfe9eb),#eef5f2}.signal-card{position:absolute;left:28px;right:28px;top:38px;display:grid;gap:12px;padding:22px;border:1px solid #cbd8ce;border-radius:8px;background:#ffffffc7}.signal-card span{display:block;height:10px;border-radius:999px;background:linear-gradient(90deg,#3b7a89,#91b66f)}.signal-card span:nth-child(1){width:48%}.signal-card span:nth-child(2){width:78%}.signal-card span:nth-child(3){width:62%}.signal-card span:nth-child(4){width:88%}.organ-grid{position:absolute;right:30px;bottom:28px;display:grid;grid-template-columns:repeat(2,54px);gap:12px}.organ-grid i{display:block;aspect-ratio:1;border:1px solid rgba(59,122,137,.25);border-radius:8px;background:#fff;box-shadow:inset 0 0 0 10px #91b66f29}.pending-panel strong{font-size:clamp(22px,3vw,30px)}.subject-ready-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.subject-ready-grid article{min-height:150px;padding:18px;border:1px solid #d7e1d9;border-radius:8px;background:#fff}.subject-ready-grid span{color:#69766f;font-size:13px;font-weight:800}.subject-ready-grid strong{display:block;margin:8px 0;color:#1f332c;font-size:18px}.subject-ready-grid p{margin:0;color:#5d6a64;line-height:1.6}.plate-ring{position:absolute;right:36px;top:38px;width:170px;aspect-ratio:1;border:24px solid #fff;border-radius:50%;box-shadow:inset 0 0 0 2px #d7e1d9,0 18px 35px #17201c24}.quiz-card{position:absolute;left:36px;bottom:34px;display:grid;gap:10px;width:190px;padding:18px;border-radius:8px;background:#fff;box-shadow:0 16px 35px #17201c29}.quiz-card span{height:12px;border-radius:3px;background:#cfdad1}.quiz-card span:nth-child(2){width:72%;background:#e6b55a}.quiz-card span:nth-child(3){width:88%}.quiz-card span:nth-child(4){width:56%;background:#1f6f5f}.macro-bars{position:absolute;right:46px;bottom:38px;display:flex;align-items:end;gap:10px}.macro-bars i{display:block;width:28px;border-radius:6px 6px 0 0;background:#a85045}.macro-bars i:nth-child(1){height:74px}.macro-bars i:nth-child(2){height:118px;background:#1f6f5f}.macro-bars i:nth-child(3){height:92px;background:#e6b55a}.stats-grid,.content-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:16px}.stat-panel,.wide-panel,.side-panel,.form-panel,.quiz-panel,.result-hero,.summary-path,.summary-hero,.summary-section,.summary-focus-panel{border:1px solid #dbe5dc;border-radius:8px;background:#fffffff0;box-shadow:0 10px 28px #1f302a0f}.stat-panel{padding:18px}.stat-panel span{display:block;color:#68756f;font-size:13px;font-weight:700}.stat-panel strong{display:block;margin-top:8px;font-size:30px}.wide-panel{grid-column:span 3;padding:22px}.full-width-panel{grid-column:1 / -1}.side-panel{grid-column:span 1;padding:22px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.chapter-grid,.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.chapter-tile,.category-row,.check-card,.choice-option{border:1px solid #dbe5dc;border-radius:8px;background:#fff}.chapter-tile,.category-row{width:100%;text-align:left}.chapter-tile{display:grid;gap:4px;min-height:106px;padding:14px}.chapter-tile span,.chapter-tile small,.muted{color:#68756f}.chapter-tile strong{line-height:1.35}.chapter-tile-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.chapter-tile-actions .primary-button,.chapter-tile-actions .secondary-button{min-height:36px;flex:1 1 112px;padding:0 10px;text-align:center}.category-list{display:grid;gap:10px}.action-panel{display:grid;align-content:start;gap:10px}.weak-tag-box{display:grid;gap:8px;margin-top:4px;padding:12px;border-radius:8px;background:#f6f9f6}.weak-tag-box strong{font-size:13px}.weak-tag-box p{display:flex;flex-wrap:wrap;gap:6px;margin:0}.weak-tag-box span{border-radius:999px;padding:5px 8px;background:#fff;color:#46534e;font-size:12px;font-weight:800}.category-row{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:10px}.summary-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:end;padding:clamp(24px,4vw,40px);background:linear-gradient(135deg,#fffffffa,#eef5eff0),#fff}.summary-hero h1{margin-bottom:12px}.summary-hero p:not(.eyebrow){max-width:840px;margin-bottom:0;color:#40504a;line-height:1.7}.summary-hero-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.summary-layout{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(280px,.9fr);gap:16px;align-items:start;margin-top:16px}.summary-path{margin-top:16px;padding:22px}.summary-path-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.summary-path-step{display:grid;gap:8px;align-content:start;min-height:150px;padding:16px;border-left:4px solid #1f6f5f;background:#f6f9f6}.knowledge-graph-panel{margin-top:16px;padding:22px}.knowledge-graph-content{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(280px,.85fr);gap:16px;align-items:stretch}.knowledge-graph-map{overflow:hidden;border:1px solid #dbe5dc;border-radius:8px;background:linear-gradient(#edf4ef 1px,transparent 1px),linear-gradient(90deg,#edf4ef 1px,transparent 1px),#fbfdfb;background-size:34px 34px}.knowledge-graph-canvas{position:relative;min-height:540px}.knowledge-graph-lines{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.knowledge-edge{stroke:#b8c5be;stroke-linecap:round;stroke-width:.42;opacity:.58;transition:opacity .18s ease,stroke .18s ease,stroke-width .18s ease}.knowledge-edge.active{stroke:#1f6f5f;stroke-width:.72;opacity:.96}.knowledge-edge.dimmed{opacity:.16}.knowledge-node{position:absolute;display:grid;gap:2px;min-width:112px;max-width:148px;min-height:50px;padding:8px 10px;border:1px solid #cddbd2;border-radius:8px;background:#fff;color:#1f332c;box-shadow:0 8px 18px #1f332c14;cursor:pointer;line-height:1.25;text-align:left;transform:translate(-50%,-50%);transition:border-color .18s ease,box-shadow .18s ease,opacity .18s ease,transform .18s ease}.knowledge-node:hover,.knowledge-node:focus-visible{transform:translate(-50%,-50%) translateY(-2px)}.knowledge-node span{color:#6a7972;font-size:11px;font-weight:900;text-transform:uppercase}.knowledge-node strong{color:inherit;font-size:14px}.knowledge-node.kind-root{min-width:138px;border-color:#1f6f5f;background:#1f6f5f;color:#fff}.knowledge-node.kind-root span,.knowledge-node.kind-root strong{color:#fff}.knowledge-node.kind-section{border-color:#2f7365;background:#eaf5f1}.knowledge-node.kind-concept{border-color:#d5ded8;background:#fff}.knowledge-node.kind-process{border-color:#a9bdd5;background:#f1f6fc}.knowledge-node.kind-comparison{border-color:#d9a978;background:#fff8ed}.knowledge-node.selected{border-color:#1f6f5f;box-shadow:0 0 0 3px #1f6f5f29,0 14px 28px #1f332c29;z-index:3}.knowledge-node.connected{z-index:2}.knowledge-node.dimmed{opacity:.38}.knowledge-graph-detail{display:grid;gap:12px;align-content:start;padding:18px;border:1px solid #dbe5dc;border-radius:8px;background:#fff}.knowledge-graph-detail>span{width:fit-content;border-radius:999px;padding:4px 8px;background:#e5eee8;color:#1f6f5f;font-size:12px;font-weight:900}.knowledge-graph-detail h3{margin:0;color:#1f332c;font-size:22px}.knowledge-graph-detail p{margin:0;color:#40504a;line-height:1.65}.knowledge-graph-detail-note{padding-top:10px;border-top:1px solid #edf2ee;color:#52625b!important;font-size:14px}.knowledge-graph-tags{display:flex;flex-wrap:wrap;gap:6px}.knowledge-graph-tags em{display:inline-flex;align-items:center;min-height:25px;padding:4px 9px;border-radius:999px;background:#f4f8f5;color:#43524c;font-size:12px;font-style:normal;font-weight:900}.knowledge-graph-relations{display:grid;gap:8px;padding-top:10px;border-top:1px solid #edf2ee}.knowledge-graph-relations>strong{color:#1f332c;font-size:14px}.knowledge-graph-relation-row{display:flex;gap:8px;align-items:flex-start;min-height:30px;padding:7px 9px;border-radius:8px;background:#f7faf7}.knowledge-graph-relation-row span{flex:0 0 auto;border-radius:999px;padding:3px 7px;background:#fff;color:#1f6f5f;font-size:11px;font-weight:900}.knowledge-graph-relation-row p{margin:0;color:#43524c;font-size:13px;font-weight:800;line-height:1.45}.knowledge-graph-actions{display:grid;grid-template-columns:1fr;gap:8px;padding-top:4px}.knowledge-graph-actions .primary-button,.knowledge-graph-actions .secondary-button{width:100%}.summary-path-step span,.summary-flow-card span,.summary-section-heading>span{display:inline-grid;width:34px;height:34px;place-items:center;border-radius:999px;background:#1f6f5f;color:#fff;font-size:13px;font-weight:900}.summary-path-step strong,.summary-flow-card strong,.summary-concept-card strong{color:#1f332c}.summary-path-step p,.summary-flow-card p,.summary-concept-card p{margin:0;color:#52625b;line-height:1.55}.summary-main{display:grid;gap:16px}.summary-section,.summary-focus-panel{padding:22px}.summary-section h2,.summary-focus-panel h2{margin-bottom:14px}.summary-section-heading{display:flex;gap:14px;align-items:flex-start;margin-bottom:18px}.summary-section-heading h2{margin-bottom:8px}.summary-takeaway{margin:0;color:#1f6f5f;font-weight:900;line-height:1.55}.summary-narrative{display:grid;gap:10px;max-width:860px}.summary-narrative p{margin:0;color:#35433d;line-height:1.75}.summary-understanding-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.summary-understanding-card{display:grid;gap:9px;align-content:start;min-height:190px;padding:16px;background:#f7faf7}.summary-understanding-card>span{width:fit-content;border-radius:999px;padding:4px 8px;background:#e5eee8;color:#1f6f5f;font-size:12px;font-weight:900}.summary-understanding-card strong{color:#1f332c;font-size:17px}.summary-understanding-card p{margin:0;color:#43524c;line-height:1.62}.summary-understanding-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}.summary-understanding-tags em{display:inline-flex;align-items:center;min-height:26px;border-radius:999px;padding:4px 8px;background:#fff;color:#51615a;font-size:12px;font-style:normal;font-weight:800}.summary-flow-block,.summary-concept-block,.summary-image-block,.summary-compare-block{margin-top:20px}.summary-flow-block h3,.summary-concept-block h3,.summary-image-block h3,.summary-compare-block h3,.summary-confusing-box h3{margin:0 0 10px;font-size:16px}.summary-image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.summary-image-card{display:grid;margin:0;overflow:hidden;border:1px solid #dbe5dc;border-radius:8px;background:#fff}.summary-image-open{position:relative;display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;cursor:zoom-in}.summary-image-open img{display:block;width:100%;aspect-ratio:16 / 10;padding:8px;background:#fbfcfb;object-fit:contain;transition:opacity .18s ease,transform .18s ease}.summary-image-open span{position:absolute;right:12px;bottom:12px;border-radius:999px;padding:6px 10px;background:#1f332cdb;color:#fff;font-size:12px;font-weight:900;opacity:0;transform:translateY(4px);transition:opacity .18s ease,transform .18s ease}.summary-image-open:hover img,.summary-image-open:focus-visible img{opacity:.9;transform:scale(1.015)}.summary-image-open:hover span,.summary-image-open:focus-visible span{opacity:1;transform:translateY(0)}.summary-image-card figcaption{display:grid;gap:5px;padding:12px 14px 14px;border-top:1px solid #edf2ee}.summary-image-card figcaption strong{color:#1f332c;font-size:15px}.summary-image-card figcaption span{color:#52625b;font-size:13px;line-height:1.5}.summary-image-card figcaption small{color:#7c8a83;font-size:12px;font-weight:800}.summary-image-modal{position:fixed;z-index:40;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:24px}.summary-image-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;border:0;background:#111815b8;cursor:zoom-out}.summary-image-modal-card{position:relative;z-index:1;display:grid;gap:14px;width:min(1120px,100%);max-height:min(92vh,900px);margin:0;padding:16px;overflow:auto;border:1px solid #dbe5dc;border-radius:8px;background:#fff;box-shadow:0 24px 70px #12201b5c}.summary-image-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.summary-image-modal-header h2{margin:0;color:#1f332c;font-size:22px}.summary-image-modal-header p{margin:4px 0 0;color:#6a7972;font-size:13px;font-weight:800}.summary-image-modal-card>img{display:block;width:100%;max-height:72vh;border:1px solid #edf2ee;border-radius:8px;background:#fbfcfb;object-fit:contain}.summary-image-modal-card figcaption{margin:0;color:#43524c;line-height:1.6}.summary-flow-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.summary-flow-card{display:grid;gap:8px;align-content:start;min-height:150px;padding:14px;background:#f7faf7}.summary-flow-card span{background:#506f93}.summary-concept-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.summary-concept-card{display:grid;gap:8px;padding:14px;border-left:4px solid #c97855;background:#fffaf6}.summary-concept-summary{font-weight:700}.summary-concept-tags{display:flex;flex-wrap:wrap;gap:6px}.summary-concept-tags em{display:inline-flex;align-items:center;min-height:24px;padding:4px 9px;border-radius:999px;background:#fff;color:#884f39;font-size:12px;font-style:normal;font-weight:900}.summary-concept-detail{padding-top:8px;border-top:1px solid #f0dfd5}.summary-concept-detail summary{width:fit-content;cursor:pointer;color:#9a583f;font-size:12px;font-weight:900}.summary-concept-detail p{margin-top:8px}.summary-memory-cue{margin:18px 0 0;padding:12px 14px;border-left:4px solid #6b8f37;background:#f4f8ef;color:#39483f;line-height:1.6}.summary-memory-cue strong{margin-right:8px;color:#2f542b}.summary-bullet-list,.summary-focus-list{display:grid;gap:9px;margin:0;padding-left:20px;line-height:1.65}.summary-table-wrap{margin-top:16px;overflow-x:auto;border:1px solid #dbe5dc;border-radius:8px}.summary-table{width:100%;min-width:520px;border-collapse:collapse;font-size:14px}.summary-table th,.summary-table td{padding:10px 12px;border-bottom:1px solid #dbe5dc;line-height:1.55;text-align:left;vertical-align:top}.summary-table th{background:#eef4ef;color:#27352f;font-weight:900}.summary-table tr:last-child td{border-bottom:0}.summary-focus-panel{position:static}.summary-focus-groups{display:grid;gap:10px}.summary-focus-card{display:grid;gap:8px;padding:14px;background:#f6f9f6}.summary-focus-card strong{color:#1f332c}.summary-focus-card p{margin:0;color:#52625b;font-size:13px;line-height:1.55}.summary-focus-card div{display:flex;flex-wrap:wrap;gap:6px}.summary-focus-card span{display:inline-flex;align-items:center;min-height:28px;border-radius:999px;padding:4px 8px;background:#fff;color:#2d3a35;font-size:12px;font-weight:800}.summary-confusing-box{margin-top:20px}.summary-confusing-list{display:grid;gap:10px}.summary-confusing-list article{display:grid;gap:6px;padding:12px;background:#f6f9f6}.summary-confusing-list strong{color:#27352f;font-size:13px}.summary-confusing-list p{margin:0;color:#52625b;font-size:13px;line-height:1.55}.summary-source-box{display:grid;gap:6px;margin-top:18px;padding-top:16px;border-top:1px solid #dbe5dc}.summary-source-box span{color:#68756f;font-size:13px;font-weight:700}.badge{display:inline-flex;align-items:center;min-height:28px;border-radius:999px;padding:0 10px;background:#edf3ee;color:#2d3a35;font-size:12px;font-weight:800}.attempted-badge{border:1px solid #93b8a8;background:#e9f5ef;color:#1f6f5f}.correct-attempted-badge{border:1px solid #91c7a9;background:#eff9f1;color:#226c3a}.wrong-attempted-badge{border:1px solid #e0a092;background:#fff0ed;color:#9a3d31}.skipped-badge{border:1px solid #d0b35a;background:#fff8df;color:#735f16}.source-origin-badge{border:1px solid #b9a57c;background:#fff8e8;color:#72530d}.question-meta-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.difficulty-badge{display:inline-flex;align-items:center;min-height:30px;border-radius:8px;padding:0 12px;font-size:12px;font-weight:900}.difficulty-easy{border:1px solid #9bc27b;background:#eff8e8;color:#315f1f}.difficulty-medium{border:1px solid #d8b25d;background:#fff6df;color:#73500b}.difficulty-hard{border:1px solid #cf8379;background:#fff0ed;color:#84392f}.category-nutrient{background:#e7f1ff;color:#194d7a}.category-food{background:#f7edda;color:#6f4a10}.category-diet{background:#e9f5e6;color:#2f6b29}.category-disease{background:#f9e6e2;color:#84392f}.category-safety{background:#e8eff4;color:#315164}.setup-form{display:grid;gap:16px}.form-panel{padding:22px}.form-row{display:grid;grid-template-columns:130px minmax(0,1fr);align-items:center;gap:12px;margin-bottom:12px}.form-row label,.short-answer span{color:#46534e;font-weight:800}.check-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.check-section-heading h2{margin:0}.compact-action-button{min-height:34px;padding:0 12px;white-space:nowrap}input,select{width:100%;min-height:42px;border:1px solid #cfdad1;border-radius:8px;padding:0 12px;background:#fff;color:#17201c}.check-card{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 12px;font-weight:700}.check-card input{width:18px;min-height:18px;accent-color:#1f6f5f}.check-card:has(input:checked){border-color:#1f6f5f;background:#eef7f3;box-shadow:inset 0 0 0 1px #1f6f5f2e}.chapter-checks,.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.split-panel{display:grid;grid-template-columns:1fr 1fr;gap:24px}.sticky-submit{position:sticky;bottom:0;display:flex;justify-content:flex-end;padding:14px 0;background:linear-gradient(180deg,#f4f7f500,#f4f7f5 35%)}.quiz-page{display:grid;grid-template-columns:minmax(0,880px) 220px;align-items:start;gap:16px;max-width:1120px}.quiz-panel{padding:clamp(16px,4vw,28px)}.question-navigator{position:sticky;top:92px;display:grid;gap:14px;padding:16px;border:1px solid #dbe5dc;border-radius:8px;background:#fffffff0;box-shadow:0 10px 28px #1f302a0f}.navigator-summary{display:grid;gap:4px}.navigator-summary span,.navigator-summary small{color:#68756f;font-size:12px;font-weight:800}.navigator-summary strong{font-size:24px}.question-number-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.question-number{display:grid;min-width:0;aspect-ratio:1;place-items:center;border:1px solid #d7e1d9;border-radius:8px;background:#fff;color:#26342f;font-size:13px;font-weight:900}.question-number.current{border-color:#1f6f5f;background:#1f6f5f;color:#fff}.question-number.answered.correct{border-color:#a3c47c;background:#f0f8e8}.question-number.answered.incorrect{border-color:#d8958b;background:#fff0ed}.question-number.skipped{border-color:#d0b35a;background:#fff8df;color:#735f16}.question-number.locked{background:#f6f9f6;color:#9aa6a0}.quiz-progress{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;margin-bottom:16px;color:#53615b;font-weight:800}progress{width:100%;height:10px;overflow:hidden;border:0;border-radius:99px;background:#e1e9e2}progress::-webkit-progress-bar{background:#e1e9e2}progress::-webkit-progress-value{background:#1f6f5f}.warning-box{margin-bottom:16px;border:1px solid #e5c46a;border-radius:8px;padding:12px;background:#fff8df;color:#60470f;font-weight:700}.save-box{margin-bottom:16px;border:1px solid #9bc27b;border-radius:8px;padding:12px;background:#eff8e8;color:#315f1f;font-weight:800}.question-card h1{margin:18px 0;font-size:clamp(24px,4vw,36px);line-height:1.25}.question-passage{margin-top:18px;border:1px solid #dbe5dc;border-left:5px solid #1f6f5f;border-radius:8px;padding:14px 16px;background:#f8fbf9;color:#26342f;font-size:17px;font-weight:800;line-height:1.65}.question-meta,.tag-row,.source-list{display:flex;gap:8px;flex-wrap:wrap}.tag-row{margin-bottom:18px}.tag-row span{color:#66736d;font-size:13px;font-weight:700}.choice-list{display:grid;gap:10px;margin:0;padding:0;border:0}.two-up{grid-template-columns:1fr 1fr}.choice-option{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:12px;min-height:64px;padding:12px}.choice-option input{position:absolute;opacity:0;pointer-events:none}.choice-option:has(input:checked){border-color:#1f6f5f;box-shadow:inset 0 0 0 2px #1f6f5f2e}.choice-id{display:grid;width:36px;height:36px;place-items:center;border-radius:8px;background:#edf3ee;font-weight:900}.short-answer{display:grid;gap:8px}.quiz-actions{justify-content:flex-end;margin-top:18px}.mark-row{margin:16px 0}.feedback{border-radius:8px;padding:18px}.feedback.correct{border:1px solid #a3c47c;background:#f0f8e8}.feedback.incorrect{border:1px solid #d8958b;background:#fff0ed}.skip-box{margin:16px 0;border:1px solid #d0b35a;border-radius:8px;padding:12px 14px;background:#fff8df;color:#5f4e10;font-weight:800}.feedback summary{margin-top:12px;font-weight:900;cursor:pointer}.feedback p{margin:10px 0}.choice-explanations{display:grid;gap:10px;margin:14px 0 18px}.choice-explanations>strong{font-size:14px}.choice-explanation{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;border:1px solid rgba(104,117,111,.24);border-radius:8px;padding:10px;background:#ffffff8f}.choice-explanation.correct-choice{border-color:#1f6f5f73;background:#ffffffc2}.choice-explanation.selected-choice:not(.correct-choice){border-color:#bd524673}.choice-explanation-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-weight:800}.choice-explanation-title em{border-radius:999px;padding:3px 7px;background:#edf3ee;color:#46534e;font-size:11px;font-style:normal;font-weight:900}.choice-explanation p{margin:6px 0 0;color:#46534e;font-size:14px;line-height:1.55}.source-list span{border-radius:8px;padding:8px 10px;background:#ffffffb3;color:#46534e;font-size:13px;font-weight:700}.result-page{display:grid;gap:16px}.result-hero{display:grid;justify-items:center;gap:8px;padding:32px;text-align:center}.result-hero span,.result-hero p{color:#68756f;font-weight:800}.result-hero strong{color:#1f6f5f;font-size:clamp(56px,10vw,96px);line-height:1}.score-list{display:grid;gap:10px;margin:0;padding:0;list-style:none}.score-list li{display:flex;justify-content:space-between;gap:16px;padding:12px;border-radius:8px;background:#f6f9f6}.wrong-list{display:grid;gap:12px}.wrong-list article{display:grid;gap:8px;padding:14px;border:1px solid #dbe5dc;border-radius:8px}.wrong-list .source-list span{background:#f6f9f6}.history-list{display:grid;gap:12px}.history-tabs{display:inline-flex;flex-wrap:wrap;gap:4px;margin-bottom:16px;padding:4px;border:1px solid #d7e1d9;border-radius:8px;background:#f6f9f6}.history-tab{min-height:38px;border:0;border-radius:6px;padding:0 14px;background:transparent;color:#68756f;font-weight:900}.history-tab.active{background:#1f6f5f;color:#fff;box-shadow:0 4px 12px #1f6f5f2e}.retry-stats-grid{margin-bottom:16px}.retry-panel-grid{display:grid;gap:16px}.retry-panel{display:grid;gap:16px;padding:18px;border:1px solid #dbe5dc;border-radius:8px;background:#fbfdfb}.retry-panel .section-heading{margin-bottom:0}.retry-panel .section-heading strong{color:#18302a;font-size:28px}.retry-filter-panel{display:grid;gap:10px;border:1px solid #d7e1d9;border-radius:8px;padding:12px;background:#f5faf7}.retry-filter-panel>strong{color:#18302a;font-size:14px}.retry-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.retry-filter-control{display:grid;gap:6px}.retry-filter-control span{color:#68756f;font-size:12px;font-weight:900}.retry-filter-control select{min-height:42px;border:1px solid #d7e1d9;border-radius:8px;padding:0 12px;background:#fff;color:#18302a;font-weight:800}.retry-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.retry-source-card{display:grid;gap:4px;min-height:92px;border:1px solid #dbe5dc;border-radius:8px;padding:14px;background:#fff;text-align:left}.retry-source-card span{color:#68756f;font-size:13px;font-weight:900}.retry-source-card strong{color:#18302a;font-size:28px}.retry-source-card small{color:#68756f;font-weight:800}.history-filter-tabs{display:inline-flex;gap:4px;padding:4px;border:1px solid #d7e1d9;border-radius:8px;background:#f6f9f6}.history-filter-tab{min-height:34px;border:0;border-radius:6px;padding:0 12px;background:transparent;color:#68756f;font-weight:900}.history-filter-tab.active{background:#1f6f5f;color:#fff}.history-dashboard-panel{display:grid;gap:16px}.history-dashboard-panel h2{margin:0}.skipped-question-panel{display:grid;gap:12px;padding:14px;border:1px solid #e2d49b;border-radius:8px;background:#fffdf4}.history-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.history-metric-grid article{display:grid;gap:6px;padding:14px;border:1px solid #dbe5dc;border-radius:8px;background:#f9fbf9}.history-metric-grid span,.question-stat-values span,.question-stat-values small{color:#68756f;font-weight:800}.history-metric-grid strong{color:#18302a;font-size:24px}.history-metric-grid small{color:#68756f;font-size:12px;font-weight:900}.chapter-history-chart{display:grid;gap:12px;padding:14px;border:1px solid #dbe5dc;border-radius:8px;background:#fff}.compact-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.compact-section-heading h3{margin:0 0 4px;color:#18302a;font-size:18px}.chart-legend{display:flex;flex-wrap:wrap;gap:10px;color:#68756f;font-size:13px;font-weight:900}.chart-legend span{display:inline-flex;align-items:center;gap:5px}.chart-legend i{width:10px;height:10px;border-radius:3px}.legend-correct{background:#1f6f5f}.legend-wrong{background:#c85d4d}.legend-volume{background:#bfd8cf}.chapter-chart-list{display:grid;gap:8px}.chapter-chart-row{display:grid;grid-template-columns:minmax(130px,180px) minmax(0,1fr) minmax(120px,auto);align-items:center;gap:12px;padding:10px;border:1px solid #edf2ee;border-radius:8px;background:#fbfdfb}.chapter-chart-row.empty{opacity:.55}.chapter-chart-label{display:grid;gap:2px}.chapter-chart-label strong,.chapter-chart-values strong{color:#18302a}.chapter-chart-label span,.chapter-chart-values span{color:#68756f;font-size:13px;font-weight:800}.chapter-chart-bars{display:grid;gap:6px}.stacked-rate-bar,.volume-bar{width:100%;overflow:hidden;border-radius:999px;background:#e9f0eb}.stacked-rate-bar{display:flex;height:12px}.volume-bar{height:6px}.stacked-rate-bar span,.volume-bar span{display:block;height:100%}.correct-segment{background:#1f6f5f}.wrong-segment{background:#c85d4d}.volume-bar span{background:#bfd8cf}.compact-rate-bar{height:9px}.chapter-chart-values{display:grid;gap:2px;text-align:right}.chapter-source-breakdown{display:grid;grid-column:1 / -1;gap:6px;padding-top:8px;border-top:1px solid #edf3ee}.chapter-source-row{display:grid;grid-template-columns:minmax(64px,82px) minmax(0,1fr) minmax(120px,auto);align-items:center;gap:10px;padding:7px 8px;border-radius:6px;background:#f7faf8}.chapter-source-row.empty{opacity:.55}.chapter-source-label{color:#18302a;font-size:13px;font-weight:900}.chapter-source-bars{display:grid;gap:5px}.chapter-source-values{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;color:#68756f;font-size:12px;font-weight:900;text-align:right}.chapter-source-values strong{color:#18302a}.question-stat-list{display:grid;gap:10px}.question-stat-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:14px;border:1px solid #dbe5dc;border-radius:8px;background:#fff}.question-stat-main{display:grid;min-width:0;gap:8px}.question-stat-main>strong{color:#18302a;font-size:16px;line-height:1.45}.question-stat-meta{display:flex;flex-wrap:wrap;gap:6px}.question-stat-values{display:grid;min-width:160px;gap:4px}.question-stat-values strong{color:#1f6f5f}.empty-filter-message{margin:0;padding:18px;border:1px solid #dbe5dc;border-radius:8px;background:#f9fbf9;color:#68756f;font-weight:800}.history-card{display:grid;gap:10px;padding:16px;border:1px solid #dbe5dc;border-radius:8px;background:#fff}.history-card>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:16px}.history-card strong{color:#1f6f5f;font-size:28px}.history-card p{margin-bottom:0}.history-detail{border-top:1px solid #edf3ee;padding-top:10px}.history-detail summary{font-weight:900;cursor:pointer}.compact-wrong-list{margin-top:10px}.empty-state{display:grid;min-height:60vh;place-items:center;align-content:center;gap:16px;text-align:center}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:900px){.overview-band,.quiz-page,.content-grid,.summary-hero,.summary-layout,.split-panel,.subject-ready-grid{grid-template-columns:1fr}.summary-hero-actions{justify-content:flex-start}.summary-focus-panel{position:static}.question-navigator{position:static;order:2}.wide-panel,.side-panel{grid-column:span 1}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-metric-grid,.retry-filter-grid,.retry-source-grid,.question-stat-row{grid-template-columns:1fr}.history-dashboard-panel .section-heading{align-items:flex-start;flex-direction:column}.compact-section-heading,.chapter-chart-row,.chapter-source-row,.summary-path-grid,.knowledge-graph-content{grid-template-columns:1fr}.summary-flow-grid,.summary-concept-grid,.summary-image-grid,.summary-understanding-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-section-heading{flex-direction:column}.check-section-heading{align-items:flex-start}.chapter-chart-values{grid-template-columns:repeat(3,minmax(0,1fr));text-align:left}.chapter-source-values{justify-content:flex-start;text-align:left}.question-stat-values{grid-template-columns:repeat(3,minmax(0,1fr));min-width:0}.question-stat-values small{grid-column:1 / -1}.chapter-checks,.compact{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.topbar{align-items:flex-start;flex-direction:column}.topbar-controls,.subject-switcher,.auth-form,.auth-account,.auth-status,.top-actions{width:100%}.subject-tab{flex:1}.auth-form input{flex:1 1 130px}.auth-account{justify-content:space-between}.dashboard,.setup-page,.quiz-page,.result-page,.summary-page,.empty-state{width:min(100% - 20px,1180px);padding-top:16px}.overview-band{min-height:0;padding:20px}.study-visual{min-height:190px}.stats-grid,.chapter-grid,.check-grid,.chapter-checks,.compact,.two-up,.form-row{grid-template-columns:1fr}.summary-hero-actions .primary-button,.summary-hero-actions .secondary-button{flex:1 1 100%}.summary-section-heading{flex-direction:column}.knowledge-graph-map{overflow-x:auto}.knowledge-graph-canvas{min-width:680px;min-height:600px}.knowledge-node{min-width:100px;max-width:124px;padding:7px 8px}.knowledge-node strong{font-size:13px}.summary-flow-grid,.summary-concept-grid,.summary-image-grid,.summary-understanding-grid{grid-template-columns:1fr}.summary-table{min-width:460px}.choice-option{grid-template-columns:38px minmax(0,1fr)}}
