.reader-intro{display:grid;gap:16px;padding:24px;margin:18px 0;background:var(--material-card);border:1px solid var(--material-border);border-radius:18px;min-width:0}.reader-intro h1{font-size:clamp(22px,3vw,30px);line-height:1.3;margin:7px 0;overflow-wrap:anywhere}.reader-intro p{margin:0;color:var(--material-muted);line-height:1.6}.reader-shortcuts,.reader-connections,.reader-related{display:flex;flex-wrap:wrap;gap:10px;align-items:center;min-width:0}.reader-shortcuts .btn{white-space:normal;min-height:42px}.reader-connections{padding-top:14px;border-top:1px solid var(--material-border)}.reader-link,.reader-topic{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:7px 11px;border-radius:9px;background:var(--material-soft);color:var(--material-accent);font-size:12px;overflow-wrap:anywhere}.reader-link:hover{text-decoration:underline}.reader-tabs{margin-bottom:20px}.reader-view-switch{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 14px}.reader-view-switch button{min-height:40px;white-space:normal}.reader-document{min-width:0}.pdf-viewer{min-width:0;border:1px solid var(--material-border);border-radius:12px;overflow:hidden;background:var(--material-soft)}.pdf-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:10px;border-bottom:1px solid var(--material-border)}.pdf-toolbar>div{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.pdf-toolbar label{font-size:12px;display:flex;gap:6px;align-items:center}.pdf-toolbar input{width:60px;min-width:0;padding:7px}.pdf-toolbar .btn{min-width:34px;min-height:36px;padding:6px 10px}.pdf-status{font-size:12px;color:var(--material-muted);padding:10px 12px;margin:0;line-height:1.6}.pdf-surface{min-height:240px;max-height:76vh;overflow:auto;padding:12px;display:grid;justify-items:center;align-content:start;overscroll-behavior:contain}.pdf-surface canvas{display:block;max-width:none;background:white;box-shadow:0 2px 14px #0002}.reader-comparison{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}.reader-comparison .pdf-toolbar{display:grid}.reader-compare-notes{padding:16px;border:1px solid var(--material-border);border-radius:12px;background:var(--material-card);min-width:0}.reader-compare-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.reader-compare-heading h3{margin:0}.reader-compare-notes .note-title{font-size:19px;padding:12px 0;width:100%}.reader-compare-notes .note-editor{width:100%;min-height:390px;padding:12px;font-size:14px;line-height:1.8;resize:vertical;border:1px solid var(--material-border);border-radius:8px}.reader-compare-notes .editor-footer{flex-wrap:wrap;gap:8px;padding:12px 0 0}.reader-source-tools{margin-top:20px;border-top:1px solid var(--material-border);padding-top:16px}.reader-source-tools>summary{cursor:pointer;font-size:13px;color:var(--material-muted);line-height:1.6}.reader-source-tools .material-actions{border:0;margin:0;padding-top:16px}.reader-link-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.reader-link-grid>section{margin:0}.reader-link-grid .f4-checks{max-height:340px;overflow:auto;margin:20px 0}.reader-link-grid .f4-checks label{align-items:flex-start;overflow-wrap:anywhere}.reader-linked-materials{margin-top:24px}.reader-linked-materials[hidden]{display:none}.reader-compare-notes .notice{font-size:12px}@media(max-width:1150px){.reader-comparison{grid-template-columns:1fr}.reader-comparison .pdf-surface{max-height:52vh}.reader-compare-notes .note-editor{min-height:260px}}@media(max-width:700px){.reader-intro{padding:18px;gap:14px}.reader-shortcuts{display:grid;grid-template-columns:1fr}.reader-shortcuts .btn{justify-content:center}.reader-link-grid{grid-template-columns:1fr}.reader-view-switch{display:grid;grid-template-columns:1fr 1fr}.reader-view-switch button:last-child{grid-column:1/-1}.pdf-toolbar{display:grid}.pdf-surface{max-height:65vh}.reader-comparison .pdf-surface{max-height:45vh}.reader-compare-notes{padding:12px}.reader-compare-heading{flex-wrap:wrap}.reader-source-tools .material-actions{display:grid;grid-template-columns:1fr}.reader-connections{align-items:flex-start}.reader-connections>.small{width:100%}.reader-compare-notes .note-editor{font-size:16px}}.reader-export{position:relative;font-size:12px}.reader-export>summary{cursor:pointer;padding:10px;border:1px solid var(--material-border);border-radius:9px}.reader-export>div{position:absolute;z-index:5;right:0;top:100%;display:grid;gap:8px;padding:12px;background:var(--material-card);border:1px solid var(--material-border);border-radius:10px;min-width:180px;box-shadow:0 8px 25px #0002}.reader-one-source{grid-template-columns:1fr;gap:16px}.reader-one-source .materials-sidebar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.reader-one-source .material-list-title{display:none}.reader-one-source .sources-list{flex:1;min-width:180px}.reader-one-source .source-pick{margin:0;padding:10px 14px;width:100%;max-width:100%}.reader-one-source .material-sidebar-actions{display:flex;flex-wrap:wrap;margin:0}.reader-one-source #material-jobs:empty{display:none}.reader-one-source .reader-comparison .pdf-toolbar{display:flex}@media(max-width:700px){.reader-one-source .sources-list{flex-basis:100%}.reader-one-source .material-sidebar-actions{width:100%}.reader-one-source .material-sidebar-actions>.btn{flex:1}.reader-one-source .source-pick{flex-basis:100%}.reader-one-source .reader-comparison .pdf-toolbar{display:grid}.reader-intro h1{font-size:22px}.reader-intro .reader-shortcuts{grid-template-columns:1fr 1fr;gap:8px}.reader-intro .reader-shortcuts>button:last-child{grid-column:1/-1}}@media(max-width:700px){.reader-intro{padding:16px;margin:12px 0;gap:12px}.reader-intro>div>p{font-size:12px}.reader-intro .reader-shortcuts{display:flex}.reader-intro .reader-shortcuts>button:not(:last-child){display:none}.reader-intro .reader-shortcuts>button:last-child{width:100%}.reader-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;margin-bottom:14px;padding-bottom:4px}.reader-tabs>.tab{flex:0 0 auto;white-space:nowrap}.reader-one-source .materials-sidebar>.sources-list{display:none}.reader-one-source .source-heading{margin-bottom:12px}.reader-one-source .source-heading h3{font-size:16px}.reader-one-source .material-provenance{font-size:12px;margin-bottom:12px}}.pdf-toolbar{gap:12px;padding:12px;align-items:center}.pdf-toolbar>.pdf-pagination{display:flex;flex-wrap:nowrap;gap:8px;min-width:0;padding:5px;border:1px solid var(--material-border);border-radius:12px;background:var(--material-card)}.pdf-toolbar .pdf-page-arrow{flex:0 0 38px;width:38px;min-height:38px;padding:0;border:0;background:var(--material-soft);color:var(--material-accent)}.pdf-page-arrow svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.pdf-toolbar .pdf-page-field{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;color:var(--material-muted);white-space:nowrap}.pdf-toolbar .pdf-page-field input{appearance:textfield;-moz-appearance:textfield;box-sizing:border-box;width:58px;min-width:0;height:38px;min-height:38px;padding:6px;border:1px solid var(--material-border);border-radius:8px;background:var(--material-soft);color:var(--material-ink);font-family:inherit;font-size:14px;font-weight:600;line-height:1.3;font-variant-numeric:tabular-nums;text-align:center;outline-offset:2px}.pdf-page-field input::-webkit-inner-spin-button,.pdf-page-field input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.pdf-page-field input:focus-visible{outline:2px solid var(--material-accent);background:var(--material-card)}.pdf-page-field input:disabled{opacity:.6}.pdf-page-count{font-size:12px;color:var(--material-muted);font-variant-numeric:tabular-nums;white-space:nowrap;padding-right:2px}.pdf-toolbar>.pdf-zoom{flex-wrap:nowrap;gap:6px}.pdf-toolbar .btn:disabled{opacity:.4;background:var(--material-soft)}.pdf-toolbar .btn:focus-visible{outline:2px solid var(--material-accent);outline-offset:2px}.pdf-surface{display:block;scrollbar-gutter:stable;scrollbar-color:var(--material-accent) var(--material-soft)}.pdf-surface canvas{margin-inline:auto}.pdf-surface:focus-visible{outline:2px solid var(--material-accent);outline-offset:-3px}@media(max-width:700px){.pdf-toolbar,.reader-one-source .reader-comparison .pdf-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;padding:10px;gap:10px}.pdf-toolbar>.pdf-pagination{justify-content:space-between;flex:1 1 235px;gap:6px}.pdf-toolbar .pdf-page-arrow{min-height:44px;flex-basis:40px;width:40px}.pdf-toolbar .pdf-page-field input{height:40px;min-height:40px;width:55px;font-size:16px}.pdf-toolbar>.pdf-zoom{margin-left:0}.pdf-toolbar .pdf-zoom .btn{min-height:40px}}@media(max-width:380px){.pdf-toolbar .pdf-page-field>span{display:none}}.note-workspace{grid-template-columns:minmax(0,1fr) 260px;gap:20px}.note-paper{background:var(--material-card);border:1px solid var(--material-border);border-radius:16px;min-width:0;overflow:visible;box-shadow:0 4px 24px #302b5005}.note-panel-heading{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--material-border);min-height:108px}.note-panel-heading>div{min-width:0}.note-panel-heading h2,.note-panel-heading h3{margin:5px 0 6px;font:650 21px/1.3 Filora,"Segoe UI",system-ui,sans-serif;letter-spacing:-.4px;color:var(--material-ink)}.note-panel-heading p{font-size:12px;line-height:1.6;margin:0;color:var(--material-muted)}.note-panel-heading .eyebrow{font-size:10px;letter-spacing:1.3px}.note-panel-heading .btn{flex-shrink:0}.note-toolbar-host{min-width:0}.note-toolbar{padding:12px 16px;display:grid;gap:10px;background:var(--material-soft);border-bottom:1px solid var(--material-border)}.note-format-row,.note-editor-row,.note-history{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}.note-editor-row{justify-content:space-between}.note-style-field{display:flex;min-width:0}.note-style-field select{border:1px solid var(--material-border);border-radius:9px;padding:8px 28px 8px 10px;min-height:38px;max-width:160px;font-size:12px;background:var(--material-card);color:var(--material-ink);cursor:pointer}.note-tool{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;border-radius:8px;min-width:36px;min-height:36px;padding:6px 9px;font-size:13px;line-height:1.4;background:transparent;color:var(--material-ink)}.note-tool:hover{background:var(--material-card);border-color:var(--material-border)}.note-tool:focus-visible,.note-style-field select:focus-visible,.note-view-switch button:focus-visible{outline:2px solid var(--material-accent);outline-offset:2px}.note-tool:disabled{opacity:.35}.note-tool b{font-weight:750;font-size:16px}.note-tool i{font-family:Georgia,serif;font-size:17px}.note-history .note-tool{font-size:20px}.note-view-switch{display:flex;gap:3px;padding:3px;background:var(--material-card);border:1px solid var(--material-border);border-radius:10px}.note-view-switch button{border:0;border-radius:7px;padding:6px 11px;min-height:30px;background:transparent;color:var(--material-muted);font-size:12px}.note-view-switch button[aria-pressed=true]{background:var(--material-accent);color:var(--material-card);font-weight:650}.note-more{position:relative;margin-left:auto;font-size:12px}.note-more summary{padding:8px;cursor:pointer;border-radius:8px;color:var(--material-muted)}.note-more>div{position:absolute;right:0;top:100%;z-index:6;display:grid;padding:8px;border:1px solid var(--material-border);border-radius:10px;min-width:175px;background:var(--material-card);box-shadow:0 8px 24px #0002}.note-more>div .note-tool{justify-content:flex-start}.note-writing{display:flex;flex-direction:column;min-width:0;padding:10px 26px 0}.note-paper .note-document-title{font:650 25px/1.4 Filora,"Segoe UI",system-ui,sans-serif;letter-spacing:-.5px;width:100%;color:var(--material-ink);padding:16px 0 14px;margin:0;border:0;border-bottom:1px solid var(--material-border);border-radius:0;background:transparent;outline-offset:2px}.note-paper .note-document-title:focus-visible{outline:2px solid var(--material-accent);border-radius:6px}.note-paper .note-editor{font:15px/1.85 Filora,"Segoe UI",system-ui,sans-serif;letter-spacing:0;padding:18px 0 24px;min-height:390px;color:var(--material-ink);background:transparent;border:0;border-radius:0;width:100%;resize:vertical}.note-paper .note-editor:focus-visible{outline:2px solid var(--material-border)!important;outline-offset:7px}.note-paper .note-editor::placeholder{color:var(--material-muted);opacity:.75}.note-paper #note-preview{margin:0;padding:18px 0 24px;min-height:390px;overflow-wrap:anywhere;color:var(--material-ink);background:transparent;border:0}.note-paper #note-preview:empty:before{content:"L’anteprima apparirà mentre scrivi i tuoi appunti.";color:var(--material-muted);font-size:14px}.note-paper .note-editor-footer{margin:0;padding:14px 24px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid var(--material-border);font-size:11px;color:var(--material-muted)}.note-save-status[data-state=saved]{color:var(--material-accent)}.note-save-status[data-state=error]{color:#c96a81}.note-paper .revision-notice,.note-paper>#editor-error{margin:12px 16px}.note-paper-compact{padding:0}.note-paper-compact .note-panel-heading,.pdf-panel-heading{padding:18px 20px;min-height:108px}.note-paper-compact .note-writing{padding:8px 20px 0}.note-paper-compact .note-document-title{font-size:20px}.note-paper-compact .note-toolbar{padding:10px 12px}.note-paper-compact .note-editor-footer{padding:12px 20px}.pdf-panel-heading{background:var(--material-card);flex-shrink:0}.pdf-panel-heading h3{font-size:21px}.reader-comparison{align-items:stretch;gap:18px}@media(min-width:1151px){.reader-comparison>.pdf-viewer,.reader-comparison>.note-paper{height:clamp(600px,78vh,860px);display:flex;flex-direction:column}.reader-comparison .pdf-toolbar,.reader-comparison .pdf-status,.reader-comparison .note-toolbar-host,.reader-comparison .note-editor-footer,.reader-comparison .note-panel-heading{flex-shrink:0}.reader-comparison .pdf-surface{flex:1;min-height:0;max-height:none}.reader-comparison .note-writing{flex:1;min-height:0}.reader-comparison .note-editor,.reader-comparison #note-preview{flex:1;min-height:0;overflow:auto;resize:none}.reader-comparison .note-document-title{flex-shrink:0}}@media(max-width:1150px){.note-workspace{grid-template-columns:minmax(0,1fr) 240px}.note-paper-compact .note-editor,.note-paper-compact #note-preview{min-height:280px}.reader-comparison .pdf-surface{max-height:52vh}}@media(max-width:900px){.note-workspace{grid-template-columns:1fr}.note-workspace .editor-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.note-workspace .editor-aside>section{margin:0}}@media(max-width:700px){.note-panel-heading,.note-paper-compact .note-panel-heading,.pdf-panel-heading{padding:16px;min-height:100px}.note-panel-heading h2,.note-panel-heading h3{font-size:19px}.note-panel-heading p{font-size:11px}.note-panel-heading .btn{padding:7px 9px}.note-toolbar,.note-paper-compact .note-toolbar{padding:10px;gap:8px}.note-format-row{gap:3px}.note-style-field select{font-size:13px;min-height:42px;max-width:145px;padding-left:9px}.note-tool{min-height:40px;min-width:36px;padding:6px}.note-paper .note-writing,.note-paper-compact .note-writing{padding:6px 16px 0}.note-paper .note-document-title{font-size:20px;padding:14px 0}.note-paper .note-editor{font-size:16px;line-height:1.8;min-height:340px}.note-paper .note-editor-footer{padding:12px 16px;gap:8px}.note-paper #note-preview{min-height:280px}.note-workspace .editor-aside{grid-template-columns:1fr}.reader-comparison .pdf-surface{max-height:45vh}.note-paper-compact .note-editor{min-height:280px}.note-editor-footer .note-save-status{max-width:100%;overflow-wrap:anywhere}}.note-style-field>.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.reader-navigation{margin:18px 0 24px;min-width:0}.reader-navigation .reader-tabs{display:flex;flex-wrap:wrap;white-space:normal;overflow:visible;gap:8px;border:0;margin:0;padding:0}.reader-navigation .reader-tabs>.tab{flex:1 1 130px;min-height:44px;white-space:normal;padding:11px 13px;border:1px solid var(--material-border);border-radius:9px;background:var(--material-card);color:var(--material-muted);text-align:center;font-size:12px}.reader-navigation .reader-tabs>.tab.active{background:var(--material-soft);border-color:var(--material-accent);color:var(--material-accent);font-weight:650}.reader-navigation .reader-tabs>.tab:focus-visible{outline:2px solid var(--material-accent);outline-offset:2px}.reader-section-field{display:none}.reader-workspace .reader-intro{padding:20px 24px;margin-top:12px}.reader-intro p{max-width:850px;font-size:13px}.reader-alternatives,.reader-question-start{padding:22px;border:1px solid var(--material-border);border-radius:14px;background:var(--material-card);margin:20px 0}.reader-alternatives h3,.reader-question-start h3{font-size:18px;margin:0 0 12px}.reader-alternatives p,.reader-question-start p{font-size:13px;line-height:1.8;color:var(--material-muted);margin:0 0 16px}.reader-study-card h3{font-size:17px}.reader-study-card p{font-size:12px;line-height:1.8}.reader-workspace .voice-panel>summary{cursor:pointer;font-size:14px;font-weight:600;color:var(--material-accent);min-height:26px}.reader-workspace .voice-panel[open]>summary{margin-bottom:18px}.reader-workspace .study-header h2{font-family:inherit;font-weight:650;font-size:27px;letter-spacing:-.5px}.reader-workspace .study-header p{line-height:1.8}.reader-workspace .generated-sheet>.between{flex-wrap:wrap;gap:8px}.reader-workspace .generated-sheet>.between>div{min-width:0;flex:1 1 200px}.reader-workspace .generated-sheet>.between>.small{flex:0 0 auto;white-space:nowrap}.reader-workspace .generated-sheet h2{font-family:inherit;font-size:27px;line-height:1.4;font-weight:650;letter-spacing:-.5px}.reader-workspace .study-format-tabs .filter{min-height:40px}.reader-workspace .study-format-tabs .filter.active{font-weight:650}.reader-workspace .f4-header p{line-height:1.8}@media(max-width:760px){.reader-navigation .reader-tabs{display:none}.reader-section-field{display:grid;gap:8px;color:var(--material-muted);font-size:11px;font-weight:600}.reader-section-field select{font:600 16px/1.4 Filora,"Segoe UI",system-ui,sans-serif;min-height:50px;padding:12px 36px 12px 14px;max-width:100%;width:100%;min-width:0;border:1px solid var(--material-accent);border-radius:11px;background:var(--material-card);color:var(--material-ink)}.reader-section-field small{font-size:10px;line-height:1.5;font-weight:400}.reader-section-field select:focus-visible{outline:2px solid var(--material-accent);outline-offset:2px}.reader-workspace .reader-intro{padding:18px;margin-bottom:12px;gap:12px}.reader-workspace .reader-intro h1{font-size:22px}.reader-intro:not([data-section=organize]) .reader-connections{display:none}.reader-navigation{margin:14px 0 22px}.reader-workspace .study-header h2{font-size:24px}.reader-workspace .generated-sheet{padding:22px 16px}.reader-workspace .generated-sheet h2{font-size:23px}.reader-workspace .reader-question-start,.reader-alternatives{padding:18px}.reader-alternatives .row{align-items:stretch;flex-direction:column}.reader-alternatives .btn{width:100%;justify-content:center}.reader-workspace .voice-panel{padding:16px;margin:0 0 18px}.reader-workspace #chat-scope{font-size:16px}.reader-workspace #context-chat-form textarea{font-size:16px}.reader-workspace .editor-head .row{gap:8px}.reader-workspace .editor-head .row .btn{min-height:40px}.reader-workspace .f4-header>.row{width:100%}.reader-workspace .f4-header>.row>.btn{white-space:normal;min-height:42px}}.shared-materials>summary{display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:650;min-height:44px}.shared-materials>p{margin:14px 0}.shared-material-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px}.shared-material-card{border:1px solid var(--material-border);background:var(--material-soft);padding:16px;border-radius:12px;min-width:0}.shared-material-card h3{overflow-wrap:anywhere}.shared-material-actions,.shared-lesson-actions{display:flex;flex-wrap:wrap;gap:8px}.shared-lesson-actions{margin:18px 0 12px}.shared-material-actions .btn,.shared-lesson-actions .btn{min-height:44px;white-space:normal}.prepare-source-group{border:1px solid var(--material-border);border-radius:12px;padding:12px;margin:0 0 14px;min-width:0}.prepare-source-group legend{font-size:14px;font-weight:650;padding:0 6px;overflow-wrap:anywhere;max-width:100%}.prepare-source-group label span{min-width:0;overflow-wrap:anywhere}.reader-link-grid .f4-checks small{display:block;font-weight:400;margin-top:4px}.preparation-provenance{border:1px solid var(--material-border);border-radius:12px;padding:14px;margin:16px 0}.preparation-provenance summary{cursor:pointer;min-height:30px}.preparation-provenance ul{padding-left:22px}.preparation-provenance li{margin:10px 0;overflow-wrap:anywhere}.preparation-provenance li span{display:block;font-size:12px;color:var(--material-muted)}@media(max-width:650px){.shared-material-actions,.shared-lesson-actions{display:grid;grid-template-columns:1fr}.shared-material-card{padding:14px}.shared-materials>p{font-size:13px}.prepare-source-group{padding:10px}.prepare-source-group legend{font-size:13px}.shared-materials .btn{width:100%}}.reader-navigation .reader-main-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.reader-navigation .reader-main-tabs>.tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:66px}.reader-main-tabs strong{font-size:14px;font-weight:650}.reader-main-tabs small{font-size:11px;font-weight:400}.reader-other-sections{margin-top:10px}.reader-other-sections>summary{cursor:pointer;color:var(--material-muted);font-size:12px;min-height:40px;display:flex;align-items:center;gap:8px}.reader-other-sections>summary:before{content:"+";font-size:18px;color:var(--material-accent)}.reader-other-sections[open]>summary:before{content:"−"}.reader-navigation .reader-extra-tabs{margin-top:6px}.reader-connections .btn{min-height:40px;margin-left:auto}.reader-next-step,.reader-lesson-source-start{border:1px solid var(--material-border);border-radius:14px;background:var(--material-card);padding:22px;margin:22px 0}.reader-next-step{display:flex;align-items:center;justify-content:space-between;gap:20px}.reader-next-step h2,.reader-lesson-source-start h2{font-size:19px;margin:7px 0 10px}.reader-next-step p,.reader-lesson-source-start p{font-size:13px;color:var(--material-muted);line-height:1.7;margin:0 0 14px}.reader-next-step .row,.reader-lesson-source-start .row{flex-wrap:wrap}.reader-next-step .row{flex-shrink:0}.reader-next-step .btn,.reader-lesson-source-start .btn{min-height:44px;white-space:normal}.reader-workspace .apply-bar{flex-wrap:wrap;gap:10px}.reader-workspace .apply-bar p{flex:1 1 250px}@media(max-width:760px){.reader-navigation .reader-main-tabs,.reader-other-sections{display:none}.reader-workspace .reader-connections{display:flex}.reader-connections .btn{margin-left:0}.reader-next-step{display:block;padding:18px}.reader-next-step .row,.reader-lesson-source-start .row{display:grid;grid-template-columns:1fr}.reader-next-step .btn,.reader-lesson-source-start .btn{width:100%}.reader-workspace .apply-bar .btn{width:100%}.reader-lesson-source-start{padding:18px}.shared-materials>summary{font-size:13px;line-height:1.5}}.reader-workspace .f4-study-card h3{scroll-margin-top:130px}.shared-materials>summary:after{content:"+";margin-left:auto;font-size:20px;color:var(--material-accent)}.shared-materials[open]>summary:after{content:"−"}@media(max-width:760px){.reader-intro:not([data-section=organize]) .reader-connections>a.reader-link{display:none}.reader-workspace .reader-intro{gap:9px;padding:16px}.reader-connections{gap:8px;padding-top:10px}}@media(max-width:760px){.reader-workspace .reader-intro:not([data-section=organize]) .reader-connections{display:flex;border-top:0;padding-top:0}.reader-workspace .reader-intro:not([data-section=organize]) .reader-connections>.small{display:none}.reader-workspace .reader-intro .reader-connections .btn{min-height:40px}}.reader-workspace .reader-navigation,.reader-workspace .source-content{scroll-margin-top:110px}.study-review-choices{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.study-review-choices>div,.study-coach-start{border:1px solid var(--material-border);border-radius:14px;padding:18px;background:var(--material-card)}.study-review-choices h3{font-size:17px;margin:0 0 8px}.study-review-choices p,.study-coach-start p{font-size:13px;color:var(--material-muted);line-height:1.7}.study-coach-start{margin:16px 0;scroll-margin-top:110px}.study-coach-start .row{flex-wrap:wrap;gap:10px;margin-top:12px}.study-answer-feedback{margin:16px 0;padding:14px;border:1px solid var(--material-border);border-radius:12px;background:var(--material-soft)}.study-answer-feedback p{line-height:1.6}.study-answer-feedback .btn{white-space:normal}.reader-next-step .row{flex-shrink:1}@media(max-width:760px){.study-review-choices{grid-template-columns:1fr}.study-review-choices .btn,.study-coach-start .btn{width:100%;white-space:normal;min-height:44px}.study-coach-start .row{display:grid;grid-template-columns:1fr}.study-answer-feedback .btn{width:100%;min-height:44px}}.reader-workspace #context-chat-form{scroll-margin-top:110px}.context-message .context-speaker{display:block;font-size:11px;font-weight:650;color:var(--material-muted);margin:8px 0}.context-message h3.context-question{font-size:14px;font-weight:500;line-height:1.65;margin:8px 0 18px;overflow-wrap:anywhere}.reader-other-sections>summary{padding:12px 16px;border:1px solid var(--material-border);border-radius:12px;background:var(--material-card);display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;color:var(--material-ink)}.reader-other-sections>summary:before{display:none}.reader-tools-label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:650;color:var(--material-accent)}.reader-tools-label svg{width:17px;height:17px}.reader-tools-count{font-size:10px;padding:3px 6px;border-radius:6px;background:var(--material-wash);border:1px solid var(--material-border)}.reader-tools-preview{font-size:11px;line-height:1.6;color:var(--material-muted)}.reader-tools-state{font-size:11px;color:var(--material-accent)}.reader-tools-state:after{content:"Apri ▾"}.reader-other-sections[open] .reader-tools-state:after{content:"Chiudi ▴"}.reader-other-sections>summary:focus-visible{outline:2px solid var(--material-accent);outline-offset:3px}@media(max-width:950px)and (min-width:761px){.reader-other-sections>summary{grid-template-columns:1fr auto}.reader-tools-preview{grid-column:1/-1;grid-row:2}}.page-content:has(>.reader-workspace){width:100%;max-width:none}.reader-workspace{width:100%;min-width:0}@media(min-width:1100px){.page-content:has(>.reader-workspace){padding-inline:clamp(24px,2.2vw,42px)}}.reader-workspace .source-content{container-type:inline-size}.reader-comparison .note-panel-heading{flex-wrap:wrap}@container (max-width:880px){.reader-comparison{grid-template-columns:minmax(0,1fr)}.reader-comparison>.pdf-viewer,.reader-comparison>.note-paper{height:auto;display:block}.reader-comparison .pdf-surface{min-height:240px;max-height:60dvh}.reader-comparison .note-editor,.reader-comparison #note-preview{min-height:280px;resize:vertical}}.pdf-panel-heading>div:last-child{display:block}.reader-comparison .pdf-toolbar{display:flex}.study-math-display{display:block;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:14px 4px;margin:16px 0;text-align:center;overscroll-behavior-x:contain}.study-math-display math{min-width:max-content}.page-content .katex{display:inline-block;max-width:100%;overflow-x:auto;overflow-y:hidden;vertical-align:middle}.page-content .study-math-display>.katex{display:block;max-width:none;overflow:visible}.study-math-error{display:inline-flex;gap:6px;flex-wrap:wrap;align-items:baseline;max-width:100%;padding:4px 7px;border:1px solid var(--material-border);border-radius:7px}.study-math-error code{white-space:pre-wrap;overflow-wrap:anywhere}.study-math-error small{font-size:11px;color:var(--material-muted)}.note-formula-tool{font-size:19px;font-family:Georgia,serif}.note-formula-dialog{width:min(640px,calc(100vw - 24px));color:var(--material-ink);background:var(--material-card)}.note-formula-dialog form{display:grid;gap:16px}.note-formula-dialog .dialog-head{position:sticky;top:-28px;z-index:3;background:var(--material-card);padding:10px 0 14px;border-bottom:1px solid var(--material-border)}.note-formula-dialog form>p{margin-bottom:0}.note-formula-dialog textarea{font-family:Consolas,monospace;min-height:100px}.note-formula-preview{padding:16px;border:1px solid var(--material-border);border-radius:12px;background:var(--material-soft);min-width:0}#note-formula-preview{font-size:22px;padding:20px 0 10px;min-height:70px;overflow-x:auto;overflow-y:hidden;max-width:100%}#note-formula-preview math{min-width:max-content}.note-formula-dialog .dialog-actions{flex-wrap:wrap}@media(max-width:600px){.note-formula-dialog{padding:20px;max-height:calc(100dvh - 32px)}.note-formula-dialog .dialog-head{top:-20px}.note-formula-dialog :is(textarea,select){font-size:16px}}
