@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');
:root{font-family:'Noto Sans KR',-apple-system,BlinkMacSystemFont,'Segoe UI','Malgun Gothic',sans-serif;color:#253c48;background:#f4f3ee;font-synthesis:none;--navy:#182c3b;--ink:#253c48;--muted:#75848a;--line:#e2e5df;--paper:#fffefa;--blue:#326782;--coral:#b36550;--sage:#dce9e4}
*{box-sizing:border-box}body{margin:0;font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;color:inherit}button:disabled{cursor:wait;opacity:.55}a{color:var(--blue)}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #77a9b8;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #79a5b6;outline-offset:1px}h1,h2,h3,h4,p{margin:0}button .icon{flex-shrink:0}.icon{width:20px;height:20px;vertical-align:middle;flex-shrink:0}button{transition:background .16s,color .16s,box-shadow .16s}button:hover{color:#183d53}.skip-link{position:fixed;left:12px;top:-100px;z-index:100;background:white;padding:12px}.skip-link:focus{top:10px}.loading,.startup-error{min-height:80vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;padding:30px}.startup-error h1{font-size:25px}.startup-error p{max-width:500px}.app-shell{min-height:100vh;display:flex}.sidebar{width:236px;flex-shrink:0;background:var(--navy);color:#cad7dd;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:30;padding:32px 20px 20px}.brand{display:flex;align-items:center;gap:10px;margin:0 4px}.brand strong{display:block;color:#f9f8f2;font-size:22px;letter-spacing:-1px;font-weight:700}.brand span{display:block;font-size:8px;letter-spacing:1.8px;color:#91a7b2;margin-top:2px}.sidebar-caption{font-size:11px;color:#839ba8;margin:25px 7px 27px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.nav-item{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:7px;width:100%;text-align:left;min-height:46px;font-size:13px;color:#b6c6cf}.nav-item small{margin-left:auto;color:#829ca9;font-size:11px}.nav-item .icon{width:18px;height:18px;color:#8da9b7}.nav-item:hover{background:#223d4e;color:white}.nav-item.active{background:#304c5c;color:#fff}.nav-item.active .icon{color:#c3dce2}.nav-item.active small{color:#c3dce2}.nav-divider{height:1px;background:#30424d;margin:16px 12px}.sidebar-bottom{margin-top:auto;padding-top:25px}.level-card{padding:17px 14px;background:#213847;border:1px solid #334b58;border-radius:10px}.level-card>div:first-child{display:flex;align-items:center;gap:11px}.level-icon{font-size:26px;color:#ddaa79}.eyebrow{font-size:9px;font-weight:600;letter-spacing:1.8px;color:#75868b;text-transform:uppercase}.level-card .eyebrow{color:#8aa4b2;letter-spacing:.6px;font-size:10px}.level-card strong{display:block;color:#e6e8e3;font-size:12px;font-weight:500;margin-top:5px}.level-progress{height:4px;background:#344c59;border-radius:4px;margin:17px 0 8px;overflow:hidden}.level-progress span{height:100%;display:block;background:#d8ad83;border-radius:4px}.level-card p{display:flex;justify-content:space-between;font-size:9px;color:#8ca5b2}.level-card p span{color:#b9c8ce}.sidebar-foot{display:flex;align-items:center;gap:7px;margin:24px 7px 0;font-size:10px;color:#9bb0ba}.sidebar-foot small{margin-left:auto;color:#738e9b;font-size:9px}.live-dot{width:6px;height:6px;border-radius:100%;background:#78a48d;display:inline-block;flex-shrink:0}.workspace{margin-left:236px;min-width:0;flex:1}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:20px;padding:0 40px;background:#f7f6f2}.breadcrumb{font-size:12px;white-space:nowrap;color:#7c8b90}.breadcrumb span{padding:0 14px;color:#b2bcbb}.global-search{display:flex;align-items:center;margin-left:auto;width:300px;gap:10px}.global-search .icon{width:17px;color:#8a9a9f}.global-search input{width:100%;border:0;background:transparent;font-size:12px;color:var(--ink);min-width:0;padding:9px 0}.global-search input::placeholder{color:#95a0a2}.global-search kbd{font-size:11px;color:#9aa6a8;border:1px solid #dfe3dd;padding:1px 5px;border-radius:3px}.storage-status{display:flex;align-items:center;gap:7px;font-size:10px;white-space:nowrap;padding:6px 0 6px 18px;border-left:1px solid #dfe4df;color:#70877d}.mobile-menu,.mobile-close,.mobile-back{display:none}main{padding:33px 40px 32px;max-width:1680px;margin:auto;min-height:calc(100vh - 125px)}main:focus{outline:none}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.section-heading .eyebrow{letter-spacing:2.4px;font-size:9px;color:#9b8e7d}.section-heading h1{font-size:30px;font-weight:600;letter-spacing:-1.7px;margin:8px 0 9px;color:#283f4d}.title-dot{color:#b77763;margin-left:3px}.section-heading p{font-size:12px;color:#85908f}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:6px;padding:11px 17px;min-height:43px;white-space:nowrap;font-size:12px;font-weight:500}.primary{background:#294d60;color:#fff;border:1px solid #294d60;box-shadow:0 2px 4px #182c3b0b}.primary:hover{color:white;background:#1e4053}.secondary{background:#fffefa;border:1px solid #d8dfd9}.secondary:hover{background:#edf2ed}.primary .icon,.secondary .icon{width:16px;height:16px}.small{min-height:33px;padding:7px 11px;font-size:11px}.icon-button{padding:8px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;min-width:36px;min-height:36px}.icon-button:hover{background:#eaf0eb}.icon-button .icon{width:18px;height:18px}.icon-button.is-pinned{color:#b46d51;background:#f5e9df}.text-button{display:inline-flex;gap:5px;align-items:center;font-size:11px;color:#507c8b;padding:6px 0}.text-button .icon{width:14px;height:14px}.text-button:hover{text-decoration:underline}.muted,.small-muted{color:#84918e}.small-muted{font-size:11px;line-height:1.8}.danger{color:#b65c49}.library-layout{display:grid;grid-template-columns:310px minmax(0,1fr);border:1px solid #dce1d9;border-radius:10px;overflow:hidden;box-shadow:0 4px 20px #364f3504;background:var(--paper);min-height:680px}.note-list{background:#f8f8f3;border-right:1px solid #dce1d9;display:flex;flex-direction:column;min-width:0}.list-toolbar{height:58px;padding:15px 18px;display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #e5e8e1}.list-toolbar select{border:0;background:transparent;font-size:11px;color:#526964;max-width:160px;padding:4px 0;text-overflow:ellipsis}.list-toolbar>span{font-size:9px;color:#8d9894;white-space:nowrap}.filter-chips{display:flex;gap:4px;flex-wrap:wrap;padding:16px 16px 11px}.chip{border:1px solid #e3e5df;border-radius:5px;padding:6px 10px;font-size:10px;min-height:30px;background:#fafbf7;color:#798984;white-space:nowrap}.chip.selected{background:#e1ebe5;color:#426554;border-color:#c9d9cd}.chip:hover{border-color:#b2c8bb}.note-items{padding:0 9px 10px;flex:1}.note-row{width:100%;display:block;border:1px solid transparent;text-align:left;padding:17px 14px 16px;border-radius:7px;margin-bottom:3px}.note-row:hover{background:#eff2eb}.note-row.selected{background:#eaf0e8;border-color:#d8e2d4}.row-meta{display:flex;align-items:center;justify-content:space-between}.row-meta>span:last-child{font-size:9px;color:#8f9a92}.kind{font-size:9px;display:inline-flex;align-items:center;line-height:1;padding:5px 7px;border-radius:4px;font-weight:500;letter-spacing:.3px}.kind-idea{color:#998045;background:#f0e9d7}.kind-setting{color:#64847a;background:#e2eee6}.kind-scene{color:#ae7863;background:#f3e4dc}.kind-reference{color:#6e8293;background:#e6ecf2}.note-row h2{font-size:14px;letter-spacing:-.5px;font-weight:600;margin:10px 0 7px;color:#354e55;overflow-wrap:anywhere}.note-row p{font-size:11px;line-height:1.8;color:#89958d;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tags{display:flex;gap:8px;flex-wrap:wrap;font-size:9px;color:#94a18f;margin-top:13px}.list-footer{padding:15px 12px;border-top:1px solid #e4e8de;font-size:9px;color:#98a395;text-align:center}.list-footer .icon{width:12px;height:12px;margin-right:3px}.note-detail{min-width:0;background:var(--paper)}.detail-toolbar{height:58px;border-bottom:1px solid #ecece4;display:flex;align-items:center;justify-content:space-between;padding:0 26px}.detail-toolbar>span{display:flex;align-items:center;gap:9px}.sample-label{font-size:9px;color:#9ca49c;border:1px solid #e2e6dc;border-radius:3px;padding:2px 5px;white-space:nowrap}.toolbar-actions{display:flex;gap:4px}.toolbar-actions .muted{color:#a2aba3}.note-paper{padding:32px 40px 27px;min-height:430px}.note-context{font-size:10px;letter-spacing:.4px;color:#8b9a8c;margin-bottom:11px}.note-title{font-size:27px;font-weight:600;letter-spacing:-1.2px;line-height:1.5;color:#293f46;overflow-wrap:anywhere}.note-meta{font-size:9px;color:#a3aaa0;margin-top:12px;display:flex;gap:10px}.note-body{margin-top:34px;font-size:13px;line-height:2;color:#52615d;overflow-wrap:anywhere}.note-body h3{font-size:14px;color:#40574d;font-weight:600;margin:23px 0 8px;letter-spacing:-.3px}.note-body h3:first-child{margin-top:0}.note-body h4{font-size:13px;margin:16px 0 8px}.note-body p{line-height:2;margin:3px 0}.paragraph-gap{height:8px}.text-bullet{display:flex;gap:8px}.text-bullet>span{color:#acb4a7}.wiki-link{display:inline;color:#3d7b8b;background:#eaf1ee;padding:1px 4px;line-height:1.8;border-radius:3px;font-size:inherit;word-break:break-word}.wiki-link:hover{background:#d7e8e5;color:#245968}.wiki-link.missing{border-bottom:1px dashed #a6ad95;background:#f0f0e2;color:#8d8f61}.paper-tags{border-top:1px solid #ecece4;padding-top:20px;margin:25px 0 9px}.paper-tags button{background:#f0f2e9;padding:5px 8px;border-radius:4px;font-size:10px;color:#7c8b71}.source-link{display:inline-flex;align-items:center;gap:6px;font-size:11px;margin:22px 0 0;text-decoration:none}.source-link .icon{width:14px}.related{background:#f7f8f2;border-top:1px solid #e4e8dc;padding:22px 28px 26px}.related-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.related-heading h3{font-size:12px;font-weight:500;color:#597165;display:flex;align-items:center;gap:8px}.related-heading h3 .icon{width:16px}.related-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px}.related-columns .eyebrow{font-size:8px;letter-spacing:.5px;color:#9ca68f}.related-link{display:flex;gap:8px;width:100%;align-items:center;text-align:left;font-size:11px;padding:10px 0;border-bottom:1px solid #e8ebe1;color:#5b766a;overflow-wrap:anywhere}.related-link>span{flex:1;min-width:0}.related-link>.icon{width:13px;height:13px;color:#96aa98}.related-link>.icon:last-child{margin-left:auto;width:11px}.related-columns .small-muted{margin-top:12px;font-size:10px}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:50px 20px;gap:15px;min-height:230px}.empty>.icon{width:32px;height:32px;color:#aab7a3}.empty h2{font-size:15px;font-weight:500;line-height:1.5}.empty p{font-size:12px;color:#859382;line-height:1.8}.detail-empty{min-height:600px}.workspace-footer{display:flex;justify-content:space-between;padding:0 40px 21px;max-width:1680px;margin:auto;font-size:9px;color:#a6ada3}.workspace-footer button{display:flex;gap:5px;align-items:center;font-size:10px;color:#829281;padding:0}.workspace-footer .icon{width:12px;height:12px}.work-summary{background:#e6ece5;display:flex;align-items:center;justify-content:space-between;padding:27px 30px;border-radius:9px;margin:0 0 28px;position:relative;overflow:hidden;border:1px solid #dce4d8}.work-summary:after{content:'✦';position:absolute;right:120px;top:-18px;font-size:130px;font-weight:300;color:#d7e0d5;transform:rotate(17deg)}.work-summary .eyebrow{font-size:10px;letter-spacing:.8px;color:#869580}.work-summary h2{font-weight:500;font-size:21px;letter-spacing:-.9px;margin-top:10px;color:#45614f;position:relative;z-index:1}.work-count{display:flex;flex-direction:column;text-align:right;position:relative;z-index:1}.work-count strong{font-size:28px;color:#50745b}.work-count small{font-size:15px;font-weight:400;color:#98aa94}.work-count>span{font-size:10px;color:#91a188;margin-top:5px}.work-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.9fr);gap:26px;align-items:start}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 16px}.panel-heading h2,.schedule-head h2{font-size:15px;letter-spacing:-.5px;font-weight:600}.panel-heading>span{font-size:11px;color:#9ca698}.task-card{padding:20px 21px;background:var(--paper);border:1px solid #dfe4d9;border-radius:9px;margin-bottom:12px}.task-line{display:flex;align-items:center;gap:10px}.task-check{width:20px;height:20px;border:1.5px solid #bacbbc;border-radius:5px;padding:0;flex-shrink:0;display:flex;align-items:center;justify-content:center}.task-check.checked{background:#6c927b;border-color:#6c927b;color:white}.task-check .icon{width:14px;height:14px}.task-title{text-align:left;font-size:13px;font-weight:500;overflow-wrap:anywhere;min-width:0;padding:4px 0;flex:1}.task-card.done .task-title{color:#9aa798;text-decoration:line-through}.task-info{font-size:10px;color:#98a18e;margin:6px 0 0 30px;display:flex;align-items:center;gap:8px}.mini-progress{height:3px;background:#eef0e7;border-radius:3px;overflow:hidden;margin:18px 0 13px}.mini-progress>span{display:block;background:#97b5a0;height:100%}.subtasks{display:flex;flex-direction:column;gap:8px}.subtasks label{display:flex;align-items:center;gap:8px;font-size:11px;line-height:1.7;color:#7e8c77;cursor:pointer;padding:3px 0}.subtasks input{accent-color:#648c75;width:15px;height:15px}.subtasks input:checked+span{text-decoration:line-through;color:#adb7a6}.task-note{margin:10px 0 0 30px;font-size:10px}.add-dashed{width:100%;border:1px dashed #cbd6c6;border-radius:8px;min-height:49px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px;color:#82947b}.add-dashed:hover{background:#e9eee3}.add-dashed .icon{width:14px}.schedule-panel{background:var(--paper);border:1px solid #dce3d7;border-radius:9px;overflow:hidden}.schedule-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:21px 20px 15px}.schedule-head p{font-size:10px;color:#9ca891;margin-top:8px}.schedule-head input{width:125px;border:1px solid #e0e6d9;padding:6px;font-size:10px;border-radius:4px;background:#fafbf7;color:#70866d}.schedule-tools{border-bottom:1px solid #e2e7da;display:flex;justify-content:space-between;align-items:center;gap:6px;padding:0 18px 12px}.schedule-tools>span{font-size:8px;color:#a0ab96}.schedule-tools .chip{font-size:9px}.timeline-scroll{height:467px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c7d1bf transparent}.timeline{position:relative;touch-action:pan-y;user-select:none}.timeline.touch-select{touch-action:none}.time-slot{height:26px;display:block;width:100%;padding:0 0 0 10px;position:relative;text-align:left;border-top:1px solid #e7ebe0;border-bottom:0}.time-slot.half{border-top:1px dashed #eff0e9}.time-slot span{position:absolute;left:15px;top:4px;font-size:9px;color:#a7b19d;pointer-events:none}.time-slot:hover{background:#edf2e7}.time-slot:before{content:'';position:absolute;left:67px;top:0;height:100%;width:1px;background:#e6ebdf}.time-event{position:absolute;right:10px;z-index:2;background:#e5ede4;border-left:3px solid #8cab91;border-radius:4px;padding:4px 8px;text-align:left;overflow:hidden;display:flex;flex-direction:column;justify-content:center;gap:3px}.time-event strong{font-size:10px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.time-event>span{font-size:8px;color:#8b9c80}.time-event.done{opacity:.5}.time-event:hover{background:#d7e6d4}#drag-selection{position:absolute;left:70px;right:5px;background:#d2e2edc9;border:1px solid #6a9fba;z-index:5;pointer-events:none;display:none;font-size:11px;padding:4px 8px;border-radius:4px;color:#3f738a}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px}.project-card{border:1px solid #dee3d9;background:var(--paper);border-radius:10px;overflow:hidden;min-width:0}.project-cover{height:180px;padding:20px;display:flex;flex-direction:column;justify-content:space-between;background:#dce8e5;color:#76908a;position:relative}.project-cover span{font-size:9px;letter-spacing:2px;position:relative;z-index:1}.cover-mark{position:absolute;right:24px;top:45px;transform:rotate(-15deg);color:#9bb7ad}.cover-mark .icon{width:100px;height:100px;stroke-width:.5}.cover-1{background:#ebdfd3;color:#aa8c72}.cover-1 .cover-mark{color:#c7aa8d}.cover-2{background:#dce4ec}.project-info{padding:23px}.project-info h2{font-size:17px;font-weight:600;letter-spacing:-.8px;overflow-wrap:anywhere}.project-info p{font-size:11px;color:#8e9b87;line-height:1.8;margin:10px 0 22px}.project-info>div{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e8eade;padding-top:14px;gap:8px}.project-info>div>span{font-size:10px;color:#95a38d}.project-new{border-style:dashed;min-height:340px;display:flex;flex-direction:column;gap:14px;align-items:center;justify-content:center;background:transparent}.project-new .icon{color:#a6b79c;width:32px;height:32px}.project-new strong{font-size:13px;color:#829677;font-weight:500}.project-new>span{font-size:11px;color:#a6b29b}.project-new:hover{background:#edf0e7}.graph-card{border:1px solid #dde4d8;background:var(--paper);border-radius:9px;overflow:hidden}.graph-toolbar{padding:20px 25px;display:flex;gap:15px;align-items:center;border-bottom:1px solid #e1e7db;flex-wrap:wrap}.graph-toolbar label{font-size:11px;color:#899980}.graph-toolbar select{max-width:300px;padding:8px 10px;border:1px solid #dce4d6;background:#fffefa;border-radius:5px;color:#4e6d5b;font-size:12px}.graph-toolbar>span{font-size:9px;margin-left:auto;color:#9aaa92}.graph{display:block;width:100%;max-height:470px}.center-label{fill:#f3f5eb;font-size:11px;font-weight:500}.center-kind{fill:#91afb7;font-size:9px}.node-label{fill:#6d8476;font-size:11px}.graph a:hover circle{stroke:#82a99b}.graph-legend{border-top:1px solid #e1e7db;padding:16px 24px;display:flex;gap:20px;font-size:10px;color:#8fa083;flex-wrap:wrap}.graph-legend span{display:flex;align-items:center;gap:6px}.graph-legend span:last-child{margin-left:auto}.graph-legend i{width:7px;height:7px;border-radius:100%}.blue{background:#34566b}.sage{background:#a0b9a9}.coral{background:#c49b86}.graph-empty{padding:0 20px 20px;font-size:12px;color:#8f9f83;text-align:center}.graph-accessible{margin-top:25px;display:flex;gap:10px;flex-wrap:wrap}.graph-accessible h2{width:100%;font-size:13px;font-weight:500;margin-bottom:6px}.graph-accessible .related-link{width:auto;max-width:100%;padding:10px 15px;border:1px solid #dee5d7;background:#fffefa;border-radius:5px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:23px}.settings-card{background:var(--paper);padding:28px;border:1px solid #dfe5d8;border-radius:9px;min-width:0}.setting-icon{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:#e6ede6;color:#7a9985;margin-bottom:16px}.setting-icon.coral{background:#f1e5dc;color:#b3886c}.settings-card h2{font-size:17px;letter-spacing:-.5px;font-weight:600;margin:0 0 15px}.settings-card p{font-size:12px;line-height:1.9;color:#8b9980;margin:12px 0 20px}.settings-card p strong{font-weight:500;color:#657e66}.settings-card p.small-muted{font-size:10px}.stat-row{display:flex;gap:18px;border-top:1px solid #e8ecdf;border-bottom:1px solid #e8ecdf;padding:15px 0;margin:18px 0 20px;font-size:11px;color:#9aaa90}.stat-row b{font-weight:600;color:#577355;margin-left:4px}.button-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.button-row.end{justify-content:flex-end}.reward-big{font-size:30px;letter-spacing:-1px;color:#a07854;margin:18px 0 23px}.reward-big span{font-size:12px;letter-spacing:0;margin-left:15px;color:#b7aa8b}.switch-row{border-top:1px solid #e7ebdf;padding-top:18px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#79906e}.switch-row input{width:18px;height:18px;accent-color:#6c9173}.environment{display:grid;grid-template-columns:80px 1fr;gap:12px 14px;margin:20px 0;font-size:12px}.environment dt{color:#a0ac92}.environment dd{margin:0;color:#6e8665;overflow-wrap:anywhere}.white{background:#fffefa;border:1px solid #e0e6d8;border-radius:9px;margin-bottom:12px}dialog{border:1px solid #dde3d6;border-radius:14px;padding:28px 30px;background:#fffefa;color:var(--ink);box-shadow:0 30px 100px #14292d40;width:620px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);overflow:auto}dialog::backdrop{background:#172e3b70;backdrop-filter:blur(3px)}#small-dialog{width:530px}.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}.modal-heading h2{font-size:21px;font-weight:600;letter-spacing:-.8px;margin-top:6px}.modal-heading .eyebrow{font-size:8px;letter-spacing:2px;color:#a2957d}.field{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#7d8c72;margin-bottom:17px;font-weight:500}.field>input,.field>select,.field>textarea,textarea#note-body-input{width:100%;background:#f8f9f3;border:1px solid #dce4d4;border-radius:6px;padding:11px 12px;font-size:13px;line-height:1.6;color:#405847;font-weight:400;min-width:0}.field>input::placeholder,.field>textarea::placeholder,textarea::placeholder{color:#acb7a1}.field .optional{font-size:9px;color:#a4ae95;font-weight:400;margin-left:5px}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-three{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:10px}.form-three input{padding:10px 7px;font-size:12px;max-width:100%}.editor-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:11px;color:#7d8c72;position:relative;gap:10px}.link-picker summary{display:flex;align-items:center;gap:5px;cursor:pointer;font-size:10px;color:#608681;list-style:none;padding:4px}.link-picker summary::-webkit-details-marker{display:none}.link-picker .icon{width:13px;height:13px}.link-picker>div{position:absolute;right:0;top:30px;z-index:2;background:#fffefa;padding:13px;border:1px solid #d8e3d2;box-shadow:0 8px 25px #1d343b15;border-radius:8px;display:flex;gap:8px;max-width:100%;width:340px}.link-picker select{min-width:0;flex:1;font-size:11px;background:#fffefa;border:1px solid #d8e3d2;padding:5px;border-radius:4px}textarea{resize:vertical}textarea#note-body-input{line-height:1.9;margin-bottom:20px;min-height:210px;font-size:13px}.modal-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e4eadb;padding-top:18px;margin-top:8px}.modal-footer>span{font-size:9px;color:#9baa8d}.form-error{color:#b45c44;font-size:11px;line-height:1.8;margin-bottom:10px}.confirm-body{font-size:13px;line-height:1.9;color:#819175;margin-bottom:25px}.split-tools{padding:14px;background:#eef3e8;border-radius:7px;margin:0 0 17px}.split-tools>span{font-size:10px;color:#819276;display:block;margin-bottom:10px}.split-tools .chip{background:#fffefa}#quantity-panel{margin-top:12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:11px;color:#839679}#quantity-panel[hidden]{display:none}#quantity-panel input{width:60px;border:1px solid #d2dfc8;border-radius:4px;background:#fffefa;font-size:11px;padding:6px 4px;color:#466546}#toast{position:fixed;bottom:28px;left:calc(50% + 90px);transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:100;background:#2c4a55;color:#f9fbf3;border-radius:9px;padding:13px 22px;font-size:12px;line-height:1.7;box-shadow:0 6px 25px #10283030;max-width:calc(100vw - 32px);width:max-content;transition:opacity .2s,transform .2s}#toast.visible{opacity:1;transform:translate(-50%,0)}#toast.error{background:#925b48}.menu-backdrop{display:none}
@media(min-width:1600px){.library-layout{grid-template-columns:340px 1fr}.note-paper{padding:35px 55px}.note-body{font-size:14px}}
@media(max-width:1250px){.sidebar{width:215px;padding:28px 15px 20px}.workspace{margin-left:215px}main{padding:28px}.topbar{padding:0 28px;gap:15px}.library-layout{grid-template-columns:270px minmax(0,1fr)}.note-paper{padding:28px}.note-title{font-size:25px}.global-search{width:230px}.breadcrumb{font-size:11px}.related{padding:22px}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.work-layout{gap:18px;grid-template-columns:minmax(0,1fr) minmax(290px,.9fr)}.schedule-head{flex-wrap:wrap}.work-summary h2{font-size:19px}.workspace-footer{padding-left:28px;padding-right:28px}}
@media(max-width:1050px){.sidebar{width:195px;padding:26px 12px 20px}.brand{gap:6px}.brand strong{font-size:20px}.brand img{width:36px;height:36px}.brand span{font-size:7px}.workspace{margin-left:195px}.breadcrumb{display:none}.global-search{margin-left:0;width:100%}.topbar{gap:15px}.related-columns{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.work-layout{grid-template-columns:1fr}.schedule-head{flex-wrap:nowrap}.work-summary:after{right:100px}.note-body{font-size:12px}.note-title{font-size:23px}.note-paper{padding:24px}.library-layout{grid-template-columns:245px minmax(0,1fr)}}
@media(max-width:899px){.sidebar{transform:translateX(-100%);width:250px;transition:transform .2s;padding:25px 20px}.sidebar.open{transform:translateX(0)}.workspace{margin-left:0}.mobile-menu{display:flex}.mobile-close{display:flex;margin-left:auto;color:#a8c0cb}.mobile-close:hover{background:#304c5c;color:white}.brand strong{font-size:22px}.brand img{width:40px;height:40px}.brand span{font-size:8px}.sidebar.open+.menu-backdrop{display:block;position:fixed;inset:0;background:#142d3e77;z-index:20;backdrop-filter:blur(2px)}.topbar{height:64px;padding:0 22px;gap:16px}.global-search{max-width:420px;margin:auto}.storage-status{border:0;padding:0}.library-layout{grid-template-columns:285px minmax(0,1fr)}.note-title{font-size:24px}.note-paper{padding:26px}.work-layout{grid-template-columns:1fr 1fr}#toast{left:50%}.brand .mobile-close .icon{width:16px}.graph{min-height:300px}.related-columns{grid-template-columns:1fr}.note-body{font-size:13px}}
@media(max-width:700px){main{padding:25px 18px 26px}.topbar{padding:0 15px;gap:9px}.global-search{margin-left:0;gap:8px}.global-search input{font-size:12px}.global-search kbd{display:none}.storage-status{padding:0 3px}.storage-status>span:last-child{font-size:9px}.section-heading{margin-bottom:22px;gap:15px}.section-heading h1{font-size:27px;margin-top:7px}.section-heading .eyebrow{font-size:8px;letter-spacing:1.7px}.section-heading p{font-size:11px;max-width:230px;line-height:1.7}.section-heading .primary{padding:10px 12px;font-size:11px;min-height:40px}.library-layout{display:block;min-height:500px}.note-list{border-right:0}.note-detail{display:none}.library-layout.show-detail .note-list{display:none}.library-layout.show-detail .note-detail{display:block}.mobile-back{display:flex;margin-left:-8px;margin-right:6px}.detail-toolbar{padding:0 19px;height:58px}.detail-toolbar>span{margin-right:auto}.toolbar-actions{gap:1px}.note-paper{padding:26px 24px 23px}.note-title{font-size:26px}.note-body{font-size:13px;line-height:2}.note-context{font-size:10px}.related{padding:22px}.related-columns{grid-template-columns:1fr 1fr;gap:18px}.note-row{padding:19px 15px}.note-row h2{font-size:15px}.note-row p{font-size:12px}.note-row .tags{font-size:10px}.list-toolbar{padding:15px 21px}.list-toolbar select{font-size:12px;max-width:65%}.list-toolbar>span{font-size:10px}.filter-chips{padding:17px 19px 12px;gap:7px}.chip{font-size:11px;padding:7px 11px;min-height:33px}.note-items{padding:0 9px 12px}.kind{font-size:10px}.row-meta>span:last-child{font-size:10px}.list-footer{font-size:9px;padding:15px 8px}.work-layout{grid-template-columns:1fr;gap:23px}.work-summary{padding:22px;margin-bottom:24px;gap:14px}.work-summary h2{font-size:18px;max-width:230px;line-height:1.6}.work-summary .eyebrow{font-size:9px}.work-count strong{font-size:26px}.work-summary:after{right:50px;font-size:100px;top:0}.project-grid{gap:15px}.project-cover{height:150px;padding:16px}.project-info{padding:18px}.project-info h2{font-size:15px}.project-info p{font-size:10px}.project-info>div{flex-wrap:wrap}.project-new{min-height:290px}.graph-toolbar{padding:17px;gap:10px}.graph-toolbar>span{width:100%;margin-left:0;font-size:9px}.graph-toolbar select{max-width:calc(100% - 80px);flex:1;font-size:11px}.graph-legend{padding:14px 17px;gap:15px;font-size:9px}.graph-legend span:last-child{margin-left:0;width:100%}.graph-accessible{margin-top:22px}.settings-card{padding:23px}.settings-grid{gap:17px}.settings-card h2{font-size:16px}.settings-card p{font-size:12px}.settings-card .button-row .primary,.settings-card .button-row .secondary{font-size:11px;padding:10px 12px}.workspace-footer{padding:0 20px 20px;font-size:9px}.modal-heading h2{font-size:20px}dialog{max-width:calc(100vw - 20px);width:620px;border-radius:12px;padding:23px 20px;max-height:calc(100dvh - 24px)}.modal-footer>span{font-size:8px}.form-two{gap:12px}.field{font-size:11px}.field>input,.field>select,.field>textarea,textarea#note-body-input{font-size:16px;padding:9px 10px}.form-three .field>input{font-size:12px;padding:10px 5px}.form-three{gap:8px}.form-two .field>select{font-size:13px}.note-paper .text-button{min-height:38px}.small-muted{font-size:11px}.subtasks label{font-size:12px;gap:11px;min-height:30px}.subtasks input{width:17px;height:17px}.task-card{padding:19px}.task-title{font-size:14px}.time-slot{touch-action:inherit}.schedule-tools .chip{min-height:34px}.time-event strong{font-size:11px}.schedule-head input{font-size:12px;width:135px}.task-check{width:23px;height:23px}.task-line .icon-button{min-width:36px;min-height:36px}.modal-heading .icon-button{min-width:40px;min-height:40px}.environment{font-size:11px}.graph-accessible .related-link{min-height:44px}#toast{font-size:12px;bottom:20px;padding:12px 18px}}
@media(max-width:400px){.section-heading h1{font-size:25px}.section-heading p{max-width:200px}.storage-status>span:last-child{display:none}.topbar{gap:5px}.global-search input{font-size:11px}.global-search .icon{width:16px}.section-heading .primary{padding:10px}.related-columns{grid-template-columns:1fr}.note-paper{padding:23px 20px}.project-grid{grid-template-columns:1fr}.project-cover{height:160px}.project-new{min-height:220px}.work-summary h2{font-size:16px}.form-two{grid-template-columns:1fr;gap:0}.schedule-head{padding:18px 15px;gap:10px}.schedule-head input{width:122px}.schedule-head p{font-size:9px}.schedule-tools{padding:0 13px 12px}.schedule-tools>span{max-width:125px;line-height:1.7}.schedule-head h2{font-size:14px}.graph .node-label{font-size:12px}.graph{min-height:250px}.breadcrumb{display:none}.split-tools .chip{font-size:10px}.form-three{grid-template-columns:1fr 1fr}.form-three .field:first-child{grid-column:span 2}.form-three .field>input{font-size:16px}.field input[type=date]{min-height:42px}.modal-footer .primary{font-size:11px;padding:10px 12px}.note-title{font-size:24px}.level-card p{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.task-list-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.task-list-actions>span{font-size:11px;color:#82938a}.task-list-actions button:disabled{opacity:.45;cursor:not-allowed}.task-trash{background:var(--paper,#fffefa);border:1px solid #dde3dc;border-radius:10px;padding:22px;margin-bottom:24px}.task-trash-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 0;border-top:1px solid #e5e8e1}.task-trash-row>div{min-width:0}.task-trash-row strong{font-size:13px;overflow-wrap:anywhere}.task-trash-row p{font-size:11px;color:#82938a;margin:5px 0 0}.task-trash-row>button{flex-shrink:0}.panel-heading:has(.task-list-actions){flex-wrap:wrap;gap:10px}.task-line .task-title{min-width:0;overflow-wrap:anywhere}@media(max-width:700px){.task-list-actions{gap:8px}.task-list-actions .secondary{font-size:11px;min-height:36px;padding:7px 10px}.task-trash{padding:18px}.task-trash-row strong{font-size:12px}}
.account-card{grid-column:1/-1}.account-email{overflow-wrap:anywhere;font-weight:600}.local-import{margin-top:18px}.account-gate{max-width:680px;margin:12vh auto;padding:32px}.account-gate h1{font-size:24px}.account-gate p{line-height:1.8;overflow-wrap:anywhere}.account-gate .button-row{margin-top:22px}.local-import:disabled{opacity:.5;cursor:not-allowed}
.google-signin{background:#fff;color:#1f1f1f;border:1px solid #747775;border-radius:4px;min-height:40px;padding:10px 24px;font:500 14px Arial,sans-serif;cursor:pointer}.google-signin:hover{background:#f8faff}.google-signin:focus-visible{outline:3px solid #1a73e8;outline-offset:3px}.google-signin:disabled{opacity:.6;cursor:wait}

/* Book organization and the writing desk */
.binder-bar{background:#fffefa;border:1px solid #dce4d6;border-radius:10px;padding:20px 24px;margin-bottom:20px;min-width:0}
.binder-title{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.binder-title>div{min-width:0}.binder-title strong{font-size:16px;color:#365747;overflow-wrap:anywhere}
.binder-title p{font-size:12px;line-height:1.8;color:#64795e;margin:7px 0 14px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:140px;overflow:auto}
.binder-title>button{flex-shrink:0}.binder-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.binder-filters label{display:flex;flex:1 1 190px;flex-direction:column;gap:6px;font-size:11px;color:#536d58;min-width:0}
.binder-filters select,.stage-filter select,.citation-add select{background:#f8f9f3;color:#405847;border:1px solid #d5dfcd;border-radius:6px;padding:9px;font-size:12px;min-width:0;max-width:100%}
.binder-filters button{min-height:36px}.binder-bar>.small-muted{margin-top:14px}
.stage-filter{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:0 20px 15px;font-size:11px;color:#657960}
.stage-filter select{max-width:65%;padding:6px 8px}.note-group{font-size:11px;color:#536d58;margin:12px 6px 4px;padding:9px 10px;background:#edf2e6;border-radius:5px;overflow-wrap:anywhere}
.note-progress{display:flex;align-items:center;gap:9px;margin:10px 0;font-size:10px;color:#657960}
.stage-badge{display:inline-block;font-size:10px;line-height:1.5;border:1px solid #d8e1d0;border-radius:4px;padding:2px 6px;color:#637358;background:#f0f3eb;vertical-align:middle;white-space:nowrap}
.stage-adopted{background:#e8f2ee;color:#3b6b58;border-color:#c9e0d5}.stage-drafted{background:#e5eff6;color:#365b75;border-color:#cbdde9}
.stage-hold{background:#faf0df;color:#7b6034;border-color:#ecddbf}.stage-discarded{background:#f0edeb;color:#75675d;border-color:#ddd4cf}
.note-meta .stage-badge{margin-left:8px}.reference-pin{display:flex;margin-bottom:8px}
.note-context{overflow-wrap:anywhere;line-height:1.8}.citation-section{padding:24px 30px;border-top:1px solid #e3e8dc}
.citation-section h3{font-size:14px;color:#435f4c;margin-bottom:15px}.citation-section h4{font-size:12px;margin:20px 0 10px;color:#526a50}
.citation-card{background:#f6f8f0;padding:12px 16px;border-radius:7px;margin-bottom:10px;overflow-wrap:anywhere}
.citation-card .related-link{width:100%;font-size:12px;justify-content:space-between}.citation-card .small-muted{color:#63785d}
.citation-card blockquote{margin:12px 0 5px;border-left:3px solid #9eb89b;padding-left:12px;font-size:12px;line-height:1.9;white-space:pre-wrap;color:#4f6652}
.citation-warning{font-size:11px;color:#8d6132;line-height:1.7;margin:10px 0 0}
dialog.wide-editor{width:1180px;max-width:calc(100vw - 32px);padding:0;overflow:hidden}
.wide-editor form{display:flex;flex-direction:column;max-height:calc(100dvh - 42px);min-height:0}
.wide-editor .modal-heading{padding:22px 26px 16px;margin:0;border-bottom:1px solid #e2e8d9;flex-shrink:0}
.writing-desk{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,var(--reference-width,38%));overflow:hidden;min-height:0;flex:1}
.writing-main,.writing-reference{min-width:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 26px;scrollbar-gutter:stable}
.writing-main .field{color:#566d50}.writing-main textarea#note-body-input{min-height:300px}
.writing-reference{background:#f3f6ed;border-left:1px solid #dfe6d5}
.reference-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px;color:#3b5845}
.reference-heading strong{font-size:14px}.reference-heading span{font-size:10px;color:#64795e}
.reference-width{display:flex;align-items:center;gap:12px;font-size:10px;color:#64795e;margin:-3px 0 20px}
.reference-width input{min-width:0;flex:1;accent-color:#64886e}
.reference-paper{overflow-wrap:anywhere}.reference-paper h3{font-size:21px;line-height:1.6;margin:8px 0 12px;color:#3c5644}
.reference-meta{font-size:10px;color:#657c5e;line-height:1.9}
.reference-paper .note-body{font-size:13px;line-height:1.9;margin:23px 0}
.reference-paper .note-body p{white-space:pre-wrap}.reference-paper>.source-link{margin-top:16px}
.reference-empty{padding:35px 10px}.reference-empty h3{font-size:15px}.reference-empty p{font-size:12px;line-height:1.9}
.reference-hidden .writing-desk{grid-template-columns:minmax(0,1fr)}.reference-hidden .writing-reference{display:none}
.citation-fields{border:1px solid #d8e2cf;border-radius:7px;margin:4px 0 12px;padding:14px 16px}
.citation-fields>summary{font-size:12px;color:#47674c;cursor:pointer;min-height:22px}.citation-fields[open]>summary{margin-bottom:15px}
.source-editor-row{border-top:1px solid #dce5d3;padding-top:14px;margin-top:14px;overflow-wrap:anywhere}
.source-editor-row>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.source-editor-row strong{font-size:12px;color:#4a674c}
.source-editor-row .text-button{flex-shrink:0;font-size:11px;min-height:30px}.source-editor-row>.text-button{margin:5px 0 10px}.source-editor-row .field{margin-top:8px}
.citation-add{display:flex;gap:10px;align-items:center;margin-top:14px}.citation-add select{flex:1}.citation-add button{flex-shrink:0}
.wide-editor #note-form-error{padding:0 26px;margin:0;flex-shrink:0}.wide-editor #note-form-error:not(:empty){padding-top:9px;padding-bottom:9px}
.wide-editor .modal-footer{margin:0;padding:16px 26px;flex-shrink:0;background:#fffefa}
.wide-editor .modal-footer>span{color:#64785b}.wiki-link:disabled{cursor:default}
@media(max-width:800px){
  dialog.wide-editor{max-width:calc(100vw - 20px)}.wide-editor form{max-height:calc(100dvh - 26px)}
  .writing-desk{display:block;overflow-y:auto;overscroll-behavior:contain}
  .writing-main,.writing-reference{overflow:visible;padding:20px;scrollbar-gutter:auto}
  .writing-reference{border-left:0;border-top:1px solid #dfe6d5;max-height:450px;overflow-y:auto}
  .reference-width{display:none}.reference-hidden .writing-desk{display:block}
  .wide-editor .modal-heading{padding:18px 20px 14px}.wide-editor .modal-heading h2{font-size:18px}
  .wide-editor .modal-heading .eyebrow{display:none}.wide-editor .modal-heading .button-row{gap:5px}
  .wide-editor .modal-heading .secondary{font-size:11px;padding:7px 10px;min-height:36px}
  .wide-editor .modal-footer{padding:14px 20px}.wide-editor #note-form-error{padding-left:20px;padding-right:20px}
  .binder-bar{padding:18px}.binder-title{gap:12px}.binder-title>button{font-size:11px;padding:8px 10px}
  .binder-filters{gap:10px}.binder-filters label{flex-basis:100%}.binder-filters select{font-size:14px}
  .citation-section{padding:22px}.citation-card{padding:10px 12px}
  .writing-main .form-three .field>input,.writing-main .form-three .field>select{font-size:14px}
  .source-editor-row>div{align-items:flex-start}.source-editor-row .text-button{min-height:36px}
}
/* Calendar and same-tab editor recovery */
.journal-layout{display:grid;grid-template-columns:minmax(330px,1fr) minmax(300px,1fr);gap:24px;align-items:start}
.journal-calendar,.journal-paper{background:var(--paper,#fff);border:1px solid var(--line,#e5e2dc);border-radius:18px;padding:24px;min-width:0}
.journal-month,.journal-date{display:flex;align-items:center;gap:10px;justify-content:space-between}.journal-month h2{font-size:18px;margin:0}
.journal-stats{display:flex;gap:20px;padding:18px 0;font-size:13px}.journal-dow,.journal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.journal-dow span{text-align:center;font-size:12px;padding:10px 0;color:var(--muted,#777)}
.journal-day{border:1px solid transparent;border-radius:9px;min-height:80px;padding:8px 3px;display:flex;flex-direction:column;align-items:center;gap:7px;background:transparent;color:inherit}
.journal-day span,.journal-day small{font-size:10px;min-height:12px}.journal-day:hover{background:#f5f3ee}.journal-day.selected{background:#e9f1ed;border-color:#56786b}.journal-day.today b{color:#3b6a59;text-decoration:underline;text-underline-offset:4px}.journal-day.outside{opacity:.4}
.journal-field{border-bottom:1px solid var(--line,#e5e2dc);padding:18px 0}.journal-field h3,.journal-related h3{font-size:13px;margin:0 0 10px}.journal-field p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;margin:0}.journal-related{margin-top:24px}
.draft-bar{border:1px solid #d9e2d7;background:#f3f6ef;border-radius:10px;padding:10px 14px;margin:12px 0 18px;font-size:12px;line-height:1.7;display:flex;align-items:center;justify-content:space-between;gap:14px}.draft-bar .button-row{flex-shrink:0}.draft-bar button{font-size:11px}
@media(max-width:1100px){.journal-layout{grid-template-columns:1fr}.draft-bar{align-items:flex-start;flex-direction:column}}
@media(max-width:550px){.journal-calendar,.journal-paper{padding:14px}.journal-day{min-height:66px;padding:6px 1px;gap:5px}.journal-day span{font-size:9px}}
.sidebar-widget-link{color:#cad7dd;font-size:13px;text-underline-offset:3px}.sidebar-widget-link:hover{color:#fff}
.sidebar-app-links{display:flex;flex-direction:column;gap:12px;line-height:1.5}
/* Original resources and manuscript context */
.library-actions{flex-wrap:wrap;justify-content:flex-end}.resource-type{display:block;color:#415e64;font-size:12px;line-height:1.7;overflow-wrap:anywhere;margin:8px 0}
.resource-original{margin:22px 0;border:1px solid #d7e0dc;border-radius:12px;overflow:hidden;background:#f7f8f4;color:#243b40}
.resource-file-heading{padding:15px 18px;display:flex;gap:16px;justify-content:space-between;align-items:center}.resource-file-heading>div{min-width:0}.resource-file-heading strong{font-size:14px}.resource-file-heading p{font-size:12px;overflow-wrap:anywhere;margin:6px 0 0;line-height:1.6}.resource-file-heading button{flex-shrink:0}
.resource-preview{min-height:120px;background:#e8ece8;text-align:center;overflow:hidden}.resource-preview>img{display:block;max-width:100%;max-height:520px;margin:auto;object-fit:contain}.resource-preview>iframe{display:block;border:0;width:100%;height:480px;background:white}.resource-loading,.resource-error{padding:25px;font-size:14px;line-height:1.8}.resource-error{color:#923b36}
.resource-caption{font-size:12px;line-height:1.8;color:#53675e;margin:12px 16px}.resource-connections{padding:24px 32px;border-top:1px solid #e3e7df;color:#2c4649}.resource-connections>p{font-size:14px;line-height:1.8}.resource-section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.resource-section-heading h3{font-size:16px;margin:0}.resource-section-heading .button-row{flex-wrap:wrap}
.resource-link-card{border:1px solid #d8e1d9;border-radius:10px;background:#f8faf5;margin-top:12px;padding:16px}.resource-note-title{font-size:16px;font-weight:700;text-align:left;color:#234d59;background:none;border:0;line-height:1.7;padding:0;overflow-wrap:anywhere}.resource-link-card p{font-size:13px;margin:8px 0;line-height:1.8}.resource-use-memo{white-space:pre-wrap;overflow-wrap:anywhere}.resource-link-card .button-row{flex-wrap:wrap}
#resource-dialog{width:640px;max-width:calc(100vw - 24px);padding:28px;color:#243b40}#resource-dialog:has(.resource-original){width:960px}#resource-dialog .modal-heading{margin-bottom:16px}#resource-dialog .modal-heading h2{font-size:23px;overflow-wrap:anywhere}#resource-dialog .icon-button{font-size:25px;flex-shrink:0}#resource-dialog label.field{font-size:14px}#resource-dialog input,#resource-dialog select,#resource-dialog textarea{font-size:15px;min-height:44px}#resource-dialog .primary,#resource-dialog .secondary{font-size:14px;min-height:42px}
.resource-intro{font-size:15px;line-height:1.8;margin:0 0 20px}.resource-drop{display:flex;flex-direction:column;gap:10px;border:2px dashed #9aafa7;border-radius:12px;background:#f4f7ef;padding:24px;margin:18px 0 22px;cursor:pointer}.resource-drop strong{font-size:16px}.resource-drop span{font-size:13px;line-height:1.6;color:#46635d}.resource-drop input{width:100%;font-size:13px!important;margin-top:8px}.resource-drop.drag-over{border-color:#28675a;background:#e4f0e6}.resource-target{font-size:14px;line-height:1.8;padding:12px;background:#eef1e7;border-radius:8px}.resource-import-results{max-height:280px;overflow:auto;margin:16px 0}.resource-import-results>div{font-size:14px;line-height:1.8;padding:10px 0;border-bottom:1px solid #e2e7e0;overflow-wrap:anywhere;display:flex;gap:12px;justify-content:space-between}.resource-import-results .text-button{flex-shrink:0}.resource-import-ok{color:#215d42}.resource-import-failed{color:#913c36}.resource-original+.note-body:empty{display:none}.note-body details>summary{font-size:14px;cursor:pointer;color:#47636b}
.writing-reference .resource-file-heading{display:block;padding:12px}.writing-reference .resource-file-heading button{margin-top:10px}.writing-reference .resource-preview>iframe{height:400px}.writing-reference .resource-preview>img{max-height:350px}
@media(max-width:600px){.library-actions{justify-content:flex-start}.resource-file-heading{align-items:flex-start;flex-direction:column;gap:12px}.resource-connections{padding:20px}.resource-section-heading{align-items:flex-start}.resource-preview>iframe{height:380px}#resource-dialog{padding:20px}.resource-drop{padding:16px}#resource-dialog .modal-heading h2{font-size:21px}}

/* Saved color themes keep reading surfaces light and status colors distinct. */
:root{--theme-accent:#294d60;--theme-sidebar:#182c3b;--theme-hover:#1e4053;--theme-soft:#e8f0f4;--theme-edge:#7796a5;--theme-canvas:#f4f3ee;--navy:var(--theme-sidebar);--blue:var(--theme-accent);background:var(--theme-canvas)}
button:focus-visible,a:focus-visible,summary:focus-visible{outline-color:var(--theme-accent)}
input:focus,select:focus,textarea:focus{outline-color:var(--theme-accent)}
.sidebar button:focus-visible,.sidebar a:focus-visible{outline-color:#fff}
.sidebar{background:var(--theme-sidebar);color:#e2e8ec}.sidebar .brand span,.sidebar-caption,.nav-item,.nav-item small,.nav-item .icon,.sidebar-foot,.sidebar-foot small{color:#c4d0d7}
.nav-item:hover,.mobile-close:hover{background:var(--theme-hover);color:#fff}.nav-item.active{background:var(--theme-accent);color:#fff}.nav-item.active .icon,.nav-item.active small{color:#fff}
.nav-divider{background:#ffffff24}.level-card{background:#ffffff0d;border-color:#ffffff2b}.level-card .eyebrow,.level-card p,.level-card p span{color:#d3dce0}.level-progress{background:#ffffff29}
.topbar{background:var(--theme-canvas)}.primary{background:var(--theme-accent);border-color:var(--theme-accent);color:#fff}.primary:hover{background:var(--theme-hover);border-color:var(--theme-hover);color:#fff}
.secondary:hover,.icon-button:hover,.note-row:hover,.journal-day:hover{background:var(--theme-soft)}
.text-button,.resource-note-title,.wiki-link,.note-body details>summary{color:var(--theme-accent)}.wiki-link{background:var(--theme-soft)}.wiki-link:hover{background:var(--theme-soft);color:var(--theme-hover)}
.note-row.selected,.chip.selected,.journal-day.selected{background:var(--theme-soft);border-color:var(--theme-accent)}.chip.selected,.journal-day.today b{color:var(--theme-accent)}
.task-check.checked{background:var(--theme-accent);border-color:var(--theme-accent);color:white}.subtasks input,.switch-row input{accent-color:var(--theme-accent)}.mini-progress>span{background:var(--theme-accent)}
.work-summary{background:var(--theme-soft);border-color:var(--theme-edge)}.work-summary:after{color:var(--theme-edge);opacity:.25}.time-event{background:var(--theme-soft);border-left-color:var(--theme-accent)}.time-event strong{color:var(--theme-accent)}
.setting-icon:not(.coral){background:var(--theme-soft);color:var(--theme-accent)}.resource-drop.drag-over{background:var(--theme-soft);border-color:var(--theme-accent)}
#toast:not(.error){background:var(--theme-accent);color:#fff}
.theme-card{grid-column:1/-1}.theme-card h2{font-size:18px}.theme-card p{font-size:14px;color:#52615d}.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:850px}
.theme-option{display:flex;align-items:center;gap:12px;border:2px solid #d8dfd9;border-radius:10px;background:var(--paper);color:#253c48;padding:14px;min-height:72px;text-align:left;font-size:14px;font-weight:600}
.theme-option:hover{border-color:var(--swatch);color:#253c48;background:var(--paper)}.theme-option[aria-pressed=true]{border-color:var(--theme-accent);background:var(--theme-soft)}
.theme-option small{display:block;font-size:11px;font-weight:400;color:#52615d;margin-top:3px}.theme-swatch{width:28px;height:28px;flex:0 0 28px;border-radius:50%;background:var(--swatch)}.theme-choice{margin-left:auto;color:var(--theme-accent);font-size:20px;min-width:20px}.theme-current strong{color:var(--theme-accent)}
@media(max-width:600px){.theme-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.theme-option{padding:12px 10px;gap:8px;font-size:13px}.theme-swatch{width:22px;height:22px;flex-basis:22px}.theme-choice{font-size:17px;min-width:17px}.theme-card p{font-size:13px}}
@media(max-width:420px){.theme-options{grid-template-columns:1fr}.theme-option{min-height:60px;font-size:14px}}
