/* Isolated notebook design preview. Existing record/account operations are retained. */
:root{--nb-border:#e6e8f0;--nb-violet:#6b62d4;--nb-soft:#f1eefa}
#notebookView{max-width:none;width:100%;height:calc(100dvh - 56px);padding:22px 32px 24px;margin:0;background:var(--canvas);border:0;border-radius:0;overflow:hidden;display:flex;flex-direction:column}
#notebookView[hidden]{display:none}
#notebookView .collection-header{margin:0 0 18px;min-height:40px;flex:none}
#notebookView .collection-header h2{font-size:25px;line-height:1.4;margin:0;font-weight:600;letter-spacing:-.035em}
#notebookView .header-actions{flex-direction:row-reverse;gap:10px}
#notebookView .header-actions button{height:36px;min-height:36px;padding:7px 15px;font-size:12px;border-radius:6px}
#notebookView .header-actions .primary{background:var(--nb-violet);border-color:var(--nb-violet)}
#notebookView .header-actions .outline{color:#655db6;border-color:#d6d2ed;background:#fff}
#notebookView .notebook-workspace{flex:1;min-height:0;display:block;border:1px solid var(--nb-border);border-radius:10px;overflow:hidden;background:white}
#notebookView .notebook-list-pane{width:100%;height:100%;min-width:0;display:flex;flex-direction:column;padding:0}
#notebookView .collection-tools{height:57px;flex:none;padding:0 22px;border-bottom:1px solid var(--nb-border);gap:15px}
#notebookView .filter-tabs{gap:27px;height:100%;align-items:stretch}
#notebookView .filter-tabs button{display:flex;align-items:center;gap:7px;font-size:13px;line-height:1;border-bottom-width:2px;padding:0 2px;color:#717a8d}
#notebookView .filter-tabs button.active{color:#504990;border-bottom-color:var(--nb-violet);font-weight:600}
.filter-count{font-size:11px;font-weight:400;color:#9a9eb0;font-variant-numeric:tabular-nums}
#notebookView .filter-tabs button.active .filter-count{color:var(--nb-violet)}
#notebookView .search-box{height:32px;margin:0;width:240px;max-width:32%;background:#fcfcfe;border-color:#e3e5ee;padding:6px 10px}
#notebookView .search-box input{font-size:12px}
#notebookView .notebook-list-toolbar{display:flex;align-items:center;gap:17px;min-height:51px;height:51px;flex:none;padding:8px 20px;border-bottom:1px solid var(--nb-border);background:white}
.notebook-display{display:flex;gap:2px;padding-right:17px;border-right:1px solid #e3e5ee;flex:none}
.notebook-display button,#notebookView .notebook-order button{padding:6px 12px;border:0;border-radius:5px;font-size:12px;min-height:30px;color:#768095;background:transparent;white-space:nowrap}
.notebook-display button[aria-pressed=true],#notebookView .notebook-order button[aria-pressed=true]{color:#655cb8;background:var(--nb-soft);box-shadow:none;font-weight:500}
.notebook-display button:disabled{opacity:.35;cursor:default}
#notebookView .notebook-order{display:flex;gap:2px;background:transparent;padding:0;border:0}
#notebookView .list-meta{margin-left:auto;padding:0;gap:18px;white-space:nowrap;font-size:11px}
#notebookView .list-meta .check-label{font-size:11px}
#notebookView input[type=checkbox]{width:14px;height:14px;accent-color:var(--nb-violet);flex:none}
#notebookView .notebook-record-scroll{min-height:0;overflow-y:auto;flex:1;padding:0;scrollbar-gutter:stable}
#notebookView .record-row{position:relative;padding:17px 20px 14px;gap:15px;border-bottom:1px solid var(--nb-border);border-radius:0;margin:0;background:#fff}
#notebookView .record-row.map-active{background:#f5f2ff;box-shadow:inset 3px 0 0 #8b7cdd}
#notebookView .record-row.selected{background:#faf8ff}
#notebookView .record-top{gap:11px;margin-bottom:5px;font-size:10px}
.record-kind,.detail-kind{padding:2px 7px;border-radius:4px;font-size:10px;line-height:16px;width:fit-content}
.record-kind[data-kind=question],.detail-kind[data-kind=question]{background:#eee8fb;color:#7b62bb!important}
.record-kind[data-kind=definition],.detail-kind[data-kind=definition]{background:#eaf0fb;color:#557aaa!important}
.record-kind[data-kind=highlight],.detail-kind[data-kind=highlight]{background:#fbf0df;color:#a47c42!important}
.record-kind[data-kind=note],.detail-kind[data-kind=note]{background:#e9f3eb;color:#60846b!important}
#notebookView .record-title{font-size:15px;line-height:1.6;font-weight:550;margin:0 0 4px}
.record-open-detail{padding:0;color:#30364a;text-align:left;font:inherit;line-height:inherit;cursor:pointer}
.record-open-detail:hover{color:var(--nb-violet)}
.record-open-detail:focus-visible{outline:2px solid #b6aee8;outline-offset:3px;border-radius:2px}
#notebookView .record-body.clamped,#notebookView .record-summary{font-size:12px;line-height:1.75;color:#7b8395;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}
#notebookView .record-reflection{display:none}
#notebookView .expand-record{display:none}
#notebookView .record-source{font-size:10px;color:#979cad;margin:8px 0 0;gap:5px;line-height:1.7}
#notebookView .record-source svg{display:none}
#notebookView .record-actions{gap:15px;margin-top:6px;flex-wrap:wrap}
#notebookView .record-actions button{font-size:10px;padding:0;color:#8b84ae;gap:4px;line-height:1.8}
#notebookView .record-actions button svg{width:12px;height:12px}
#notebookView .record-actions button[data-action=delete]{margin-left:auto;color:#a3a5b1}
#notebookView[data-display=records] #questionMap{display:none!important}
#notebookView[data-display=map] #questionMap{display:block;order:3;flex:1;overflow:auto;padding:25px 28px;margin:0;border:0;border-radius:0;min-height:0}
#notebookView[data-display=map] #questionMap[hidden]{display:none}
#notebookView[data-display=map] #recordList{display:none}
#notebookView .question-map-canvas{min-height:360px;border:0;background:radial-gradient(#e6e1f3 .8px,transparent .8px);background-size:18px 18px}
#notebookView .question-map-heading{margin-bottom:20px}
#notebookView .question-map-dot{background:#fff;border:1px solid #e3deef;box-shadow:0 3px 12px #34304b05;border-radius:7px;padding:11px 12px;color:#55516b;font-size:12px;line-height:1.7}
#notebookView .question-map-dot:hover,#notebookView .question-map-dot.active{border-color:#b5a9dc;background:#f6f3ff}
#notebookView .notebook-file-heading{margin:0;padding:12px 21px;background:#f9f9fc;font-size:12px;border-bottom:1px solid var(--nb-border)}
#notebookView .notebook-file-heading svg{width:14px;height:14px}
#notebookView .collection-empty{padding-top:80px}
/* A nonmodal inspector: full answers are readable without losing the list. */
body.notebook-detail-open #notebookView #recordList,body.notebook-detail-open #notebookView #questionMap{width:44%;border-right:1px solid var(--nb-border)}
dialog.map-detail-dialog[open]{position:fixed;inset:calc(56px + 22px + 40px + 18px + 57px + 51px + 1px) 33px 25px auto;width:calc((100vw - 66px)*.56);max-width:none;max-height:none;height:auto;margin:0;border:0;border-radius:0;background:#fff;box-shadow:none;padding:0;z-index:9;display:flex;flex-direction:column;overflow:hidden;color:#353c50}
.map-detail-dialog .map-inline-detail-heading{display:flex;align-items:flex-start;gap:20px;padding:24px 26px 11px;border:0;flex:none}
.detail-heading-content{flex:1;min-width:0}
.detail-kind{margin-bottom:10px}
.map-detail-dialog .map-inline-detail-heading h3{font-family:var(--font-ui);font-size:21px;line-height:1.6;color:#2e3345;font-weight:600;letter-spacing:-.015em;margin:0;max-height:none;overflow:visible}
.map-detail-dialog .map-inline-detail-heading>button{width:25px;height:25px;padding:4px;flex:none;margin-top:0;color:#9294a5}
.map-detail-dialog .map-inline-detail-heading>button svg{width:17px;height:17px}
.detail-location{font-size:11px;color:#9299ac;margin:8px 0 0;line-height:1.8}
.map-detail-dialog>.record-actions{flex:none;margin:0;padding:0 26px 17px;gap:20px;border-bottom:1px solid #eff0f5}
.map-detail-dialog>.record-actions button{font-size:11px;color:#81789f}
.map-detail-dialog>.record-actions button[data-map-delete]{margin-left:auto;color:#b78f96}
.map-detail-dialog>.record-actions svg{width:14px;height:14px}
.map-detail-dialog .map-inline-detail-body{padding:21px 26px;overflow:auto;flex:1;min-height:0;font-family:var(--font-ui);font-size:14px;line-height:1.85}
.detail-section-title{font-size:12px;color:#7c729c;letter-spacing:.01em;margin:0 0 15px;font-weight:500}
.map-detail-dialog .record-answer{font-family:var(--font-ui);font-size:14px;line-height:1.85;padding:0;margin:0;border:0;background:transparent;color:#50586d}
.map-detail-dialog .record-answer h4{font-size:14px;color:#3a4156;margin:20px 0 7px;font-weight:550}
.map-detail-dialog .record-answer p{margin:0 0 14px}
.map-detail-dialog .record-answer ul,.map-detail-dialog .record-answer ol{padding-left:21px;margin:10px 0 20px}
.map-detail-dialog .record-answer li{margin:6px 0}
.map-detail-dialog .source-reading-card{padding:15px 17px;background:#fafaff;border-color:#e8e4f1;border-radius:6px;margin:23px 0 8px}
.map-detail-dialog .source-reading-text{font-size:13px;color:#6c7488;line-height:1.85;padding-left:13px;border-color:#c2b8e3}
.map-detail-dialog .source-reading-location{font-size:11px;color:#9b95af!important}
.map-detail-dialog .source-reading-heading{font-size:11px;color:#7b7396}
.map-detail-dialog .source-reading-heading button{font-size:10px}
.map-detail-dialog .record-reflection{font-size:13px;background:#f8f7fc;padding:12px;border-radius:5px}
.map-detail-dialog .detail-note-body{white-space:pre-wrap;line-height:1.9;font-size:14px}
.map-detail-dialog .map-card-navigation{flex:none;border-top:1px solid #eef0f5;background:#fff;padding:13px 24px;gap:10px;margin:0;min-height:60px}
.map-detail-dialog .map-card-navigation button{border:1px solid #e1ddec;border-radius:5px;background:#fff;padding:7px 10px;font-size:11px;color:#77708e}
.map-detail-dialog .map-card-navigation span{font-size:11px;color:#88829a}
.map-detail-dialog .map-card-navigation small{font-size:9px;color:#aaa4b6}
.scope-picker>span[data-icon=file]{display:none}
.auto-record-button svg{width:16px;height:16px;stroke-width:1.6}
@media(min-width:761px){
 body.reading-fullscreen #readerView{padding:10px 12px;background:var(--canvas)}
 body.reading-fullscreen.fullscreen-companion-open #readerView{grid-template-columns:minmax(0,1fr) 14px clamp(355px,var(--companion-width),42vw)}
 body.reading-fullscreen .reading-column{overflow:hidden;background:transparent;min-height:0}
 body.reading-fullscreen .reader-toolbar{border:1px solid var(--nb-border);border-radius:8px;min-height:52px;padding:7px 13px;background:white}
 body.reading-fullscreen .reader-body{margin-top:8px;min-height:0;overflow:hidden}
 body.reading-fullscreen .companion{border:1px solid var(--nb-border);border-radius:9px;padding:0 20px;overflow:hidden}
 body.reading-fullscreen .companion-head{height:52px;min-height:52px}
 body.reading-fullscreen .panel-resizer{width:14px;background:transparent}
 body.reading-fullscreen .panel-resizer:after{left:5px}
}
@media(max-width:1100px) and (min-width:761px){
 #notebookView{padding:18px 20px 20px}
 #notebookView .collection-tools{padding:0 16px}
 #notebookView .filter-tabs{gap:18px}
 body.notebook-detail-open #notebookView #recordList,body.notebook-detail-open #notebookView #questionMap{width:43%}
 dialog.map-detail-dialog[open]{right:21px;bottom:21px;top:241px;width:calc((100vw - 42px)*.57)}
 #notebookView .record-row{padding:14px 15px;gap:10px}
 .map-detail-dialog .map-inline-detail-heading{padding:18px 20px 10px}
 .map-detail-dialog .map-inline-detail-body{padding:18px 20px}
}
@media(max-width:760px){
 #notebookView{height:calc(100dvh - 110px);padding:18px 12px 10px}
 #notebookView .collection-header{margin-bottom:15px;gap:10px}
 #notebookView .collection-header h2{font-size:21px}
 #notebookView .header-actions{gap:6px}
 #notebookView .header-actions button{font-size:11px;padding:6px 8px;gap:5px;min-height:32px;height:32px}
 #notebookView .header-actions svg{width:13px;height:13px}
 #notebookView .collection-tools{height:auto;padding:8px 12px 0;flex-wrap:wrap;gap:7px}
 #notebookView .filter-tabs{order:2;width:100%;height:40px;gap:0;justify-content:space-between}
 #notebookView .filter-tabs button{font-size:12px;gap:4px}
 #notebookView .search-box{max-width:none;width:100%;height:32px;margin-top:3px}
 #notebookView .notebook-list-toolbar{padding:8px;gap:5px;flex-wrap:wrap;height:auto;min-height:48px}
 .notebook-display{padding-right:6px}
 .notebook-display button,#notebookView .notebook-order button{font-size:10px;padding:5px 7px}
 #notebookView .list-meta{gap:10px;font-size:10px}
 #notebookView .list-meta .check-label{font-size:10px}
 body.notebook-detail-open #notebookView #recordList,body.notebook-detail-open #notebookView #questionMap{width:100%}
 dialog.map-detail-dialog[open]{inset:70px 10px 65px;width:auto;height:auto;border:1px solid #e2deed;border-radius:9px;box-shadow:0 15px 80px #3027432b;z-index:12}
 .map-detail-dialog .map-inline-detail-heading{padding:19px 18px 10px}
 .map-detail-dialog .map-inline-detail-heading h3{font-size:19px}
 .map-detail-dialog>.record-actions{padding:0 18px 12px;gap:15px}
 .map-detail-dialog .map-inline-detail-body{padding:18px}
 #notebookView .record-row{padding:15px 13px;gap:11px}
 #notebookView .record-title{font-size:14px}
 #notebookView .record-actions{gap:13px}
}
#notebookView.collection{max-width:none}
#notebookView .notebook-list-toolbar{margin:0;flex-wrap:nowrap}
#notebookView .record-content:has(.record-kind[data-kind=question])>.record-summary{display:none}
#notebookView .question-map-heading p{font-size:11px;color:#9690a5}
#notebookView .notebook-workspace{position:relative}
#notebookView .map-detail-dialog[open]{position:absolute;inset:108px 0 0 auto;width:56%;height:auto}
@media(max-width:1100px) and (min-width:761px){#notebookView .map-detail-dialog[open]{width:57%}}
@media(max-width:760px){
 #notebookView .map-detail-dialog[open]{position:fixed;inset:70px 10px 65px;width:auto}
 #notebookView .notebook-list-toolbar{flex-wrap:wrap}
}
#notebookView[data-display=map] .notebook-order,#notebookView[data-display=map] .list-meta{display:none}
.map-detail-dialog .map-inline-detail-body .detail-section-title{margin:0 0 14px;font-size:12px;color:#7c729c;font-weight:500}

/* Proportion correction: bounded workspace, navigation list, reading column. */
#notebookView.collection{max-width:1440px;margin:0 auto;padding:16px 24px 20px;--nb-list-width:clamp(320px,32%,420px)}
#notebookView .collection-header{min-height:34px;margin-bottom:12px}
#notebookView .collection-header h2{font-size:25px;font-weight:600}
#notebookView .header-actions button{height:33px;min-height:33px;font-size:12px}
#notebookView .collection-tools{height:48px;padding:0 20px}
#notebookView .filter-tabs{gap:24px}
#notebookView .notebook-list-toolbar{height:38px;min-height:38px;padding:4px 18px;gap:12px}
#notebookView .notebook-display button,#notebookView .notebook-order button{min-height:27px;padding:4px 10px;font-size:11px}
#notebookView .notebook-display{padding-right:12px}
body.notebook-detail-open #notebookView #recordList,body.notebook-detail-open #notebookView #questionMap{width:var(--nb-list-width)}
#notebookView .map-detail-dialog[open]{inset:86px 0 0 auto;width:calc(100% - var(--nb-list-width));gap:0}
#notebookView .record-row{padding:13px 16px 12px;gap:12px}
#notebookView .record-top{margin-bottom:4px;gap:9px}
#notebookView .record-title{font-size:15px;line-height:1.5;margin-bottom:4px}
#notebookView .record-body.clamped,#notebookView .record-summary{font-size:12.5px;line-height:1.65}
#notebookView .record-source{margin-top:6px;font-size:10px}
#notebookView .record-actions{gap:12px;margin-top:5px}
#notebookView .record-row.map-active{background:#f3f0fc;box-shadow:inset 2px 0 0 #8d7cda}
#notebookView .map-detail-dialog .map-inline-detail-heading{width:calc(100% - 64px);max-width:760px;margin:0 auto;padding:20px 0 10px;gap:18px}
#notebookView .map-detail-dialog .detail-kind{margin-bottom:7px;line-height:15px;padding:1px 6px}
#notebookView .map-detail-dialog .map-inline-detail-heading h3{font-size:22px;line-height:1.5;font-weight:600;margin:0}
#notebookView .map-detail-dialog .detail-location{font-size:11px;line-height:1.6;margin:7px 0 0}
#notebookView .map-detail-dialog .map-inline-detail-heading>button{width:25px;height:25px;padding:4px;border-radius:5px;color:#9294a5}
#notebookView .map-detail-dialog>.record-actions{width:calc(100% - 64px);max-width:760px;margin:0 auto;padding:0 0 13px;gap:19px;flex-wrap:nowrap;border-color:#eeedf4}
#notebookView .map-detail-dialog>.record-actions button{font-size:11px;gap:5px;color:#847a9d;line-height:20px;padding:0}
#notebookView .map-detail-dialog>.record-actions button[data-map-delete]{color:#ae8d97}
#notebookView .map-detail-dialog>.record-actions svg{width:13px;height:13px}
#notebookView .map-detail-dialog .map-inline-detail-body{padding:18px 32px 24px;line-height:1.8;font-size:14px;scrollbar-width:thin;scrollbar-color:#ddd9e8 transparent}
#notebookView .map-detail-dialog .map-inline-detail-body>*{max-width:760px;margin-left:auto;margin-right:auto}
#notebookView .map-detail-dialog .map-inline-detail-body .detail-section-title{font-size:11px;line-height:18px;margin-top:0;margin-bottom:10px;font-weight:500;color:#8c809f}
#notebookView .map-detail-dialog .record-answer{font-size:15px;line-height:1.8;color:#495165}
#notebookView .map-detail-dialog .record-answer .answer-body,#notebookView .map-detail-dialog .record-answer .answer-lead{font-size:15px;line-height:1.8}
#notebookView .map-detail-dialog .record-answer p{margin:0 0 12px}
#notebookView .map-detail-dialog .record-answer h4{font-size:14px;line-height:1.6;margin:16px 0 8px}
#notebookView .map-detail-dialog .record-answer ol,#notebookView .map-detail-dialog .record-answer ul{margin:8px 0 16px;padding-left:21px}
#notebookView .map-detail-dialog .record-answer li{margin:4px 0}
#notebookView .map-detail-dialog .source-reading-card{margin-top:18px;margin-bottom:8px}
#notebookView .map-detail-dialog .map-card-navigation{min-height:49px;height:49px;padding:9px 28px;gap:10px}
#notebookView .map-detail-dialog .map-card-navigation button{font-size:10px;padding:5px 9px}
#notebookView .map-detail-dialog .map-card-navigation small{font-size:9px}
@media(max-width:1100px) and (min-width:761px){
 #notebookView.collection{padding:14px 18px 18px;--nb-list-width:340px}
 #notebookView .map-detail-dialog .map-inline-detail-heading,#notebookView .map-detail-dialog>.record-actions{width:calc(100% - 40px)}
 #notebookView .map-detail-dialog .map-inline-detail-body{padding-left:20px;padding-right:20px}
}
@media(max-width:760px){
 #notebookView.collection{max-width:none;padding:16px 12px 10px}
 #notebookView .collection-header h2{font-size:21px}
 #notebookView .collection-tools{height:auto;padding:8px 12px 0}
 #notebookView .filter-tabs{gap:0}
 #notebookView .notebook-list-toolbar{height:auto;min-height:40px;gap:5px;padding:5px 8px}
 #notebookView .map-detail-dialog[open]{position:fixed;inset:70px 10px 65px;width:auto;gap:0}
 body.notebook-detail-open #notebookView #recordList,body.notebook-detail-open #notebookView #questionMap{width:100%}
 #notebookView .map-detail-dialog .map-inline-detail-heading,#notebookView .map-detail-dialog>.record-actions{width:calc(100% - 36px)}
 #notebookView .map-detail-dialog .map-inline-detail-heading{padding-top:18px}
 #notebookView .map-detail-dialog .map-inline-detail-heading h3{font-size:19px}
 #notebookView .map-detail-dialog .map-inline-detail-body{padding:16px 18px}
 #notebookView .map-detail-dialog>.record-actions{gap:15px}
}
#notebookView.collection[data-display=map]{--nb-list-width:44%}
#notebookView .map-inline-detail-heading h3:focus{outline:none}
#notebookView .filter-tabs button{font-size:14px}
#notebookView .notebook-display button,#notebookView .notebook-order button{font-size:12px}
#notebookView .record-title{font-size:16px;line-height:1.5}
#notebookView .record-body.clamped,#notebookView .record-summary{font-size:13px}
#notebookView .record-top,#notebookView .record-source{font-size:11px}
#notebookView .map-detail-dialog .map-inline-detail-heading h3{font-size:24px}
#notebookView .map-detail-dialog .source-reading-card{display:flex;flex-direction:column;gap:9px;border:1px solid #e7e3ef;background:#fcfbff;padding:13px 15px;border-radius:6px}
#notebookView .map-detail-dialog .source-reading-ocr:not([open]){display:block}
#notebookView .map-detail-dialog .source-reading-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px}
#notebookView .map-detail-dialog .source-reading-heading>span{width:auto;align-self:auto;border:0;padding:0;font-size:11px;line-height:1.6;color:#8b819b}
#notebookView .map-detail-dialog .source-reading-heading>button{display:inline-flex;align-items:center;gap:3px;font-size:10px;color:#9a90ae}
#notebookView .map-detail-dialog .source-reading-heading>button svg{width:12px;height:12px}
#notebookView .map-detail-dialog .source-reading-text{order:1;margin:0;max-width:none;padding-left:12px;border-left:2px solid #bcb0de;font-size:13px;line-height:1.8}
#notebookView .map-detail-dialog .source-reading-text p{margin:0}
#notebookView .map-detail-dialog .source-reading-location{order:2;margin:0;padding:0;font-size:10px;line-height:1.6}
@media(max-width:760px){#notebookView .record-title{font-size:15px}#notebookView .filter-tabs button{font-size:12px}#notebookView .map-detail-dialog .map-inline-detail-heading h3{font-size:20px}}

/* Complete saved content in the shared reading inspector. */
.saved-question{margin-bottom:22px}
.saved-question>p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8;color:#4d4264;margin:0;padding:11px 14px;border-left:2px solid #8a51ed;background:#f8f4ff;border-radius:0 5px 5px 0}
#notebookView .map-detail-dialog .saved-question>h4{font-size:11px;color:#873ad6;margin:0 0 9px}
#notebookView .map-detail-dialog .detail-note-body{white-space:pre-wrap;overflow-wrap:anywhere;max-height:none;overflow:visible}
/* Keep the shared mock icons; match notebook accents to the reading surface. */
#notebookView{--nb-accent:#736fef;--nb-accent-ink:#615bd0;--nb-soft:#f0efff;--nb-selection:#eeecff;--nb-outline:#dcd9ef;--nb-question:#776ab8;--nb-definition:#6684ae;--nb-highlight:#ad8b54;--nb-note:#668d76;--blue:var(--nb-accent);--blue-light:var(--nb-soft);--nb-violet:var(--nb-accent)}
:root{--blue:#5b22e4;--blue-light:#eee7ff;--nb-violet:#5b22e4;--nb-soft:#eee7ff}
.topbar>nav .nav-link.active{background:#eee7ff;color:#5b22e4}
.topbar .topbar-utilities{display:flex;gap:12px;align-items:center}
.topbar .topbar-utilities .ai-settings-entry,.topbar .topbar-utilities .avatar{width:34px;height:34px;padding:7px;border:0;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#f3f3f9;color:#34334e}
.topbar .topbar-utilities .avatar{background:#eee9ff;color:#7965ee}
.topbar .topbar-utilities .ai-settings-entry>svg,.topbar .topbar-utilities .avatar>svg{width:20px;height:20px;stroke-width:1.6}
.topbar .topbar-utilities button:hover{background:#e8e0ff;color:#5927d8}
#notebookView .header-actions .primary{background:var(--nb-accent);border-color:var(--nb-accent)}
#notebookView .header-actions .primary:hover{background:#655fdf}
#notebookView .header-actions .outline{color:var(--nb-accent-ink);border-color:var(--nb-outline)}
#notebookView .filter-tabs button.active{color:var(--nb-accent-ink);border-color:var(--nb-accent)}
#notebookView .filter-tabs button.active .filter-count{color:var(--nb-accent-ink)}
#notebookView .notebook-display button[aria-pressed=true],#notebookView .notebook-order button[aria-pressed=true]{color:var(--nb-accent-ink);background:var(--nb-soft)}
#notebookView .record-row.map-active{background:var(--nb-soft);box-shadow:inset 3px 0 0 var(--nb-accent)}
#notebookView .record-actions button,#notebookView .map-detail-dialog>.record-actions button{color:#747c94}
#notebookView .record-kind[data-kind=question],#notebookView .detail-kind[data-kind=question]{background:#efedfa;color:var(--nb-question)!important}
#notebookView .record-kind[data-kind=definition],#notebookView .detail-kind[data-kind=definition]{background:#eaf0f9;color:var(--nb-definition)!important}
#notebookView .record-kind[data-kind=highlight],#notebookView .detail-kind[data-kind=highlight]{background:#f8f1e5;color:var(--nb-highlight)!important}
#notebookView .record-kind[data-kind=note],#notebookView .detail-kind[data-kind=note]{background:#edf4ef;color:var(--nb-note)!important}
#notebookView .question-map-dot.active{border-color:#b4ade8;background:var(--nb-soft);color:var(--nb-accent-ink)}
#notebookView .map-detail-dialog .record-actions button[data-map-delete]{color:#ba6474}
@media(max-width:760px){.topbar .topbar-utilities{gap:7px}.topbar .topbar-utilities .ai-settings-entry,.topbar .topbar-utilities .avatar{width:30px;height:30px;padding:6px}}
#notebookView .map-detail-dialog .record-reflection{display:block;white-space:pre-wrap;overflow-wrap:anywhere;max-height:none;overflow:visible}
#notebookView .map-detail-dialog .map-inline-detail-body:focus-visible{outline:2px solid #bca4f2;outline-offset:-3px}
#notebookView .map-detail-dialog>.record-actions{flex-wrap:wrap;row-gap:6px}
#notebookView .notebook-loading{flex:1;display:grid;place-items:center;color:#998cae;font-size:13px}
#notebookView .question-map-dot[data-kind=question] .question-map-marker,#notebookView .map-legend [data-kind=question]::before{background:var(--nb-question);box-shadow:none}
#notebookView .question-map-dot[data-kind=definition] .question-map-marker,#notebookView .map-legend [data-kind=definition]::before{background:var(--nb-definition);box-shadow:none}
#notebookView .question-map-dot[data-kind=highlight] .question-map-marker,#notebookView .map-legend [data-kind=highlight]::before{background:var(--nb-highlight);box-shadow:none}

#notebookView .saved-question>p{color:#535c75;background:#f6f5fc;border-left-color:#b4aff0}
#notebookView .map-detail-dialog .saved-question>h4{color:#7c769e}
#notebookView .record-open-detail:hover{color:var(--nb-accent-ink)}
#notebookView .record-actions button:hover,#notebookView .map-detail-dialog>.record-actions button:hover{color:var(--nb-accent-ink)}
#notebookView .map-detail-dialog>.record-actions button[data-map-source],#notebookView .source-reading-heading>button{color:var(--nb-accent-ink)}
#notebookView .map-detail-dialog .map-inline-detail-body:focus-visible{outline-color:#b7b1ed}

/* Compact notebook heading and inline record type. */
#notebookView .collection-header{justify-content:flex-end}
#notebookView .map-detail-dialog .detail-kind{display:inline-block;vertical-align:middle;margin:0 10px 2px 0;font-weight:500;letter-spacing:0}

#notebookView .collection-tools .header-actions{flex:none;margin-left:0;gap:8px}
#notebookView .collection-tools .search-box{margin-left:auto}
#notebookView .collection-tools .header-actions button{padding:6px 10px;font-size:11px}
@media(max-width:760px){#notebookView .collection-tools{flex-wrap:wrap;padding-bottom:8px;gap:8px}#notebookView .collection-tools .search-box{max-width:none;flex:1;width:140px}#notebookView .collection-tools .filter-tabs{width:100%;height:32px}}
