.draft-generation-strip{border-bottom:1px solid var(--line);color:var(--ink);background:#f1f4ec;flex:none;grid-template-columns:18px minmax(0,1fr) auto auto;align-items:center;gap:4px 12px;padding:8px clamp(12px,2vw,26px);font-size:14px;line-height:1.4;display:grid}.draft-generation-strip[data-draft-state=failed]{background:#faf1eb}.draft-status-icon{color:var(--green);align-self:start;margin-top:2px}.draft-generation-strip[data-draft-state=failed] .draft-status-icon{color:#8b482c}.draft-status-content{min-width:0}.draft-status-main,.draft-status-actions{flex-wrap:wrap;align-items:baseline;gap:2px 12px;display:flex}.draft-status-main strong{font-weight:650}.draft-status-main span,.draft-status-content p,.draft-status-time,.draft-status-help{color:var(--ink-soft);font-size:13px}.draft-status-content p{margin:2px 0 0}.draft-status-actions{justify-content:flex-end;align-items:center}.draft-status-actions:empty{display:none}.draft-status-time{white-space:nowrap;font-variant-numeric:tabular-nums}.draft-status-help{grid-column:4;justify-self:end}.draft-status-help summary,.draft-status-link{color:var(--green);cursor:pointer}.draft-status-link{background:0 0;border:0;padding:3px 0;font-size:13px;text-decoration:underline}.draft-status-help[open]{grid-column:2/-1;justify-self:stretch}.draft-status-details{max-height:28vh;margin-top:5px;overflow-y:auto}.editor-column .draft-status-details{max-height:none;overflow:visible}.draft-status-details dl{flex-wrap:wrap;gap:4px 18px;margin:0;display:flex}.draft-status-details dl>div{align-items:baseline;gap:5px;display:flex}.draft-status-details dt{font-weight:600}.draft-status-details dd,.draft-status-details p{margin:0}.draft-status-details p{margin-top:5px}.draft-status-details dd,.draft-status-details code{overflow-wrap:anywhere}.draft-generation-strip.draft-saved-confirmation{color:var(--green);align-items:center;gap:8px;display:flex}.draft-receipt-details{max-height:none;overflow:visible}.draft-receipt-details dl{gap:8px;display:grid}.draft-receipt-details dl>div{grid-template-columns:minmax(7rem,32%) minmax(0,1fr);display:grid}.draft-receipt-details p{margin-top:12px}@media (max-width:720px){.draft-generation-strip{grid-template-columns:18px minmax(0,1fr) auto;column-gap:8px}.draft-status-content{grid-column:2/-1}.draft-status-actions{grid-column:2;justify-content:start}.draft-status-help{grid-column:3}.draft-generation-strip:has(.draft-status-actions:empty) .draft-status-content{grid-column:2}}@media (pointer:coarse){.draft-status-help summary,.draft-status-link{align-content:center;min-height:44px}}@media (prefers-reduced-motion:reduce){.draft-status-icon.spin{animation:none}}.writer-dialog.chapter-plan-dialog{width:min(550px,100%);max-height:calc(min(100dvh, var(--writer-visible-height,100dvh)) - 40px);overflow:hidden}.chapter-plan-dialog>header{border-bottom:0;padding:17px 24px 12px}.chapter-plan-dialog .writer-dialog-content{padding:0 24px 12px}.chapter-plan-dialog .plan-intro{color:var(--ink-soft);margin:0}.plan-form{gap:18px;display:grid}.plan-options{border:0;min-width:0;margin:0;padding:0}.plan-options legend,.plan-idea label{padding:0;font-size:15px;font-weight:650}.chapter-plan-dialog .plan-option{border:1px solid var(--line-strong);background:var(--white);cursor:pointer;border-radius:8px;align-items:center;gap:12px;min-height:46px;margin:7px 0 0;padding:9px 13px;display:flex}.plan-option:has(input:checked){background:#eff3eb;border-color:#65836d}.plan-option:has(input:focus-visible){outline:2px solid var(--green);outline-offset:2px}.chapter-plan-dialog .plan-option input[type=radio]{-webkit-appearance:auto;appearance:auto;accent-color:#344f40;width:19px;height:19px;min-height:0;cursor:inherit;flex:0 0 19px;margin:0;padding:0}.plan-option strong{font-size:14px;font-weight:650;display:block}.plan-option small{color:var(--ink-soft);margin-top:2px;font-size:13px;line-height:1.4;display:block}.chapter-plan-dialog .plan-idea label{margin:0 0 7px;display:block}.plan-idea label span{color:var(--ink-soft);font-weight:400}.chapter-plan-dialog .plan-idea textarea{border:1px solid var(--line-strong);background:var(--white);width:100%;min-height:74px;font:inherit;resize:vertical;border-radius:7px;margin:0;padding:10px 12px;line-height:1.45;display:block}.plan-idea textarea::placeholder{color:#66706a}.plan-book-model{color:var(--ink-soft);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:0 12px;font-size:13px;display:flex}.plan-book-model strong{color:var(--ink);margin-inline-start:5px}.chapter-plan-dialog .button.plan-text-button{min-height:44px;color:var(--green);box-shadow:none;text-underline-offset:3px;background:0 0;border:0;padding:0 4px;font-size:14px;text-decoration:underline}.chapter-plan-dialog .writer-dialog-footer{background:var(--paper);padding:12px 24px;display:block}.plan-footer-actions{justify-content:space-between;align-items:center;gap:8px;display:flex}.plan-price-note{min-height:1.4em;color:var(--ink-soft);overflow-wrap:anywhere;margin:0 0 5px;font-size:13px;line-height:1.4}.chapter-plan-dialog .writer-dialog-footer .button-primary{color:var(--white);box-shadow:none;background:#344f40;border-color:#344f40}.chapter-plan-dialog .writer-dialog-footer .button-primary:hover:not(:disabled){background:#263f32}.chapter-plan-dialog .plan-deliverable{margin:0}.chapter-plan-dialog .plan-idea-summary{overflow-wrap:anywhere;white-space:pre-wrap;margin:10px 0}.plan-idea-summary strong{display:block}.plan-disclosure{border-top:1px solid var(--line)}.plan-disclosure>summary{color:var(--green);cursor:pointer;padding:11px 0;font-size:14px;font-weight:600}.chapter-plan-dialog .plan-disclosure p{margin:2px 0 10px}.writer-dialog.chapter-plan-review-dialog{width:min(740px,100%)}.chapter-plan-review-dialog .plan-footer-actions{width:100%}.chapter-plan-review-dialog .writer-dialog-content{scrollbar-gutter:stable}.chapter-plan-review-dialog .plan-review-editor>p{color:var(--ink-soft);margin:0 0 12px}.plan-review-sheet{min-width:0;position:relative}.plan-review-sheet>span,.chapter-plan-dialog .plan-review-sheet>textarea{box-sizing:border-box;border:1px solid var(--line-strong);width:100%;min-height:8rem;font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:4;border-radius:7px;margin:0;padding:14px 16px;font-size:16px;line-height:1.6;display:block}.plan-review-sheet>span{visibility:hidden}.chapter-plan-dialog .plan-review-sheet>textarea{resize:none;background:var(--white);height:100%;position:absolute;inset:0;overflow:hidden}.plan-review-details{margin-top:16px}.chapter-plan-review-dialog .plan-review-receipt{color:var(--ink-soft);margin:0 0 5px;font-size:13px}.plan-review>details{margin-top:12px}.plan-review>details>summary{color:var(--green);cursor:pointer}@media (max-width:600px){.writer-dialog.chapter-plan-dialog{max-height:calc(min(100dvh, var(--writer-visible-height,100dvh)) - 16px)}.chapter-plan-dialog>header{padding:10px 16px 6px}.chapter-plan-dialog h2{font-size:22px;line-height:1.2}.chapter-plan-dialog .writer-dialog-content{padding:0 16px 6px}.plan-form{gap:14px}.chapter-plan-dialog .plan-idea textarea{font-size:16px}.chapter-plan-dialog .writer-dialog-footer{padding:8px 12px max(8px, env(safe-area-inset-bottom))}.chapter-plan-dialog .writer-dialog-footer .button{white-space:normal;min-width:0;max-width:100%;padding-inline:10px;line-height:1.3}.chapter-plan-dialog .writer-dialog-footer .plan-text-button{padding-inline:2px}}.plan-option-price{color:var(--green,#35503e);white-space:nowrap;font-weight:600}.category-material-actions{color:#536154;gap:8px;font-size:13px;line-height:1.45;display:grid}.category-material-actions>p{margin:0}.category-material-action-buttons{flex-wrap:wrap;align-items:center;gap:7px 10px;display:flex}.category-material-action-buttons .button{min-height:36px}.category-material-picker,.category-material-create{background:#f7f5ee;border:1px solid #d6d0c3;border-radius:7px;gap:8px;padding:10px;display:grid}.category-material-picker-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.category-material-picker label,.category-material-create label{color:#354338;gap:4px;font-weight:650;display:grid}.category-material-picker input,.category-material-create input,.category-material-create textarea,.category-material-create select{box-sizing:border-box;width:100%;color:inherit;font:inherit;background:#fffefa;border:1px solid #bfb7a6;border-radius:6px;padding:8px 10px;font-weight:400}.category-material-create textarea{resize:vertical}.category-material-results{gap:5px;max-height:240px;display:grid;overflow:auto}.category-material-results button{color:#314338;text-align:start;font:inherit;cursor:pointer;background:#fffef9;border:1px solid #ded8ca;border-radius:6px;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding:8px;display:grid}.category-material-results button:hover{background:#fff;border-color:#9baa99}.category-material-results strong,.category-material-results span{overflow-wrap:anywhere;min-width:0}.category-material-results span{color:#5c685d;grid-column:1/-1;font-size:12px}.category-material-results em{color:#2e5b40;font-size:12px;font-style:normal}.category-material-actions [role=alert]{color:#85461f;margin:0}@media (max-width:600px){.category-material-action-buttons .context-text-button{text-align:start;width:100%}.category-material-results button{min-height:44px}}.people-actions{border-top:1px solid #ded9cd;margin-top:18px;padding-top:16px}.people-actions-heading{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.people-actions h4{margin:0;font-size:15px}.people-actions p{margin:5px 0;font-size:13px;line-height:1.45}.people-actions-buttons{flex-wrap:wrap;gap:8px;display:flex}.people-actions-panel{background:#fbfaf6;border:1px solid #ded9cd;border-radius:8px;gap:12px;margin-top:12px;padding:14px;display:grid}.people-actions-panel label{gap:6px;font-size:13px;font-weight:600;display:grid}.people-actions-panel input,.people-actions-panel textarea{color:inherit;font:inherit;background:#fff;border:1px solid #bdb7aa;border-radius:5px;width:100%;padding:9px}.people-actions-panel textarea{resize:vertical}.people-actions-person{border-top:1px solid #e5e0d5;justify-content:space-between;align-items:center;gap:12px;padding-top:11px;display:flex}.people-actions-person>div{gap:3px;min-width:0;display:grid}.people-actions-person span,.people-actions-person small{color:#655f55;overflow-wrap:anywhere}.people-actions-person small{font-size:12px;line-height:1.35}.people-actions-scope{background:#f0f3e5;border-left:3px solid #8e9d68;padding:8px 10px}.people-actions-panel form{gap:12px;display:grid}.people-actions-panel form>.button{justify-self:start}.people-actions-error{color:#9b2323}.people-actions-notice{color:#455e2c}.people-actions-panel small{font-weight:400}@media (max-width:620px){.people-actions-heading,.people-actions-person{flex-direction:column;align-items:stretch}.people-actions-buttons,.people-actions-buttons .button,.people-actions-person .button{width:100%}}.people-actions{scroll-margin-block:10px}.people-actions-buttons .button,.people-actions-form-buttons{align-items:center;gap:8px;display:flex}.people-actions-buttons .button{justify-content:center}.people-actions-form-buttons{flex-wrap:wrap;gap:14px}.people-actions-buttons .button[aria-expanded=true]{color:#294734;background:#e2ebdc;border-color:#64806a}.people-actions-buttons .button[aria-expanded=true] svg{transform:rotate(180deg)}.ai-writing-context{color:#29332c;background:#fffdf7;width:min(820px,100vw - 32px);overflow:hidden}.ai-writing-context .writer-dialog-content{scrollbar-gutter:stable;flex:1;min-height:0}.ai-writing-context .writer-dialog-eyebrow{overflow-wrap:anywhere;font-size:13px;display:block}.ai-writing-context header>div{min-width:0}.ai-writing-context header>button{flex:none;min-width:44px;min-height:44px}.ai-writing-context h3{margin:0;font-size:18px}.ai-writing-context .button{min-height:44px}.ai-writing-context .context-hint,.context-request-model,.context-choice p{color:#536154;margin:5px 0 10px;font-size:14px;line-height:1.5}.context-plan{background:#f6f2e8;border:1px solid #cec5b6;border-radius:10px;margin-bottom:18px;padding:16px 18px}.context-plan-text,.context-source-text,.context-character-fields dd{overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.55}.context-plan-text{max-height:10em;margin:6px 0 12px;overflow:auto}.context-plan-entries{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.context-plan-entry{border:1px solid var(--line-strong);background:var(--white);min-height:64px;color:var(--green);text-align:start;overflow-wrap:anywhere;border-radius:8px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 14px;line-height:1.4;display:grid}.context-plan-entry-icon{color:#795b37;background:#f2ecdf;border-radius:7px;width:32px;height:32px;padding:6px}.context-plan-entry-ai .context-plan-entry-icon{color:#3e604e;background:#e8eee4}.context-plan-entry strong,.context-plan-entry small{display:block}.context-plan-entry strong{color:var(--ink);font-size:15px;font-weight:650}.context-plan-entry small{color:var(--ink-soft);margin-top:2px;font-size:13px}.context-plan-entry:not(:disabled):hover{border-color:var(--green)}.ai-writing-context .context-plan-entry:focus-visible{outline:2px solid var(--green);outline-offset:2px}.context-plan-entry:disabled{opacity:.52}.context-resume-plan{margin-block:8px 2px}.context-plan-entries.with-review-draft{flex-wrap:wrap;align-items:center;gap:4px 18px;margin-top:4px;display:flex}.with-review-draft .context-plan-entry{text-underline-offset:3px;background:0 0;border:0;min-height:44px;padding:0;text-decoration:underline;display:inline-flex}.with-review-draft .context-plan-entry svg,.with-review-draft .context-plan-entry small{display:none}.with-review-draft .context-plan-entry strong{color:var(--green);font-weight:500}.context-plan-actions,.writing-billing-actions,.context-return{flex-wrap:wrap;align-items:center;gap:6px 14px;display:flex}.context-plan label,.context-find>label{margin:10px 0;font-weight:600;display:block}.ai-writing-context textarea,.ai-writing-context input[type=search]{box-sizing:border-box;width:100%;color:inherit;font:inherit;background:#fffefa;border:1px solid #bfb7a6;border-radius:7px;margin:5px 0 10px;padding:10px 12px;display:block}.ai-writing-context textarea{resize:vertical;min-height:115px}.ai-writing-context .context-text-button{color:#304d3b;text-align:start;min-height:40px;font:inherit;text-underline-offset:3px;cursor:pointer;background:0 0;border:0;padding:4px 1px;font-weight:600;text-decoration:underline}.ai-writing-context .context-text-button:disabled{opacity:.52;cursor:default}.context-group-list{margin-bottom:16px}.context-material-heading,.context-group-list-heading,.context-item-row{justify-content:space-between;align-items:center;gap:8px 14px;display:flex}.context-material-heading h3,.context-group-list-heading h4{margin:0}.context-material-browser{background:#fffef9;border:1px solid #ded8ca;border-radius:10px;grid-template-columns:minmax(154px,29%) minmax(0,1fr);margin-top:12px;display:grid;overflow:hidden}.context-category-nav{background:#f4f1e8;border-right:1px solid #ded8ca;align-content:start;gap:3px;padding:8px;display:grid}.context-category-nav button{color:#314338;width:100%;min-height:40px;font:inherit;text-align:start;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:6px;justify-content:space-between;align-items:center;gap:8px;padding:8px 9px;font-size:14px;font-weight:600;display:flex}.context-category-nav button:hover{background:#ebe5d7}.context-category-nav button.is-active{color:#1f4c35;background:#fffef9;border-color:#a7b3a4;box-shadow:0 1px 2px #1f362714}.context-category-nav b{color:#526351;text-align:center;background:#e1e5da;border-radius:999px;min-width:22px;padding:1px 6px;font-size:12px;line-height:1.5}.context-category-nav .is-active b{color:#fff;background:#426450}.context-group{min-width:0}.context-group-list-heading{border-bottom:1px solid #e4ded1;padding:12px 14px 8px}.context-group-list-heading>div{min-width:0}.ai-writing-context summary{cursor:pointer;overflow-wrap:anywhere;align-content:center;min-height:38px;font-weight:650;line-height:1.4}.context-group-count{color:#526351;font-size:13px}.context-group-items{background:#fffef9;margin:0;padding:0 14px 12px}.context-item{border-bottom:1px solid #e1dbce;padding:9px 0}.context-item:last-child{border-bottom:0}.context-item-label{min-width:0}.context-item-label strong{overflow-wrap:anywhere;color:#29392e;display:block}.context-item-label .context-item-excerpt{color:#465447;overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:2px;font-size:13px;line-height:1.42;display:-webkit-box;overflow:hidden}.context-item-label .context-item-source{color:#667066;overflow-wrap:anywhere;margin-top:3px;font-size:12px;line-height:1.35;display:block}.context-item-toggle{color:#304d3b;min-height:32px;font:inherit;cursor:pointer;background:#fffef9;border:1px solid #b9c2b3;border-radius:5px;flex:none;padding:4px 7px;font-size:13px;font-weight:650}.context-item-toggle:disabled{opacity:.52;cursor:default}.context-category-nav button:disabled{cursor:default;opacity:.6}.context-item[data-expanded]{background:linear-gradient(90deg,#0000,#f8f7f0 68%,#0000)}.context-source-text{max-height:320px;margin-bottom:8px;overflow:auto}.context-character-fields{gap:9px;margin:6px 0 12px;display:grid}.context-character-fields dt{font-size:14px;font-weight:650}.context-character-fields dd{margin:0}.context-character-fields small{color:#536154;display:block}.context-category-actions{border-top:1px dashed #cfc8b8;margin-top:10px;padding-top:10px}.context-find,.context-coverage{border:1px solid #d8d1c4;border-radius:8px;margin:10px 0;padding:6px 14px}.context-find>summary span,.context-coverage>summary span{color:#576355;margin-inline-start:6px;font-size:13px;font-weight:400}.context-choice{border-top:1px solid #ddd5c5;justify-content:space-between;align-items:flex-start;gap:8px 14px;padding:10px 0;display:flex}.context-choice>div{overflow-wrap:anywhere;flex:1;min-width:0}.ai-writing-context .context-choice>label{white-space:nowrap;cursor:pointer;flex-direction:row;align-items:center;gap:8px;min-height:44px;font-weight:600;display:inline-flex}.ai-writing-context .context-choice input[type=checkbox]{accent-color:#344f40;width:18px;height:18px;margin:0;display:inline-block}.context-technical{color:#505f50;margin:12px 0}.context-technical pre{color:#29332c;white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f1e7;border-radius:6px;max-height:320px;padding:12px;font-size:12px;overflow:auto}.context-alert,.context-availability,.context-conflict,.context-success{background:#f6edda;border-radius:6px;margin:8px 0;padding:10px 12px}.context-success{color:#2c5a3e;background:#edf3e8}.context-required-recovery{padding:0;list-style:none}.context-required-recovery li{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.context-return{background:#e7eddf;justify-content:space-between;padding:10px 16px}.ai-writing-context .writer-dialog-footer{background:#f6f2e8;border-top:1px solid #c9c1af;flex:none;align-items:center;gap:8px;padding:10px 18px;display:flex}.context-footer-copy{margin-inline-end:auto}.ai-writing-context .writer-dialog-footer .button{white-space:normal}@media (max-width:600px){.ai-writing-context{width:calc(100vw - 16px)}.ai-writing-context h2{font-size:22px}.context-plan{padding:12px}.context-plan-entries{grid-template-columns:minmax(0,1fr);gap:8px}.context-choice{flex-direction:column;gap:0}.context-material-browser{grid-template-columns:minmax(0,1fr)}.context-category-nav{border-bottom:1px solid #ded8ca;border-right:0;grid-template-columns:repeat(5,minmax(116px,1fr));grid-auto-flow:column;overflow-x:auto}.context-category-nav button{min-width:116px}.context-group-items{padding-inline:10px}.context-find>summary span,.context-coverage>summary span{margin:2px 0 0 16px;display:block}.ai-writing-context .writer-dialog-footer{padding:4px 12px max(8px, env(safe-area-inset-bottom));grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:2px 8px;display:grid}.context-footer-copy{grid-column:1/-1}.ai-writing-context .context-footer-copy .context-text-button{min-height:30px;font-size:13px}.ai-writing-context .writer-dialog-footer .button{min-width:0;padding:7px 8px;font-size:13px}}.context-coverage{background:#f7f4eb;border:0;border-left:3px solid #b09e79;border-radius:0;padding:6px 12px;font-size:14px}.context-coverage p{margin:3px 0;line-height:1.5}.context-source-edit{text-align:start;align-items:center;gap:8px;margin:0 0 8px;display:inline-flex}.context-source-edit svg{flex:none}.context-source-editor{background:#fffdf7;border:1px solid #cec7b5;border-radius:8px;margin:8px 0;padding:12px}.context-source-editor label{font-weight:600;display:block}.context-source-editor textarea{font-weight:400}.context-source-editor select,.context-source-editor input:not([type=checkbox]){box-sizing:border-box;width:100%;min-height:44px;color:inherit;font:inherit;background:#fffefa;border:1px solid #bfb7a6;border-radius:7px;margin:5px 0 10px;padding:8px 12px;display:block}.context-source-editor .context-source-checkbox{align-items:center;gap:8px;min-height:44px;display:flex}.context-item>.context-text-button{display:block}.context-time-plan{margin:6px 0 10px}.context-prose-editor{box-sizing:border-box;overflow-wrap:anywhere;background:#fffefa;border:1px solid #bfb7a6;border-radius:7px;min-height:8em;max-height:min(320px,42vh);margin:5px 0 10px;padding:10px 12px;overflow:auto}.context-plan-heading,.context-plan-heading .button{align-items:center;gap:8px 12px;display:flex}.context-plan-heading{flex-wrap:wrap;justify-content:space-between}.context-plan .chapter-plan-editor-actions{margin:10px 0 4px}.context-plan .chapter-plan-fields textarea{min-height:8em}.context-plan-feedback{color:var(--green);margin:8px 0 0}.context-returned-source{background:#f6f2e8;border-radius:8px;margin:8px 0 14px;padding:10px 14px}.context-returned-source h4{margin:0;font-size:14px}.context-returned-source .context-item{margin:0}.context-return{justify-content:flex-start;gap:6px 14px}.context-return .button{align-items:center;gap:5px;min-height:44px;display:inline-flex}.context-return>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.ai-writing-context.chapter-draft-preparation{width:min(1040px,100vw - 32px)}.draft-plan{padding:12px 16px}.draft-plan-top,.draft-material-tools,.draft-plan-top .button{align-items:center;gap:8px;display:flex}.draft-plan-top{flex-wrap:wrap;gap:8px 12px}.draft-plan-icon{color:#776646;flex:none}.draft-plan-label{flex:1;min-width:9rem}.draft-plan-label h3{font-size:16px}.draft-plan-label .context-hint{margin:2px 0 0;font-size:13px}.draft-plan-top .button{min-height:38px;padding:6px 12px}.draft-plan-ai{background:#e9efe4}.draft-plan-ai small{border-inline-start:1px solid #b2bdad;padding-inline-start:8px}.draft-material-tools{flex-wrap:wrap;gap:4px 16px}.draft-material-tools button{min-height:36px;color:var(--green);font:inherit;text-underline-offset:3px;cursor:pointer;background:0 0;border:0;align-items:center;gap:5px;padding:5px 0;font-size:14px;text-decoration:underline;display:inline-flex}.draft-extra-panel{background:#f8f9f2;border:1px solid #b8c6b4;border-radius:6px;margin:8px 0 14px;padding:10px 14px}.draft-extra-panel h4{margin:0}.draft-request-brief{color:var(--ink);margin:10px 0 0;font-size:14px}.draft-request-brief>div{border-top:1px solid #ccd4c6;grid-template-columns:minmax(8rem,23%) minmax(0,1fr);gap:6px 12px;padding:7px 0;display:grid}.draft-request-brief dt{font-weight:650}.draft-request-brief dd,.draft-request-brief p{overflow-wrap:anywhere;margin:0}.draft-request-brief dd p+p{margin-top:4px}.draft-request-advanced.context-technical{border-top:1px solid #ccd4c6;margin:4px 0 0}.draft-selection-count{color:#425844;margin:4px 0 12px;font-size:14px}@media (max-width:520px){.draft-request-brief>div{grid-template-columns:1fr;gap:2px}}.draft-extra-panel pre{max-height:min(36vh,320px)}.context-footer-copy small{color:#536154;font-size:12px;display:block}.context-footer-copy .context-text-button{min-height:30px}.context-required-recovery .context-text-button{font-size:13px}@media (max-width:620px){.ai-writing-context.chapter-draft-preparation{width:calc(100vw - 12px)}.draft-plan-label{min-width:7rem}.draft-plan-icon{display:none}.context-footer-copy small{font-size:11px}.draft-material-tools{gap:3px 10px}.draft-plan-top .button{padding:6px 8px}.draft-material-tools button{font-size:13px}}.context-material-heading{margin-bottom:12px}.context-category-nav button>span{flex:1}.context-category-nav button>svg{flex:none}.context-category-nav button.is-active{box-shadow:none;background:#e2ebdc;border-color:#a8baa4}.context-category-nav b,.context-category-nav .is-active b{color:#405b46;background:0 0;min-width:1.5ch;padding:0}.context-group-list-heading{background:#f2f4e9;justify-content:space-between;align-items:center;gap:10px;display:flex}.context-group-items{grid-template-columns:minmax(0,1fr) auto;column-gap:12px;display:grid}.context-group-items>*{grid-column:1/-1}.context-group-items>.context-item{grid-template-columns:subgrid;border-color:#bfc9b8;align-items:start;row-gap:3px;padding:12px 0;display:grid}.context-item>*{grid-column:1/-1;min-width:0}.context-item>.context-item-row{grid-area:1/1;align-items:flex-start}.context-item-row>.context-item-toggle,.context-item>.context-source-edit{min-height:34px}.context-item-row>.context-item-toggle{min-inline-size:3.6em}.context-item>.context-source-edit{grid-area:1/2;justify-self:end;margin:0;padding:5px 10px}.context-item .context-item-excerpt{white-space:pre-line;font-size:14px;line-height:1.46}.context-item-toggle{text-underline-offset:2px;color:#536955;background:0 0;border:0;font-weight:500;text-decoration:underline}.context-item[data-editing] .context-item-excerpt,.context-item[data-editing] .context-item-toggle{display:none}.context-source-editor .draft-source-destination{color:#415e4a;margin:0 0 8px;font-size:13px}.context-material-browser .people-actions{border:0;margin:0;padding:10px 0 0}.context-group-items>.context-item:has(+.context-category-actions){border-bottom:1px solid #bfc9b8}@media (max-width:600px){.context-category-nav svg{display:none}.context-category-nav button{min-width:0}.context-item>.context-source-edit{font-size:13px}}.chapter-draft-preparation .context-group-list-heading>div{justify-content:space-between;align-items:baseline;gap:12px;width:100%;display:flex}.chapter-draft-preparation .context-group-list-heading .context-group-count{margin:0}.chapter-draft-preparation .context-category-actions{border-top:0;margin:0;padding:9px 0}.chapter-draft-preparation .context-category-actions .people-actions{padding:0}.chapter-draft-preparation .context-item .context-success{margin:3px 0 0;padding:5px 8px}.writer-shell .writing-model-row{background:#f8f6f0;border-bottom:1px solid #deded3;flex-wrap:wrap;align-items:center;gap:9px;padding:8px 18px;font-size:12px;display:flex}.writing-model-row select{max-width:240px;font:inherit;background:#fffefb;border:1px solid #c9cebf;border-radius:6px;padding:6px}.writing-model-row a{color:#294a3f;margin-left:auto}.writer-shell .chapter-written{padding-top:12px;padding-bottom:6px}.writer-shell .writing-plan-card.is-written{flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0;padding:8px 10px;display:flex}.writing-plan-card.is-written .writing-primary-action{margin:0}.writing-plan-card.is-written .writing-primary-action .button{min-height:32px;padding:8px 10px;font-size:12px}.writing-plan-card.is-written .outline-details-toggle{margin:0}.writing-plan-card.is-written .writing-state-line{width:100%;margin-top:0;padding-top:5px;font-size:11px}.writing-plan-card.is-written>label,.writing-plan-card.is-written>textarea,.writing-plan-card.is-written>small{flex-basis:100%}.writer-shell .writing-plan-card.is-new{margin-top:8px}.writer-shell .writing-plan-card.is-new textarea{resize:vertical;min-height:130px}.writer-shell .manuscript-editor{padding-top:30px;font-size:18px}.writer-shell .ai-sidebar-footer{position:sticky;bottom:0}.writer-dialog{max-height:min(90dvh,var(--writer-visible-height,90dvh));overflow:auto}.writer-dialog-backdrop{z-index:150}@media (max-width:820px){.writer-shell .mobile-writer-nav{z-index:45;padding:4px 12px calc(4px + env(safe-area-inset-bottom));height:var(--writer-mobile-nav-height);border-top:1px solid #d5d6ca;justify-content:space-around;position:fixed;bottom:0;left:0;right:0}.writer-shell .mobile-writer-nav button{justify-content:center;min-width:60px;min-height:44px;font-size:12px}.writer-shell .writing-model-row{gap:6px;padding:6px 16px}.writing-model-row select{max-width:210px;font-size:16px}.writer-shell .mobile-book-capacity{display:none}.writer-shell .workspace-tools-row{min-height:30px;padding:0 16px}.writer-shell .chapter-written{padding:8px 16px 4px}.writer-shell .chapter-written .chapter-title-label-row{margin-top:3px}.writer-shell .chapter-written .chapter-title-label-row span{display:none}.writer-shell .chapter-written .chapter-title-feedback{min-height:18px}.writer-shell .chapter-written>input{margin-top:0;font-size:25px}.writer-shell .chapter-written .chapter-nav-buttons button{height:30px;min-height:30px}.writer-shell .writing-plan-card.is-written .writing-state-line{display:none}.writer-shell .writing-plan-card.is-written .writing-primary-action .button{padding:7px;font-size:11px}.writer-shell .writing-plan-card.is-written .outline-details-toggle{font-size:12px}.writer-shell .manuscript-editor{padding:22px 24px 90px;font-size:18px;line-height:1.8}.writer-shell .selection-action-bar{bottom:66px}.writer-shell .ai-sidebar,.writer-shell .chapter-sidebar{height:var(--writer-visible-height,100dvh)}.writer-shell textarea,.writer-shell input{font-size:16px}.writer-shell .editor-paper{margin-bottom:90px}.writer-shell .writing-plan-card.is-new .writing-state-line{font-size:11px}.writer-shell .writing-plan-card.is-new textarea{min-height:125px}.writer-dialog-backdrop{padding:8px}.writer-dialog{max-height:calc(var(--writer-visible-height,100dvh) - 16px)}}.writer-shell .writing-plan-card.is-written .outline-details-toggle{flex:0 auto;width:auto}.legacy-tool-label{color:#696e61;padding:4px 16px;font-size:12px}@media (max-width:820px){.writer-shell{--writer-mobile-nav-height:56px;max-height:var(--writer-visible-height,100dvh)}.writer-shell .editor-column{height:calc(100% - var(--writer-mobile-nav-height))}.writer-shell .mobile-writer-nav{bottom:max(0px, calc(100dvh - var(--writer-visible-height,100dvh)))}}.writer-shell [hidden]{display:none!important}.workspace-navigation{background:#f5f2eb;border-bottom:1px solid #d8d5ca;flex:none;grid-template-columns:repeat(6,minmax(0,1fr));padding:0 16px;display:grid}.workspace-navigation button{color:#50584a;font:inherit;background:0 0;border:0;border-bottom:3px solid #0000;min-height:52px;padding:10px 8px;font-size:14px}.workspace-navigation button[aria-current=page]{color:#a54e32;background:#f1ede4;border-bottom-color:#b95031}.workspace-context{background:#f5f2eb;border-bottom:1px solid #dedbd1;flex-wrap:wrap;flex:none;align-items:center;gap:16px;padding:8px 22px;font-size:12px;display:flex}.workspace-context span:first-child{flex:1}.workspace-context button{color:#52623e;background:0 0;border:0;text-decoration:underline}.workspace-library,.workspace-memory,.workspace-settings{background:#f5f2eb;flex:1;min-height:0;padding:24px max(20px,50% - 580px);overflow:auto}.workspace-memory h2,.workspace-materials h2{margin:0 0 8px;font-size:24px}.workspace-memory>p,.workspace-materials>header>p{color:#66705d;line-height:1.6}.workspace-materials{padding:0;overflow:visible}.workspace-library-controls{flex-wrap:wrap;align-items:center;gap:20px;margin:22px 0;display:flex}.workspace-library-controls label:first-child{flex:1;min-width:180px}.workspace-library-columns{grid-template-columns:minmax(220px,32%) minmax(0,1fr);align-items:start;gap:24px;display:grid}.workspace-library-columns nav{gap:6px;display:grid}.workspace-library-columns nav>button{text-align:left;background:#fffdf9;border:1px solid #dcd9cf;gap:5px;margin:0;padding:14px;display:grid}.workspace-library-columns nav>button[aria-pressed=true]{background:#e8ecd9;border-color:#98a879}.workspace-library-columns nav>button span{color:#66705d;font-size:12px}.workspace-library-columns nav small{overflow-wrap:anywhere}.workspace-material-detail,.workspace-plan-list article,.workspace-empty{background:#fffdf9;border:1px solid #dedbd1;border-radius:10px;min-width:0;padding:22px}.workspace-material-detail h3{margin-top:0}.workspace-material-detail>p{white-space:pre-wrap;line-height:1.8}.workspace-material-detail small{color:#66705d;display:block}.workspace-material-detail details{border-top:1px solid #dedbd1;margin-top:20px;padding-top:18px}.workspace-plan-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.workspace-plan-list h3{font-size:16px}.workspace-pagination,.workspace-search-pages{flex-wrap:wrap;align-items:center;gap:8px;padding:10px 0;font-size:12px;display:flex}.workspace-search-pages{padding:10px 14px}.workspace-search-pages button,.workspace-locate{color:#52623e;background:#fffdf9;border:1px solid #dedbd1;border-radius:5px;padding:6px}.workspace-locate{margin:0 14px 10px}.workspace-pinned{overflow-wrap:anywhere;padding:18px;font-size:14px;line-height:1.7}.workspace-pinned p{white-space:pre-wrap}.workspace-pinned small{display:block}.workspace-pinned button{background:#fffdf9;border:1px solid #dedbd1;margin-top:16px;padding:8px}.workspace-settings-content{background:#fffdf9;border:1px solid #dedbd1;border-radius:12px;max-width:1000px;margin:auto}.workspace-settings-content>div{max-height:none}.workspace-settings-content nav{position:static}.workspace-memory .writer-memory-tools{border:0;max-height:none;padding:0}.writer-shell .chapter-open-button small{white-space:normal;overflow-wrap:anywhere;line-height:1.5}@media (max-width:1100px){.writer-shell .writer-grid.has-right{grid-template-columns:200px minmax(0,1fr) 280px}.writer-shell .writer-grid.no-left.has-right{grid-template-columns:0 minmax(0,1fr) 280px}}@media (max-width:820px){.workspace-navigation{grid-template-columns:repeat(3,minmax(0,1fr));padding:0 8px}.workspace-navigation button{min-height:44px;font-size:12px}.workspace-context{gap:6px;padding:8px 14px;font-size:12px}.workspace-context span{overflow-wrap:anywhere}.workspace-context span:nth-child(2){display:none}.workspace-library,.workspace-memory,.workspace-settings{padding:18px 14px 80px}.workspace-library-columns,.workspace-plan-list{grid-template-columns:1fr}.workspace-library-controls{gap:8px}.workspace-material-detail{padding:16px}.workspace-settings-content{border:0}.workspace-library-columns nav>button{min-height:44px}.writer-shell .chapter-list-tools input{min-width:0}.writer-shell .workspace-search-pages button{min-height:40px}.workspace-materials input{font-size:16px}}.workspace-review{display:contents}body:has(>.writer-shell){flex-direction:column;height:100dvh;display:flex;overflow:hidden}body:has(>.writer-shell)>[role=status]{flex:none}body>.writer-shell{flex:1;height:auto;min-height:0}.workspace-writing-options{background:#f8f6f0;border-bottom:1px solid #dedbd1;flex:none}.workspace-writing-options>summary{color:#50584a;cursor:pointer;padding:10px 18px;font-size:13px}.workspace-writing-options>summary span{color:#72786c}.writer-shell .editor-chapter-head{padding:14px 24px 12px}.writer-shell .chapter-title-label-row{margin-top:6px}.writer-shell .writing-plan-card{margin:6px 0 0;padding:8px 12px}.writer-shell .writing-state-line{margin-top:5px;padding-top:5px}.writer-shell .writing-primary-action{margin-bottom:0}@media (max-width:640px){.writer-shell .editor-chapter-head{padding:12px 16px}.workspace-writing-options>summary{padding:10px 16px}}@media (max-width:600px){.writer-shell .writer-export-extension{display:none}.writer-shell .writer-actions .writer-export{white-space:nowrap;flex-shrink:0}.writer-shell .writer-actions{grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr) minmax(0,1fr);gap:6px;width:100%;display:grid}.writer-shell .writer-actions>button,.writer-shell .writer-actions .writer-credits,.writer-shell .writer-actions .writer-save{gap:4px;width:100%;min-width:0;min-height:44px;padding:6px;font-size:11px}.writer-shell .writer-credit-menu,.writer-shell .writer-save-group{min-width:0}.writer-shell .writer-actions .writer-export svg,.writer-shell .writer-actions .writer-credits svg{display:none}}.writer-mobile-actions,.workspace-mobile-switch{display:none}@media (max-width:640px){.writer-shell .writer-topbar{flex-wrap:nowrap;gap:6px;height:68px;min-height:68px;padding:6px 10px}.writer-shell .writer-brand-area{flex:auto;gap:3px;width:auto;min-width:0}.writer-shell .writer-book-title strong{max-width:100%;font-size:14px;display:block}.writer-shell .writer-mobile-actions{flex:none;align-items:center;gap:6px;display:flex}.writer-mobile-actions>div{justify-items:center;display:grid}.writer-mobile-actions small{font-size:10px;line-height:1.2}.writer-mobile-actions button{border:1px solid var(--line);background:var(--paper);min-width:44px;min-height:44px;color:var(--green);border-radius:6px;padding:5px 7px;font-weight:600}.writer-mobile-actions>div>button{white-space:normal;width:78px;line-height:1.15}.writer-mobile-actions>button{min-height:44px}.writer-shell .writer-actions{border:1px solid var(--line);background:var(--paper);z-index:30;border-radius:8px;width:min(350px,100vw - 16px);padding:12px;display:none;position:absolute;top:100%;right:8px;box-shadow:0 8px 25px #263b2f26}.writer-shell .writer-actions.is-open{flex-wrap:wrap;gap:10px;display:flex}.writer-shell .writer-actions.is-open button{width:auto;min-width:44px;min-height:44px;font-size:13px}.writer-shell .writer-actions .writer-save span{display:inline}.writer-shell .workspace-navigation{display:none}.writer-shell .workspace-mobile-switch{border-bottom:1px solid var(--line);background:var(--paper);color:var(--ink-soft);flex:none;justify-content:space-between;align-items:center;gap:12px;padding:5px 12px;font-size:12px;display:flex}.writer-shell .workspace-mobile-switch select{border:1px solid var(--line);background:var(--paper);min-width:0;min-height:44px;color:var(--green);border-radius:6px;flex:1;padding:6px 10px}.writer-shell .workspace-context{min-height:30px;padding:4px 12px}.workspace-context button{min-height:34px}.writer-shell .workspace-library,.writer-shell .workspace-memory,.writer-shell .workspace-settings{padding-top:12px}}.writer-dialog-backdrop:has(.writing-quick-guide){background:#262a2455}.writer-shell .writing-quick-guide{width:min(720px,100%);max-height:calc(var(--writer-visible-height,100dvh) - 40px);border-radius:12px}.writer-shell .writing-quick-guide>header{border-bottom:0;align-items:flex-start;padding:24px 28px 12px}.writer-shell .writing-quick-guide>header button{min-width:44px;min-height:44px}.writer-shell .writing-quick-guide .writer-dialog-eyebrow{color:var(--terracotta);letter-spacing:.16em;text-transform:uppercase;margin-bottom:8px;font-size:11px;font-weight:700;display:block}.writer-shell .writing-quick-guide h2{font-size:30px;line-height:1.2}.writer-shell .writing-quick-guide .writer-dialog-content{padding:0 28px 20px}.writer-shell .writing-quick-guide .quick-guide-intro{color:var(--ink-soft);margin:0 0 14px}.quick-guide-steps{margin:0 0 16px;padding:0;list-style:none}.quick-guide-steps li{border-bottom:1px solid var(--line);align-items:flex-start;gap:16px;padding:16px 0;display:flex}.quick-guide-number{background:var(--terracotta);width:36px;height:36px;color:var(--white);border-radius:50%;flex:none;place-items:center;font-size:18px;font-weight:600;display:grid}.quick-guide-save-icon{vertical-align:-2px;color:var(--green);display:inline}.writer-shell .writing-quick-guide h3{margin:0 0 5px;font-size:16px;font-weight:650;line-height:1.4}.writer-shell .writing-quick-guide .quick-guide-steps p{color:var(--ink-soft);margin:0}.quick-guide-workspaces{border:1px solid var(--line);background:var(--paper);border-radius:8px}.quick-guide-workspaces>summary{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;min-height:52px;padding:12px 16px;font-size:15px;font-weight:650;list-style:none;display:flex}.quick-guide-workspaces>summary::-webkit-details-marker{display:none}.quick-guide-workspaces>summary svg{flex:none;transition:transform .15s}.quick-guide-workspaces[open]>summary svg{transform:rotate(180deg)}.quick-guide-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 12px;display:grid}.quick-guide-entry{border:1px solid var(--line);background:var(--white);border-radius:7px;align-items:flex-start;gap:10px;min-width:0;padding:12px;display:flex}.quick-guide-icon{background:var(--paper-deep);width:34px;height:38px;color:var(--green);border-radius:6px;flex:none;place-items:center;display:grid}.writer-shell .writing-quick-guide h4{margin:0 0 4px;font-size:14px;font-weight:650;line-height:1.4}.writer-shell .writing-quick-guide .quick-guide-entry p{color:var(--ink-soft);margin:0;font-size:13px;line-height:1.5}.writer-shell .writing-quick-guide :is(.quick-guide-separate-save,.quick-guide-rewrite-help){color:var(--ink-soft);margin:12px;font-size:12px}.quick-guide-status{background:var(--green-pale);border:1px solid var(--line);border-radius:8px;align-items:flex-start;gap:12px;margin-top:16px;padding:14px 16px;display:flex}.quick-guide-status.is-paused{background:var(--terracotta-pale)}.quick-guide-status>svg{color:var(--terracotta);flex:none}.quick-guide-status strong{font-size:13px;line-height:1.5;display:block}.writer-shell .writing-quick-guide .quick-guide-status p{margin:2px 0 0;font-size:13px;line-height:1.5}.writer-shell .writing-quick-guide .quick-guide-error{color:#8d342a;margin:16px 0 0}.writing-quick-guide .writer-dialog-footer{border-top:1px solid var(--line);flex-direction:row-reverse;flex:none;justify-content:space-between;align-items:center;gap:12px;padding:16px 28px;display:flex}.writing-quick-guide .writer-dialog-footer .button{justify-content:center;gap:10px;min-height:46px;display:flex}.quick-guide-close{min-height:44px;color:var(--green);font:inherit;background:0 0;border:0;padding:8px;font-size:14px}@media (max-width:640px){.writer-shell .writing-quick-guide{max-height:calc(var(--writer-visible-height,100dvh) - 24px)}.writer-shell .writing-quick-guide>header{padding:20px 18px 12px}.writer-shell .writing-quick-guide h2{font-size:28px}.writer-shell .writing-quick-guide .writer-dialog-content{padding:0 18px 16px}.writer-shell .writing-quick-guide .quick-guide-intro,.writer-shell .writing-quick-guide .quick-guide-steps p{font-size:15px}.quick-guide-steps li{gap:12px;padding:14px 0}.quick-guide-number{width:32px;height:32px;font-size:16px}.quick-guide-entry-grid{grid-template-columns:1fr}.writing-quick-guide .writer-dialog-footer{padding:12px 18px max(12px,env(safe-area-inset-bottom));flex-direction:column;gap:4px}.writing-quick-guide .writer-dialog-footer .button{width:100%;min-height:48px}}.writer-shell{--paper:#f7f3ea;--paper-deep:#e8e2d5;--white:#fffdf8;--ink:#262a24;--ink-soft:#5c6559;--ink-faint:#5c6559;--green:#344c3d;--green-2:#253e2e;--green-pale:#e0e7da;--terracotta:#896136;--terracotta-dark:#896136;--terracotta-pale:#f0e3ce;--line:#ddd6c8;--line-strong:#beb8a8;background:var(--paper-deep);color:var(--ink)}.writer-shell .writer-topbar{background:var(--white);border-bottom:1px solid var(--line-strong)}.writer-shell .writer-book-title strong{color:var(--ink)}.writer-shell :is(button,a,summary):focus-visible{outline-offset:3px;outline:3px solid #896136}.writer-shell :is(button,a,summary):hover:not(:disabled){background-color:#f0ebdf}.writer-shell .button-primary{background:var(--green);border-color:var(--green);color:var(--white)}.writer-shell .button-primary:hover:not(:disabled){background:var(--green-2)}.writer-shell .button-secondary{background:var(--white);border-color:var(--line-strong);color:var(--green)}.writer-shell .workspace-navigation{background:var(--paper);border-color:var(--line-strong);gap:9px;padding:12px 16px}.writer-shell .workspace-navigation button{text-align:left;background:var(--white);min-width:0;min-height:76px;color:var(--ink);border:1px solid var(--line-strong);border-radius:8px;align-items:center;gap:10px;padding:11px 12px;display:flex;box-shadow:0 2px 3px #262a2405}.writer-shell .workspace-entry-icon{width:31px;height:35px;color:var(--green);background:#f0ebdf;border-radius:6px;flex:none;place-items:center;display:grid}.writer-shell .workspace-entry-copy{min-width:0}.writer-shell .workspace-entry-copy strong{font-size:14px;font-weight:650;display:block}.writer-shell .workspace-entry-copy small{color:var(--ink-soft);margin-top:4px;font-size:12px;line-height:1.4;display:block}.writer-shell .workspace-navigation button[aria-current=page]{background:var(--terracotta);color:var(--white);border-color:var(--terracotta);box-shadow:0 3px 8px #89613620}.writer-shell .workspace-navigation button[aria-current=page] :is(.workspace-entry-icon,small){color:var(--white)}.writer-shell .workspace-navigation button[aria-current=page] .workspace-entry-icon{background:#ffffff1c}.writer-shell .workspace-navigation button[aria-current=page]:hover{background:#77512b}.writer-shell .workspace-context{background:var(--paper-deep);color:var(--ink-soft);border:0;padding:10px 20px}.writer-shell .workspace-context button{color:var(--green)}.writer-shell .chapter-sidebar{border:1px solid var(--line-strong);background:#f0ebdf;border-radius:9px}.writer-shell .ai-sidebar{border:1px solid var(--line-strong);background:#edf0e7;border-radius:9px}.writer-shell :is(.chapter-sidebar-head,.ai-sidebar-head,.paper-editor-head){border-bottom:1px solid var(--line-strong);height:auto;min-height:54px;padding:10px 14px}.writer-shell .chapter-sidebar-head{background:var(--paper-deep)}.writer-shell .ai-sidebar-head{background:var(--green-pale)}.writer-shell .chapter-sidebar-head>span,.writer-shell .paper-editor-head strong{letter-spacing:0;color:var(--green);align-items:center;gap:8px;font-size:14px;font-weight:650;display:flex}.writer-shell .paper-editor-head{background:var(--white);flex:none;justify-content:space-between;align-items:center;gap:12px;display:flex}.writer-shell .paper-editor-head>span{color:var(--ink-soft);font-size:12px}.writer-shell .chapter-stats-details{font-size:12px}.writer-shell .chapter-list li{border:1px solid #0000;margin:5px 0}.writer-shell .chapter-list li.active{background:var(--terracotta-pale);box-shadow:inset 3px 0 var(--terracotta);border-color:#c1a47d}.writer-shell .chapter-list li.active .chapter-open-button :is(strong,span){color:var(--terracotta-dark)}.writer-shell :is(.chapter-sidebar-add,.ai-sidebar-footer){background:inherit;border-color:var(--line-strong)}.writer-shell :is(.chapter-list-tools input,.chapter-list-tools select){background:var(--white);border-color:var(--line-strong);border-radius:6px}.writer-shell .editor-column{background:var(--white);border:1px solid var(--line-strong);border-radius:9px;box-shadow:0 4px 14px #262a2409}.writer-shell .workspace-writing-options,.writer-shell .writing-model-row{background:var(--paper);border-color:var(--line)}.writer-shell .workspace-writing-options>summary{color:var(--ink-soft);padding:8px 18px;font-size:12px}.writer-shell .editor-chapter-head{background:var(--white);padding:12px 22px}.writer-shell .chapter-title-label-row{font-size:12px}.writer-shell :is(.editor-paper,.editor-toolbar){background:var(--white);box-shadow:none}.writer-shell .editor-toolbar{border-color:var(--line);background:#f7f3ea;border-left:0;border-right:0}.writer-shell .editor-toolbar button{border:1px solid #0000}.writer-shell .editor-toolbar button.active{background:var(--green-pale);color:var(--green);border-color:#b3bda9}.writer-shell .manuscript-editor{color:var(--ink);padding-left:clamp(28px,5vw,64px);padding-right:clamp(28px,5vw,64px)}.writer-shell .writing-plan-card{background:var(--paper);border-color:var(--line-strong);border-radius:7px}.writer-shell .writing-plan-card .writing-state-line{border-color:var(--line);color:var(--ink-soft)}.writer-shell .workbench-tabs{background:var(--green-pale);border:1px solid #b3bda9;border-radius:7px;gap:4px;margin:12px;padding:4px}.writer-shell .workbench-tabs button{color:var(--ink-soft);background:0 0;border-color:#0000;flex:1;min-height:40px;margin:0}.writer-shell .workbench-tabs button[aria-pressed=true]{background:var(--white);color:var(--green);border-color:#b3bda9;font-weight:650;box-shadow:0 1px 3px #262a240a}.writer-shell .workbench-optional-tools{border-bottom:1px solid #b3bda9;padding:8px 14px 16px}.writer-shell .workbench-optional-tools button{background:var(--white);min-height:48px;color:var(--green);border-color:#b3bda9;padding:12px;font-weight:600}.writer-shell .workbench-optional-tools small{color:var(--ink-soft)}.writer-shell .ai-panel-tabs button{background:var(--white);border-color:#b3bda9}.writer-shell .ai-panel-tabs [aria-selected=true]{background:var(--green);color:var(--white);border-color:var(--green)}.writer-shell .ai-icon{color:var(--green);background:0 0}.writer-shell :is(.workspace-library,.workspace-memory,.workspace-settings){background:var(--paper-deep);padding:20px max(20px,50% - 580px)}.writer-shell .workspace-materials>header{background:var(--white);border:1px solid var(--line-strong);border-radius:9px;padding:18px 22px}.writer-shell .workspace-materials>header h2{color:var(--green);margin-bottom:6px}.writer-shell .workspace-library-controls{background:var(--paper);border:1px solid var(--line-strong);border-radius:8px;margin:14px 0;padding:16px 18px}.writer-shell .workspace-library-controls label{color:var(--ink-soft);font-size:13px}.writer-shell .workspace-library-columns{gap:16px}.writer-shell .workspace-library-columns nav{border:1px solid var(--line-strong);background:#f0ebdf;border-radius:9px;padding:12px}.writer-shell .workspace-library-columns nav>button{border-color:var(--line);background:var(--white);border-radius:6px;padding:14px}.writer-shell .workspace-library-columns nav>button[aria-pressed=true]{background:var(--terracotta-pale);box-shadow:inset 3px 0 var(--terracotta);border-color:#c1a47d}.writer-shell .workspace-library-columns nav>button span{color:var(--ink-soft)}.writer-shell :is(.workspace-material-detail,.workspace-plan-list article,.workspace-empty){background:var(--white);border-color:var(--line-strong)}.writer-shell .workspace-material-detail h3{color:var(--green);border-bottom:1px solid var(--line);padding-bottom:16px}.writer-shell .workspace-material-detail>div>button{background:var(--white);min-height:40px;color:var(--green);border-color:var(--line-strong)}.writer-shell .workspace-material-detail>div>button:last-child{background:var(--green);color:var(--white);border-color:var(--green)}.writer-shell .workspace-settings-content{background:var(--white);border-color:var(--line-strong);overflow:hidden}.writer-shell .workspace-settings-content :is(input,select,textarea),.writer-shell .writing-materials input:not([type=checkbox]){border-color:var(--line-strong);background:var(--white);color:var(--ink)}.writer-shell .workspace-settings-content nav{background:var(--paper);border-bottom:1px solid var(--line-strong);padding:8px}.writer-shell .workspace-settings-content nav button:is([aria-selected=true],[aria-pressed=true]){color:var(--green);border-color:var(--green);background:var(--green-pale)}.writer-shell .workspace-memory .writer-memory-tools{background:var(--white);border:1px solid var(--line-strong);border-radius:9px;padding:18px}.writer-shell :is(.workspace-memory,.workspace-settings) h2{color:var(--green)}.writer-shell .writer-dialog{background:var(--white);border-color:var(--line-strong)}.writer-shell .writer-dialog :is(input,textarea,select){border-color:var(--line-strong);background:var(--white)}@media (min-width:1100px){.writer-shell .writer-grid{gap:12px;padding:0 14px 14px}.writer-shell .writer-grid.no-left{column-gap:0}.writer-shell .writer-grid.no-left.has-right{grid-template-columns:0 minmax(0,1fr) 320px;column-gap:12px}.writer-shell .writer-grid.no-right{column-gap:0}.writer-shell .writer-grid.has-left.no-right{column-gap:12px}.writer-shell .writer-grid.no-left.no-right{column-gap:0}.writer-shell .writer-grid.has-right{grid-template-columns:225px minmax(0,1fr) 320px}.writer-shell .writer-grid.no-left.has-right{grid-template-columns:0 minmax(0,1fr) 320px}}@media (min-width:821px) and (max-width:1280px){.writer-shell .workspace-navigation button{flex-direction:column;align-items:flex-start;gap:5px}.writer-shell .workspace-entry-copy small{font-size:11px}}@media (max-width:1099px){.writer-shell .workspace-navigation{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:9px 12px}.writer-shell .workspace-navigation button{flex-direction:row;align-items:center;gap:9px;min-height:58px;padding:8px 10px}.writer-shell .workspace-entry-copy small{margin-top:2px;font-size:12px}.writer-shell .chapter-sidebar,.writer-shell .ai-sidebar{border-radius:0}.writer-shell .editor-column{border-left:0;border-right:0;border-radius:0}.writer-shell .paper-editor-head{display:none}}@media (max-width:820px){.writer-shell .workspace-navigation{gap:6px;padding:8px}.writer-shell .workspace-navigation button{gap:6px;min-height:48px;padding:8px 6px}.writer-shell .workspace-entry-copy strong{font-size:12px;line-height:1.4}.writer-shell .workspace-entry-copy small{display:none}.writer-shell .workspace-entry-icon{width:24px;height:28px}.writer-shell .workspace-context{padding:8px 12px}.writer-shell :is(.workspace-library,.workspace-memory,.workspace-settings){padding:14px 12px 80px}.writer-shell .workspace-library-columns nav{padding:8px}.writer-shell .workspace-library-controls{padding:12px}.writer-shell .workspace-materials>header{padding:16px}}@media (max-width:440px){.writer-shell .workspace-entry-icon{display:none}.writer-shell .workspace-navigation button{text-align:center;justify-content:center}}.writer-shell .ai-panel-tabs button[aria-selected=true]:hover:not(:disabled){background:var(--green-2);color:var(--white)}.writer-shell .selection-action-bar button:hover:not(:disabled){color:var(--white);background:#ffffff29}.writer-shell .chapter-search-help{color:var(--ink-soft);margin:0 14px 10px;font-size:11px;line-height:1.45}.writer-shell .workspace-material-detail>div>button:last-child:hover:not(:disabled){background:var(--green-2);color:var(--white)}@media (min-width:1100px){.writer-shell .workspace-navigation{padding-top:9px;padding-bottom:9px}.writer-shell .workspace-navigation button{min-height:64px;padding-top:8px;padding-bottom:8px}.writer-shell :is(.chapter-sidebar-head,.ai-sidebar-head,.paper-editor-head){min-height:44px;padding-top:7px;padding-bottom:7px}.writer-shell .editor-chapter-head{padding-top:8px;padding-bottom:8px}.writer-shell .editor-chapter-head>input{margin-top:2px;font-size:28px}.writer-shell .chapter-nav-buttons button{height:28px;min-height:28px}.writer-shell .chapter-title-label-row{margin-top:4px}.writer-shell .writing-state-line{display:none}.writer-shell .workbench-optional-tools button{min-height:40px;padding:9px;font-size:13px}.writer-shell .manuscript-editor{padding-top:22px}}.writer-shell .writer-topbar{min-height:62px;padding-top:8px;padding-bottom:8px}.writer-shell .writer-save-group{flex-direction:row-reverse;gap:12px}.writer-shell .writer-save{border:1px solid var(--line-strong);background:var(--white);border-radius:6px;padding:9px 12px}.writer-shell .writer-save-status{font-size:12px}.writer-shell .writer-credits{background:var(--paper);padding:7px 9px;font-size:12px}.writer-shell .writer-panel-controls{min-height:34px;padding:4px 12px;font-size:12px}.writer-shell .writer-panel-controls button{color:var(--ink-soft);cursor:pointer;background:0 0;border:0;align-items:center;gap:5px;padding:4px;display:inline-flex}.writer-shell .writer-panel-controls>span{color:var(--ink-soft);font-size:11px}.writer-shell .chapter-nav-buttons{flex-wrap:wrap}.writer-shell .chapter-nav-buttons .writer-add-next{letter-spacing:0;width:auto;height:auto;min-height:32px;color:var(--green);border-radius:6px;gap:5px;margin-left:auto;padding:6px 10px;font-size:12px;font-weight:600;display:inline-flex}.writer-shell .chapter-title-label-row{height:0;margin:0}.writer-shell .chapter-title-feedback{min-height:0}.writer-shell .chapter-title-feedback-error{min-height:28px}.writer-shell .writing-primary-action[hidden]{display:none}.writer-shell .writing-plan-card{clear:both;background:0 0;border:0;flex-wrap:wrap;align-items:center;gap:8px;min-height:32px;margin:6px 0 0;padding:0;display:flex}.writer-shell .writing-plan-card .outline-details-toggle{border:1px solid var(--line-strong);background:var(--green-pale);border-radius:6px;width:auto;padding:7px 10px;font-size:12px}.writer-shell .writing-plan-card :is(label,textarea,.writing-plan-preview){flex-basis:100%}.writer-shell .writing-plan-card textarea{min-height:120px}.writer-shell .writing-plan-card>small{flex-basis:100%}.writer-shell .writing-state-line{display:none}.writer-shell .editor-chapter-head{max-width:none;padding:12px 22px;position:relative}.writer-shell .editor-chapter-head>input{margin:10px 0 0;font-size:30px}.writer-shell .writer-more-menu{float:right;z-index:5;margin-top:6px;position:relative}.writer-shell .writer-more-menu>summary{border:1px solid var(--line-strong);cursor:pointer;border-radius:6px;align-items:center;gap:5px;padding:7px 10px;font-size:12px;display:flex}.writer-shell .writer-more-menu>div{border:1px solid var(--line-strong);background:var(--white);border-radius:7px;width:265px;padding:12px;position:absolute;top:38px;right:0;box-shadow:0 8px 24px #262a2418}.writer-shell .writer-more-menu button{color:var(--green);text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;padding:6px;display:flex}.writer-shell .writer-more-menu small{color:var(--ink-soft);padding:6px;line-height:1.5;display:block}.writer-shell .chapter-stats-details summary{padding-top:10px;padding-bottom:10px}.writer-shell .chapter-stats-details summary small{font-size:11px}.writer-shell .chapter-search-help{margin-top:2px;margin-bottom:8px}.writer-shell .chapter-search-help summary{cursor:pointer;font-size:11px}.writer-shell .writer-uncreated{border:1px dashed var(--line-strong);color:var(--ink-soft);border-radius:6px;margin:8px 12px;padding:12px;font-size:11px;line-height:1.5}.writer-shell .ai-panel-tabs{padding-top:0}.writer-shell .writer-tool-hint{color:var(--ink-soft);margin:6px 14px 12px;font-size:11px;line-height:1.5}.writer-shell .legacy-tool-label{margin:0 14px 8px;font-size:11px}.writer-shell .whole-chapter-actions{margin-top:0}.writer-shell .whole-chapter-actions>button{background:var(--white);border:1px solid #b3bda9;border-radius:7px;margin-bottom:9px;padding:14px}.writer-shell .whole-chapter-actions>button small:first-of-type{color:var(--terracotta-dark);font-weight:600}.writer-shell .writer-more-checks,.writer-shell .writer-model-options{border:1px solid var(--line-strong);background:var(--white);border-radius:7px;margin:10px 14px}.writer-shell .writer-more-checks>summary,.writer-shell .writer-model-options>summary{cursor:pointer;padding:11px;font-size:12px;font-weight:600}.writer-shell .writer-more-checks>summary small{color:var(--ink-soft);margin-top:4px;font-size:11px;font-weight:400;display:block}.writer-shell .writer-more-checks .workbench-optional-tools{border:0;padding:0 10px 10px}.writer-shell .writer-more-checks .workbench-optional-tools button{font-size:12px}.writer-shell .writer-model-options .writing-model-row{flex-direction:column;align-items:stretch;gap:7px;padding:8px;display:flex}.writer-shell .writer-model-options .writing-model-guide,.writer-shell .writer-model-options>small{color:var(--ink-soft);padding:8px 12px;font-size:11px;line-height:1.5;display:block}.writer-shell .writer-tools-paused{color:var(--ink-soft);background:#f5eee1;border:1px solid #e3d6bf;border-radius:6px;margin:12px 14px;padding:10px;font-size:11px;line-height:1.6}.writer-shell .writer-tools-paused strong{color:var(--terracotta-dark);display:block}@media (min-width:1100px){.writer-shell .workspace-navigation button{min-height:58px}.writer-shell .workspace-context{padding-top:5px;padding-bottom:5px;font-size:11px}.writer-shell .manuscript-editor{padding-top:24px}}@media (max-width:1099px){.writer-shell .writer-panel-controls{display:none}}@media (max-width:820px){.writer-shell .writer-save{padding:0}.writer-shell .writer-save-group{gap:0}.writer-shell .editor-chapter-head{padding:12px 16px}.writer-shell .editor-chapter-head>input{font-size:25px}.writer-shell .writer-more-menu>div{max-width:calc(100vw - 48px)}.writer-shell .chapter-nav-buttons .writer-add-next{min-height:40px}}@media (min-width:1100px){.writer-shell .workspace-navigation button{flex-direction:row;align-items:center;gap:8px;min-height:58px}.writer-shell .workspace-entry-copy strong{font-size:12px}.writer-shell .workspace-entry-copy small{font-size:10px}.writer-shell .editor-chapter-head{grid-template-columns:minmax(0,1fr) auto auto;gap:6px 8px;padding:10px 20px;display:grid}.writer-shell .chapter-nav-buttons{grid-column:1/-1}.writer-shell .chapter-title-label-row{display:none}.writer-shell .editor-chapter-head>input{grid-area:2/1;min-width:0;margin:8px 0;font-size:27px}.writer-shell .chapter-title-feedback{grid-column:1/-1}.writer-shell .writer-more-menu{float:none;grid-area:2/3;align-self:center;margin:0}.writer-shell .writing-plan-card{grid-column:1/-1;align-self:center;min-height:0;margin:0}.writer-shell .writer-panel-controls{min-height:30px}.writer-shell .workspace-context{font-size:10px}}.writer-shell .manuscript-editor p:first-child:first-letter{float:none;font-size:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.writer-shell .review-chapter-context{color:var(--ink-soft);margin:12px 0;font-size:12px}.writer-shell .whole-chapter-actions-head{display:none}.writer-shell .whole-chapter-actions>button{border:1px solid var(--line-strong);background:var(--white);border-radius:8px;margin-bottom:10px;padding:14px}.writer-shell .whole-chapter-actions>button strong{font-size:15px}.writer-shell .whole-chapter-actions>button small{margin-top:7px;font-size:12px;line-height:1.55;display:block}.writer-shell .review-cost-note{border:1px solid var(--line);background:var(--paper);border-radius:7px;padding:12px;font-size:12px;line-height:1.6}.writer-shell .review-selection-card{border:1px solid var(--line-strong);border-left:3px solid var(--terracotta);background:var(--white);border-radius:7px;margin:12px 0 16px;padding:12px}.writer-shell .review-selection-card>div{color:var(--green);justify-content:space-between;align-items:center;gap:8px;font-size:12px;display:flex}.writer-shell .review-selection-card button{color:var(--green);background:0 0;border:0;padding:6px;font-size:11px;text-decoration:underline}.writer-shell .review-selection-card summary,.writer-shell .review-selection-card p{overflow-wrap:anywhere;margin:10px 0 0;font:15px/1.65 Georgia,serif}.writer-shell .ai-custom-box{background:0 0;border:0;padding:0}.writer-shell .ai-custom-box label{color:var(--green);font-size:14px;font-weight:650}.writer-shell .ai-custom-box textarea{background:var(--white);border:1px solid var(--line-strong);border-radius:7px;width:100%;min-height:100px;margin-top:8px;padding:12px;font-size:13px;line-height:1.6;display:block}.writer-shell .ai-custom-box small{color:var(--ink-soft);font-size:11px}.writer-shell .ai-custom-box>button{color:var(--green);background:0 0;border:0;padding:6px;font-size:11px;text-decoration:underline}.writer-shell .review-directions{margin-top:18px}.review-directions>small{letter-spacing:.08em;color:var(--ink-soft);font-size:10px;font-weight:700}.writer-shell .review-chips{flex-wrap:wrap;gap:7px;margin:8px 0;display:flex}.writer-shell .review-chips button{background:var(--white);border:1px solid var(--line-strong);color:var(--green);border-radius:6px;padding:9px 12px;font-size:12px}.writer-shell .review-chips button[aria-pressed=true]{background:var(--green-pale);border-color:var(--green)}.writer-shell .review-chips small{font-size:10px;display:block}.review-directions summary{color:var(--green);cursor:pointer;padding:6px 0;font-size:12px}.writer-shell .review-passage-footer{border-top:1px solid var(--line-strong);background:var(--white);flex:none;padding:13px 14px}.writer-shell .review-passage-footer>div{color:var(--green);justify-content:space-between;gap:8px;margin-bottom:9px;font-size:12px;display:flex}.writer-shell .review-passage-footer .button{justify-content:center;gap:12px;width:100%;min-height:44px;font-size:13px}.writer-shell .review-passage-footer>small{text-align:center;color:var(--ink-soft);margin-top:8px;font-size:10px;line-height:1.5;display:block}.writer-shell .ai-sidebar:has(.review-passage-footer)>.ai-sidebar-footer{display:none}.writer-shell .writer-model-options[open]{margin-top:16px}.writer-shell .writer-model-options[open]>.writing-model-row{flex-wrap:wrap;gap:8px;padding:10px 0;display:flex}.writer-shell .writer-model-options[open]>.writing-model-row select{max-width:100%}@media (max-width:700px){.writer-shell .ai-custom-box textarea{min-height:94px}.writer-shell .review-selection-card{margin-top:10px}.writer-shell .review-passage-footer{padding:12px 14px max(12px,env(safe-area-inset-bottom))}.writer-shell .ai-sidebar>div[hidden]{display:none}}.writer-shell .ai-sidebar:has(.review-tools-scroll:not([hidden])){overflow:hidden}.writer-shell .review-tools-scroll{flex:1;min-height:0;padding:0 14px 14px;overflow-y:auto}.writer-shell .ai-sidebar>.workbench-tabs{flex:none}.writer-shell .review-tools-scroll .writer-model-options>summary{display:none}.writer-shell .review-back-label{white-space:nowrap;font-size:11px}.writer-shell .ai-sidebar-head button:has(.review-back-label){gap:4px;width:auto;display:flex}.writer-shell .ai-sidebar-head button:has(.review-back-label) svg{width:15px}@media (max-width:760px){.writer-shell .review-sticky-actions:has(.review-generation-note){grid-template-columns:1fr 1.2fr;gap:8px;display:grid}.writer-shell .review-sticky-actions:has(.review-generation-note)>div{display:contents}.writer-shell .review-sticky-actions .review-generation-note{grid-area:1/1/auto/-1;max-width:none;font-size:12px;line-height:1.4;display:block}.writer-shell .review-sticky-actions:has(.review-generation-note)>.button{grid-row:2}.writer-shell .review-sticky-actions:has(.review-generation-note)>div>.button{grid-row:2}}.writer-shell .review-tools-scroll .whole-chapter-actions{margin:0;padding:0}.writer-shell .review-tools-scroll .review-chapter-context{margin:6px 0 10px}.writer-shell .review-tools-scroll .whole-chapter-actions>button{margin-bottom:8px;padding:11px}.writer-shell .review-tools-scroll .whole-chapter-actions>button small{margin-top:4px;line-height:1.45}.writer-shell .review-tools-scroll .whole-chapter-actions>.whole-chapter-resume{background:var(--paper);padding:9px 11px}.writer-shell .review-tools-scroll .whole-chapter-resume strong{font-size:12px}.writer-shell .review-tools-scroll .whole-chapter-resume small{font-size:11px;font-weight:400}@media (min-width:1100px){.writer-shell .editor-chapter-head.chapter-written>input{grid-column:1/3}.writer-shell .chapter-written .writing-plan-card{margin:0 0 4px}}@media (max-width:1099px){.writer-shell .writing-plan-card.is-written{margin:10px 0 0}}.writer-shell .chapter-plan-disclosure{align-items:center;gap:6px;display:inline-flex}.writer-shell .writing-plan-card.is-written{container:chapter-actions/inline-size}.writer-shell .chapter-action-row{flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:8px;width:100%;display:flex}.writer-shell .chapter-plan-disclosure>span{color:var(--ink-soft);white-space:nowrap;font-size:12px}.writer-shell .writing-plan-card .chapter-plan-disclosure button{white-space:nowrap;align-items:center;gap:5px;min-height:40px;margin:0;display:inline-flex}.writer-shell .chapter-plan-disclosure .outline-details-toggle[aria-expanded=true] svg{transform:rotate(180deg)}.writer-shell .chapter-plan-fields{text-align:left;flex:1 0 100%;min-width:0}.writer-shell .chapter-plan-fields>small{color:var(--ink-soft);margin-top:4px;display:block}.writer-shell .writing-plan-card.is-written .chapter-action-row button{min-height:40px;font-size:14px}@media (max-width:760px){.writer-shell .editor-chapter-head.chapter-written{grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;display:grid}.writer-shell .chapter-written>*{grid-column:1/-1}.writer-shell .chapter-written>.chapter-title-label-row,.writer-shell .chapter-written>.chapter-title-feedback:not(.chapter-title-feedback-error){min-height:0;position:absolute}.writer-shell .chapter-written>input{grid-area:2/1;min-width:0;margin:0}.writer-shell .chapter-written>.writer-more-menu{float:none;grid-area:2/2;align-self:center;margin:0}.writer-shell .chapter-written .writer-more-menu>summary{min-height:44px}.writer-shell .chapter-written .writing-plan-card.is-written{justify-content:flex-start;margin:0;padding:4px 0}.writer-shell .writing-plan-card.is-written .chapter-action-row button,.writer-shell .writing-plan-card .chapter-plan-disclosure button{min-height:44px}}@container chapter-actions (width<=600px){.writer-shell .is-written .chapter-action-row{grid-template-columns:minmax(0,1.1fr) minmax(0,1.2fr) minmax(0,1fr);align-items:start;gap:6px;display:grid}.writer-shell .writing-plan-card.is-written .chapter-action-row button{white-space:normal;text-align:center;text-wrap:balance;justify-content:center;min-width:0;padding:5px 6px;font-size:13px;line-height:1.2}.writer-shell .is-written .chapter-plan-disclosure{text-align:center;flex-direction:column;align-items:stretch;gap:2px}.writer-shell .is-written .chapter-plan-disclosure svg{flex-shrink:0}}@media (max-width:760px){.writer-shell .responsive-review-tabs{top:0}.writer-shell .responsive-review-tabs button{font-size:13px}.writer-shell .review-plan-title-row{flex-wrap:wrap}.writer-shell .review-plan-title-row>div{flex-basis:100%}}.writer-shell .manuscript-editor ul{margin-block:0 1.15em;padding-inline-start:1.5em;list-style-type:disc}.writer-shell .manuscript-editor ol{margin-block:0 1.15em;padding-inline-start:1.5em;list-style-type:decimal}.writer-shell .manuscript-editor ul ul{list-style-type:circle}.writer-shell .manuscript-editor li>p{margin-bottom:.3em}.writer-shell .writer-topbar:has(.book-model-menu){z-index:55}.writer-shell .book-model-picker{flex:none;margin-inline-start:6px;position:relative}.writer-shell .book-model-trigger{text-align:left;color:#2e4937;cursor:pointer;background:#edf1e7;border:1px solid #829582;border-radius:8px;grid-template-columns:1fr auto;align-items:center;column-gap:14px;min-height:44px;padding:5px 12px;display:grid}.book-model-trigger>span{grid-column:1;font-size:11px;line-height:1.25}.book-model-trigger>strong{white-space:nowrap;grid-column:1;font-size:14px;line-height:1.35}.book-model-trigger>svg{grid-area:1/2/3}.book-model-trigger[aria-expanded=true]{outline-offset:1px;outline:2px solid #56755b}.book-model-menu{z-index:40;background:#fffdf7;border:1px solid #a8b3a2;border-radius:9px;min-width:188px;padding:4px;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 8px 22px #24382c28}.book-model-menu button{width:100%;font:inherit;color:#283c2f;cursor:pointer;background:0 0;border:0;border-radius:5px;justify-content:space-between;align-items:center;padding:9px 10px;font-size:14px;display:flex}:is(.book-model-menu button[aria-checked=true],.book-model-menu button:hover,.book-model-menu button:focus-visible){background:#e6ecdf}@media (max-width:700px){.writer-shell .writer-topbar{flex-wrap:wrap;gap:3px;height:auto}.writer-shell .writer-brand-area{flex:1 0 100%;width:100%;min-width:0}.writer-shell .writer-book-title{flex:1;min-width:0}.writer-shell .writer-book-title strong{max-width:100%}.writer-shell .book-model-picker{margin-inline-start:auto}.book-model-menu{left:auto;right:0}.writer-shell .writer-mobile-actions{margin-left:auto}}.context-change-model{color:#32563c;text-underline-offset:3px;cursor:pointer;font:inherit;background:0 0;border:0;align-self:flex-start;padding:2px 0;font-size:13px;text-decoration:underline}.writer-shell .chapter-plan-compare{background:var(--paper);border-inline-start:3px solid #987147;margin:8px 0;padding:12px}.writer-shell .chapter-plan-compare p{white-space:pre-wrap;overflow-wrap:anywhere}.writer-shell .writing-plan-card .chapter-plan-unsaved{color:#80532e}.writer-shell .chapter-plan-disclosure .outline-details-toggle span{font:inherit;margin:0}@container chapter-actions (width<=420px){.writer-shell .is-written .chapter-action-qualifier{display:none}.writer-shell .is-written .chapter-action-row{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}.writer-shell .is-written .chapter-plan-disclosure button{height:100%}}.selection-quote-instructions{background:#f1f3ea;border-inline-start:3px solid #819078;margin-block:12px;padding:12px 16px}.selection-quote-instructions p{white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0 0}.ai-sidebar-footer>button{color:var(--green);font:inherit;cursor:pointer;background:0 0;border:0;margin-inline-start:auto;padding:6px;font-weight:650}:is(.editor-column#main-content:focus-visible,.workspace-context#main-content:focus-visible){outline-offset:-3px;outline:3px solid #52704e}.writer-quote-actions{flex-wrap:wrap;gap:8px;margin-top:14px;display:flex}.writing-plan-card{background:#fafbf5;border:1px solid #deded3;border-radius:10px;margin:14px 0 6px;padding:14px 16px;font-size:14px;line-height:1.5}.writing-plan-card button:not(.button),.writing-materials button:not(.button),.workbench-result button,.workbench-quote button{cursor:pointer;color:#363c28;font:inherit;background:#fff;border:1px solid #d4d6c7;border-radius:6px;margin:4px 6px 4px 0;padding:7px 10px}.writing-plan-card textarea,.writing-materials input:not([type=checkbox]),.writer-dialog textarea,.writer-dialog select,.writer-dialog input{box-sizing:border-box;width:100%;font:inherit;color:inherit;background:#fff;border:1px solid #d5d5ca;border-radius:7px;margin:6px 0 12px;padding:10px;display:block}.writing-plan-preview{white-space:pre-wrap;color:#55594a;overflow-wrap:anywhere;margin:6px 0}.writing-primary-action{margin-bottom:8px}.writing-state-line{color:#626754;border-top:1px solid #e0e1d5;flex-wrap:wrap;gap:8px 16px;margin-top:10px;padding-top:10px;font-size:12px;display:flex}.writing-materials{padding:14px;font-size:14px;line-height:1.5;overflow:auto}.writing-materials p{white-space:pre-wrap;overflow-wrap:anywhere}.writing-materials label{margin-bottom:12px;display:block}.workbench-tabs{flex-wrap:wrap;gap:5px;padding:10px;display:flex}.workbench-tabs button{font:inherit;background:#fff;border:1px solid #ddd;border-radius:6px;padding:8px;font-size:13px}.workbench-tabs button[aria-pressed=true]{color:#384a20;background:#e8ecd9;border-color:#9cab76}.writing-material-card{border-bottom:1px solid #e1e1d8;padding:13px 0}.writing-material-card strong{overflow-wrap:anywhere;font-size:14px}.writing-material-card small{color:#727363;display:block}.writing-material-card details{margin-top:10px;font-size:13px}.workbench-optional-tools{gap:9px;padding:16px;display:grid}.workbench-optional-tools button{text-align:left;font:inherit;background:#fafbf6;border:1px solid #d7dcc8;border-radius:7px;padding:10px}.workbench-optional-tools small{color:#777;font-size:12px;line-height:1.5}.workbench-quote,.workbench-result{background:#fafbf6;border:1px solid #dadfc9;border-radius:9px;margin:14px 0;padding:16px}.workbench-comparison{grid-template-columns:1fr 1fr;gap:16px;margin:14px 0;display:grid}.workbench-comparison p{white-space:pre-wrap;overflow-wrap:anywhere}.writer-dialog label{margin-top:12px;display:block}.writer-dialog-content{font-size:15px;line-height:1.55}.writing-plan-card button:disabled{opacity:.55;cursor:not-allowed}@media (max-width:760px){.writing-plan-card{margin:10px 0;padding:12px}.writing-state-line{gap:4px;display:grid}.workbench-comparison{grid-template-columns:1fr}.writing-materials{font-size:15px}.writing-primary-action .button{width:100%}}.writer-memory-tools{color:#626754;border-bottom:1px solid #deded3;padding:8px 18px;font-size:13px}.writer-memory-tools>summary{cursor:pointer}.writer-memory-tools[open]{max-height:42vh;overflow:auto}.workbench-request-dialog .writer-dialog-content button{white-space:normal;overflow-wrap:anywhere;max-width:100%;min-height:44px}.workbench-request-dialog .writer-dialog-content button:not(.button){color:#344c3d;cursor:pointer;font:inherit;background:#fffdf8;border:1px solid #c9c1b1;border-radius:8px;margin:6px 8px 6px 0;padding:10px 14px}.workbench-request-dialog .writer-dialog-content button:disabled{opacity:.55;cursor:not-allowed}.workbench-request-dialog .workbench-result .button-primary,.workbench-request-dialog .workbench-quote .button-primary{color:#fffdf8;background:#344c3d;border-color:#344c3d;padding:10px 14px}.workbench-request-dialog .workbench-result .button-secondary{color:#344c3d;background:#fffdf8;border-color:#c9c1b1;padding:10px 14px}.workbench-request-dialog .workbench-result h3{outline-offset:4px;scroll-margin-top:12px}.workbench-request-dialog textarea[readonly]{color:#555e53;background:#f6f3eb}@media (max-width:600px){.workbench-request-dialog .workbench-result{padding:12px}.workbench-request-dialog .workbench-result>.button{width:100%;margin:8px 0;display:flex}.workbench-request-dialog .workbench-quote>.button{width:100%;margin:8px 0}}.notes-source-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:18rem;font:inherit;background:var(--paper,#fffdf7);border:1px solid #d8d1c1;border-radius:8px;padding:12px;overflow:auto}.notes-update-result{background:#eef0e6;border:1px solid #c5cbb9;border-radius:10px;padding:12px}.notes-update-result .writer-notice{margin:8px 0}.workbench-request-dialog .writer-dialog-footer{border-top:1px solid var(--line,#d8d1c1);flex-wrap:wrap;flex:none;justify-content:space-between;gap:8px;padding:12px 20px;display:flex}.workbench-request-dialog .writer-dialog-footer .button{min-height:44px}@media (max-width:600px){.notes-update-result{padding:10px}.workbench-quote button{white-space:normal;width:100%}.workbench-quote details{overflow-wrap:anywhere;min-width:0}}.notes-refresh-dialog .writer-dialog-eyebrow{color:var(--ink-soft);margin-bottom:4px;font-size:13px;display:block}.notes-refresh-dialog .writer-dialog-content{padding-block:16px 6px}.notes-refresh-form .notes-refresh-intro{margin:0 0 12px;font-size:15px}.notes-refresh-row{border-top:1px solid #c6c6b8;grid-template-columns:minmax(0,1fr) minmax(0,36%);align-items:start;column-gap:14px;padding-block:10px;display:grid}.notes-row-label{flex-direction:column;justify-content:center;min-height:44px;line-height:1.35;display:flex}.notes-row-label strong{font-size:15px}.notes-row-label small,.notes-row-label strong span{color:var(--ink-soft);font-weight:400}.notes-row-label small{margin-top:2px;font-size:13px}.notes-refresh-row :is(.notes-row-button,.book-model-trigger){color:#344c3d;background:#fffdf8;border:1px solid #526d59;width:100%;padding:8px 12px}.notes-refresh-row .book-model-trigger{background:#eaf0e4;justify-content:space-between}.notes-refresh-row .book-model-trigger[aria-expanded=true]:not(:focus-visible){outline:none}.notes-refresh-row .book-model-trigger strong{white-space:normal;text-align:left;min-width:0}.notes-refresh-row .button svg{flex-shrink:0}.notes-refresh-row .button:not(:disabled):hover{background:#e6ecdf;transform:none}.notes-refresh-row .book-model-trigger[aria-expanded=true]>svg,.notes-row-button[aria-expanded=true]>.notes-chevron{transform:rotate(180deg)}.notes-refresh-row .book-model-menu{min-width:0;box-shadow:none;border:1px solid #526d59;border-radius:7px;margin-top:5px;padding:0;position:static;overflow:hidden}.notes-refresh-row .book-model-menu .button{text-align:left;border:0;border-radius:0;justify-content:space-between;width:100%;margin:0;padding:8px 12px;font-weight:400}.notes-refresh-row .book-model-menu .button+.button{border-top:1px solid #d9dace}.notes-refresh-row .book-model-menu button[aria-checked=true]{background:#e2eadc;font-weight:650}.notes-refresh-row .book-model-menu button:focus-visible{outline-offset:-3px;outline:2px solid #526d59}.notes-row-content,.notes-row-error{grid-column:1/-1}.notes-row-content{padding-top:10px}.notes-refresh-row .notes-row-content textarea{width:100%;margin:0;display:block}.notes-refresh-row .notes-row-error{color:#8c352c;margin:8px 0 0}.notes-refresh-disclosure{overflow-wrap:anywhere}.notes-refresh-disclosure summary{color:#344c3d;cursor:pointer;min-height:44px;padding-block:10px;font-weight:600}.notes-refresh-disclosure summary span{color:var(--ink-soft);font-weight:400}.notes-refresh-disclosure>p{margin:4px 0 8px}.notes-refresh-disclosure details{padding-inline-start:14px}.notes-refresh-disclosure dl{margin:0 0 8px}.notes-refresh-disclosure dt{font-weight:600}.notes-refresh-disclosure dd{margin:0 0 8px}.notes-refresh-dialog .notes-refresh-billing,.notes-refresh-dialog .notes-refresh-feedback{margin:10px 0 0}.notes-refresh-dialog .notes-refresh-confirm{color:#fffdf8;background:#344c3d;border-color:#344c3d}.notes-refresh-dialog .notes-refresh-confirm:not(:disabled):hover{background:#2b4033;border-color:#2b4033}@media (max-width:480px){.notes-refresh-row{grid-template-columns:minmax(0,1fr) minmax(0,48%);column-gap:8px}.notes-refresh-row :is(.notes-row-button,.book-model-trigger),.notes-refresh-row .book-model-menu .button{padding-inline:9px}.notes-refresh-dialog .writer-dialog-footer{padding-inline:12px}.notes-refresh-dialog .writer-dialog-footer .button{white-space:normal;flex:auto;padding-inline:10px}}.chapter-archive-notice{color:#344e40;background:#edf0e5;border:1px solid #bbc3ae;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;margin:8px 20px;padding:12px 16px;display:flex}.chapter-archive-detail{overflow-wrap:anywhere;gap:16px;display:grid}.chapter-archive-detail>p{margin:0}.chapter-archive-detail section,.chapter-archive-detail details{background:#fffdf6;border:1px solid #d6cebe;border-radius:10px;padding:16px}.chapter-archive-detail h3{margin:0 0 8px}.chapter-archive-detail summary{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;min-height:44px;display:flex}.chapter-archive-detail summary span{color:#5d675a;font-size:13px}.chapter-archive-detail blockquote{background:#f5f0e4;border-left:3px solid #8d6537;margin:12px 0;padding:10px 14px}.chapter-archive-detail .button{white-space:normal;min-height:44px}.chapter-archive-detail p{white-space:pre-wrap}@media (max-width:600px){.chapter-archive-notice{flex-wrap:wrap;margin:8px}.chapter-archive-notice .button{width:100%}.chapter-archive-detail summary{flex-direction:column;align-items:flex-start;gap:4px}}.chapter-archive-dialog .writer-dialog-footer{background:#fffdf6;border-top:1px solid #d6cebe;flex:none;justify-content:flex-end;padding:14px 24px;display:flex}.chapter-archive-detail summary>div{gap:5px;min-width:0;display:grid}.chapter-archive-detail summary .chapter-archive-preview{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:14px;line-height:1.5;display:-webkit-box;overflow:hidden}.chapter-archive-detail summary .chapter-archive-chevron{flex:none;font-size:24px;transition:transform .15s}.chapter-archive-detail details[open] .chapter-archive-chevron{transform:rotate(90deg)}.chapter-archive-detail details[open] .chapter-archive-preview{display:none}.chapter-archive-detail .chapter-archive-destination,.chapter-archive-source-label{color:#5d675a;font-size:13px}.chapter-archive-detail .chapter-archive-destination{margin:8px 0}.chapter-archive-detail blockquote{margin-top:5px}@media (max-width:600px){.chapter-archive-detail summary{flex-direction:row;align-items:center}.chapter-archive-detail section,.chapter-archive-detail details{padding:12px}.chapter-archive-dialog .writer-dialog-footer{padding:12px 18px max(12px,env(safe-area-inset-bottom))}.chapter-archive-dialog .writer-dialog-footer .button{width:100%}}.chapter-archive-dialog .writer-dialog-footer .button{min-height:44px}@media (max-width:600px){.chapter-archive-notice{flex-wrap:nowrap;gap:10px;padding:10px 12px}.chapter-archive-notice>span{flex:1;min-width:0;font-size:14px;line-height:1.45}.chapter-archive-notice .button{flex:none;width:auto;min-height:44px;padding:10px 12px;font-size:13px}}.chapter-archive-editor{gap:10px;width:100%;min-width:0;display:grid}.chapter-archive-editor label{font-weight:650}.chapter-archive-editor textarea{box-sizing:border-box;color:#28362d;width:100%;min-height:140px;font:inherit;resize:vertical;background:#fffef9;border:1px solid #a6ad9d;border-radius:8px;padding:12px;font-size:16px;line-height:1.6}.chapter-archive-actions{flex-wrap:wrap;align-items:flex-start;gap:10px;display:flex}.chapter-archive-help{color:#5d675a;margin:0;font-size:13px}.chapter-archive-source-label{margin-top:16px}.chapter-archive-leave{background:#f6ebd7;border:1px solid #c9a778;border-radius:8px;padding:12px}.chapter-archive-detail [role=alert]{color:#85461f}.chapter-archive-detail [role=status]{color:#344e40}.chapter-archive-dialog .button-primary{color:#fffdf8;background:#344c3d;border-color:#344c3d}.chapter-archive-dialog .button-primary:not(:disabled):not([aria-disabled=true]):hover{background:#253e2e;border-color:#253e2e}.chapter-archive-dialog :is(button,textarea,select):focus-visible{outline-offset:3px;box-shadow:none;outline:2px solid #896136}.chapter-archive-dialog>header>button{min-width:44px;min-height:44px}.chapter-archive-dialog .writer-dialog-footer>.chapter-archive-actions{justify-content:flex-end;width:100%}@media (max-width:600px){.chapter-archive-dialog .writer-dialog-footer>.chapter-archive-actions{flex-wrap:nowrap}.chapter-archive-dialog .writer-dialog-footer>.chapter-archive-actions>.button{flex:1 1 0;width:auto;min-width:0}}.writer-shell .writing-plan-card .chapter-notes-purpose{color:var(--ink-soft);flex-basis:100%;margin:4px 0 0;font-size:13px;line-height:1.45}.chapter-notes-end{margin:14px 0 0}.chapter-notes-end-entry{background:#f6f6f0;border-top:1px solid #d8d5c9;border-bottom:1px solid #d8d5c9;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:12px 14px;display:flex}.chapter-notes-end-entry .chapter-notes-purpose{color:var(--ink-soft);flex:22rem;margin:0;font-size:13px;line-height:1.45}.chapter-notes-end-entry .button{flex:none}.writer-dialog.chapter-notes-dialog{container:chapter-notes/inline-size}.chapter-notes-dialog .writer-dialog-content{background:#f8f7f2}.chapter-notes-dialog .chapter-archive-detail{gap:18px}.chapter-notes-dialog .chapter-notes-intro{color:#47574d;margin:0}.chapter-notes-panels{grid-template-columns:minmax(0,1fr);gap:14px;display:grid}.chapter-notes-dialog .chapter-notes-list,.chapter-notes-dialog .chapter-notes-summary{background:#fffdf8;border:1px solid #c7cdbe;border-radius:10px;min-width:0;padding:0}.chapter-notes-dialog .chapter-notes-summary{background:#faf6ed;border-color:#d6cab8}.chapter-notes-heading{background:#eaf0e6;border-bottom:1px solid #c9d3c4;border-radius:9px 9px 0 0;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:7px 12px;padding:12px 16px;display:flex}.chapter-notes-panels .chapter-notes-heading{padding:8px 16px}.chapter-notes-summary .chapter-notes-heading{background:0 0;border-bottom:0}.chapter-notes-dialog .chapter-notes-heading h3{color:#293c31;font:600 20px/1.25 var(--font-display,Georgia, serif);align-items:center;gap:8px;margin:0;display:flex}.chapter-notes-summary .chapter-notes-heading h3{color:#4a3c2e}.chapter-notes-heading h3 svg{stroke-width:1.7px;flex:none;width:20px;height:20px}.chapter-notes-toggle{min-height:38px;color:inherit;font:inherit;text-align:start;cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:0;display:inline-flex}.chapter-notes-toggle[aria-expanded=true] svg{transform:rotate(90deg)}.chapter-notes-toggle:hover{text-underline-offset:3px;text-decoration:underline}.chapter-notes-dialog .chapter-notes-heading .button{background:#fffdf8;justify-content:center;align-items:center;gap:5px;width:auto;min-height:44px;padding:8px 11px;font-size:13px;line-height:1.25;display:inline-flex}.chapter-note-rows{margin:0;padding:0;list-style:none}.chapter-note-rows>li{grid-template-columns:clamp(8rem,15%,10rem) minmax(0,1fr) 9.5rem;align-items:start;gap:0 18px;margin:0;padding:10px 16px;display:grid}.chapter-note-rows>li+li{border-top:1px solid #dcded3}.chapter-note-meta{align-content:start;gap:2px;min-width:0;display:grid}.chapter-note-meta strong{color:#293c31;font-size:14px;line-height:1.4}.chapter-note-meta .book-note-readiness{font-size:12px;font-weight:500;line-height:1.35}.chapter-note-text{overflow-wrap:anywhere;min-width:0}.chapter-notes-candidate-intro{color:#685035;margin:12px 16px 0;font-size:14px;line-height:1.5}.chapter-notes-dialog .chapter-note-text p{margin:0;font-size:16px;line-height:1.45}.chapter-note-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:3px 12px;display:flex}.chapter-note-actions .button{overflow-wrap:anywhere;min-width:0;max-width:100%;min-height:38px;padding:5px 10px;font-size:14px;line-height:1.25}.chapter-notes-panels .chapter-notes-heading .button{min-height:38px}.chapter-notes-link{color:#385443;text-underline-offset:3px;min-height:44px;font:inherit;cursor:pointer;background:0 0;border:0;padding:0;text-decoration:underline}.chapter-note-actions>.chapter-notes-link{min-height:38px;font-size:14px}.chapter-note-source-missing{color:#705232;margin:0 0 10px;font-size:14px;line-height:1.5}.chapter-notes-dialog .chapter-note-source{background:0 0;border:0;border-radius:0;min-width:0;padding:0}.chapter-notes-dialog .chapter-note-source>summary,.chapter-notes-dialog .chapter-notes-fold>summary{cursor:pointer;color:#385442;min-height:44px;padding:12px 0;font-size:14px;font-weight:600;list-style-position:inside;display:list-item}.chapter-notes-dialog .chapter-note-source>summary{font-weight:500}.chapter-note-source blockquote{overflow-wrap:anywhere;margin-inline:0}.chapter-note-rows .chapter-note-source>summary{width:fit-content;max-width:100%;min-height:28px;padding:4px 0}.chapter-note-rows .chapter-note-source blockquote{white-space:pre-wrap;margin:4px 0}.chapter-notes-list>p{margin:12px 16px}.chapter-notes-dialog .chapter-notes-empty{color:#4e5d52;margin:14px 16px}.chapter-notes-summary-body{padding:0 16px 14px}.chapter-notes-dialog .chapter-notes-summary-body>p{overflow-wrap:anywhere;max-width:96ch;margin:0;font-size:16px;line-height:1.55}.chapter-summary-check,.chapter-notes-dialog .chapter-notes-changed{color:#705232;background:#faf5eb;border-left:3px solid #b68c5a;margin-top:14px;padding:8px 12px}.chapter-summary-check>p,.chapter-notes-dialog .chapter-notes-changed{margin-bottom:0;font-size:14px;line-height:1.45}.chapter-summary-check .chapter-notes-link{color:#604728;font-weight:600}.chapter-notes-dialog .chapter-notes-fold{background:0 0;border:0;border-radius:0;padding:0}.chapter-notes-summary>.chapter-notes-fold{border-top:1px solid #e0d7ca;padding:0 18px}.chapter-notes-summary>.chapter-notes-fold[open]{padding-bottom:10px}.chapter-notes-summary>.chapter-notes-fold>summary{color:#665039}.chapter-notes-utilities{background:#f1f0e9;border:1px solid #d8d5c9;border-radius:8px;grid-template-columns:minmax(0,1fr);align-items:start;display:grid}.chapter-notes-utilities>.chapter-notes-fold{padding:0 16px}.chapter-notes-help{margin:0 0 14px}.chapter-notes-help dt{margin:10px 0 3px;font-weight:650}.chapter-notes-help dd{margin:0}.chapter-notes-tools{border-top:1px solid #d8d5c9;flex-wrap:wrap;align-items:center;gap:2px 14px;padding:0 16px;display:flex}.chapter-notes-tools .chapter-notes-link{align-items:center;gap:7px;font-size:14px;display:inline-flex}.chapter-notes-utilities>:only-child{grid-column:1/-1}.chapter-notes-dialog .writer-dialog-footer .chapter-notes-ai-button{color:#fffdf8;background:#80542d;border:1px solid #80542d;align-self:stretch;gap:8px;margin-inline-end:auto;padding:8px 16px}.chapter-notes-ai-button>svg{flex:none}.chapter-notes-ai-button>span{flex-wrap:wrap;justify-content:center;align-items:center;gap:2px 10px;display:flex}.chapter-notes-ai-button small{border-inline-start:1px solid #cbaa8a;padding-inline-start:10px;font-size:13px;font-weight:500}.chapter-notes-dialog .chapter-notes-ai-button:not(:disabled):hover{background:#684323;border-color:#684323}.chapter-notes-dialog .chapter-archive-editor{background:#fffdf8;border:1px solid #cdcfc0;border-radius:9px;justify-self:center;max-width:80ch;padding:clamp(12px,2.2vw,24px)}.chapter-note-manuscript{white-space:pre-wrap;max-height:32vh;overflow:auto}.chapter-archive-dialog .chapter-archive-leave{width:100%}.chapter-archive-dialog .chapter-archive-leave p{margin:0 0 8px}@container chapter-notes (width>=880px){.chapter-notes-utilities{grid-template-columns:minmax(0,1fr) auto}.chapter-notes-tools{border-top:0;border-left:1px solid #d8d5c9;max-width:22rem}}@container chapter-notes (width<=670px){.chapter-note-rows>li{grid-template-columns:minmax(0,1fr) clamp(7rem,33%,9.5rem);grid-template-areas:"meta actions""text text";align-items:center;gap:4px 10px;padding:10px 12px}.chapter-note-meta{flex-wrap:wrap;grid-area:meta;align-items:baseline;gap:2px 10px;display:flex}.chapter-note-text{grid-area:text}.chapter-note-actions{grid-area:actions}.chapter-note-actions :is(.button,.chapter-notes-link){min-width:44px}.chapter-notes-panels .chapter-notes-heading{padding:8px 12px}.chapter-notes-toggle,.chapter-note-actions :is(.button,.chapter-notes-link),.chapter-notes-panels .chapter-notes-heading .button,.chapter-note-rows .chapter-note-source>summary{min-height:44px}.chapter-note-rows .chapter-note-source>summary{padding-block:10px}.chapter-notes-summary-body{padding-inline:12px}}@media (max-width:600px){.chapter-notes-dialog .chapter-archive-detail,.chapter-notes-panels{gap:14px}.chapter-notes-heading{padding:10px 12px}.chapter-notes-dialog .chapter-notes-heading h3{font-size:18px}.chapter-notes-summary>.chapter-notes-fold{padding-inline:14px}.chapter-notes-dialog .writer-dialog-footer .button{padding-inline:8px}.chapter-notes-dialog .writer-dialog-footer>.chapter-archive-actions:has(>.chapter-notes-ai-button){align-items:stretch}.chapter-notes-dialog .writer-dialog-footer>.chapter-archive-actions>.chapter-notes-ai-button{flex:1.65 1 0;gap:5px;padding:6px 8px;line-height:1.2}.chapter-notes-ai-button>span{flex-direction:column}.chapter-notes-ai-button small{border:0;padding:0}.chapter-archive-dialog .chapter-archive-leave .button{width:auto}}.chapter-notes-overview,.book-notes-results,.book-note-buttons,.book-notes-pages{flex-wrap:wrap;align-items:center;gap:8px 16px;display:flex}.chapter-notes-overview,.book-notes-results{justify-content:space-between}.chapter-notes-overview .button,.book-notes-results .button{justify-content:center;align-items:center;gap:7px;display:inline-flex}.chapter-notes-dialog .book-notes{background:0 0;border:0;min-width:0;padding:0}.book-notes-filters{background:#edf0e8;border-radius:8px;grid-template-columns:minmax(0,1.1fr) minmax(0,1.45fr) minmax(0,1fr);align-items:start;gap:12px;padding:16px;display:grid}.book-note-filter,.chapter-notes-dialog .book-notes-search{gap:6px;min-width:0;display:grid}.book-note-filter{position:relative}.chapter-notes-dialog .book-notes-filters label{color:#364c3e;margin:0;font-size:14px;font-weight:600}.chapter-notes-dialog .book-notes-filters :is(input,.book-note-filter-trigger),.chapter-archive-editor .book-note-filter-trigger{box-sizing:border-box;color:#28362d;background:#fffdf8;border:1px solid #aeb6a6;border-radius:6px;width:100%;min-width:0;min-height:44px;margin:0;padding:8px 12px;font-family:inherit;font-size:16px;font-weight:400;line-height:1.3}.book-note-filter-trigger{cursor:pointer;text-align:start;justify-content:space-between;align-items:center;gap:6px;display:flex}.book-note-filter-trigger span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.book-note-filter-trigger svg{color:#405844;flex:none}.book-note-filter-trigger[aria-expanded=true] svg{transform:rotate(180deg)}.chapter-archive-editor .book-note-filter-trigger{background:#fffef9;border-color:#a6ad9d;border-radius:8px}.chapter-notes-dialog .book-note-filter-trigger:is(:hover,[aria-expanded=true]):not(:disabled),.chapter-archive-editor .book-note-filter-trigger:is(:hover,[aria-expanded=true]):not(:disabled){border-color:#6d846e}.chapter-archive-editor .book-note-filter-trigger:disabled{cursor:default;opacity:.55}.book-note-filter-options{z-index:3;top:calc(100% + 4px);width:100%;max-height:min(17rem, var(--filter-room,38dvh));box-sizing:border-box;overscroll-behavior:contain;background:#fffdf8;border:1px solid #9aa995;border-radius:8px;margin:0;padding:4px;list-style:none;position:absolute;inset-inline-start:0;overflow-y:auto;box-shadow:0 6px 18px #27392d26}.book-note-filter-options[data-inline]{position:relative;top:auto}.chapter-archive-editor .book-note-filter-options[data-inline]{box-shadow:none}.book-note-filter-options [role=option]{cursor:pointer;color:#26392b;overflow-wrap:anywhere;border-radius:4px;justify-content:space-between;align-items:center;gap:8px;min-height:40px;padding:8px 10px;font-size:15px;line-height:1.35;display:flex}.book-note-filter-options [role=option]:is(:hover,[data-active]){background:#e5eddf}.book-note-filter-options [aria-selected=true]{font-weight:650}.book-note-filter-options svg{flex:none}.book-notes-search>span{grid-template-columns:minmax(0,1fr);align-items:center;display:grid}.book-notes-search>span>*{grid-area:1/1}.chapter-notes-dialog .book-notes-search input[type=search]{padding-inline-start:36px}.book-notes-search svg{z-index:1;color:#425946;pointer-events:none;justify-self:start;margin-inline-start:11px}.book-notes-results{margin:14px 0}.book-notes-results p{margin:0;font-size:14px}.chapter-notes-dialog .book-notes-group{background:#fffdf8;border:1px solid #c9cec2;border-radius:8px;min-width:0;margin-top:12px;padding:0;overflow:hidden}.chapter-notes-dialog .book-notes-group h3{font:600 18px/1.4 var(--font-display,Georgia,serif);color:#344b3d;background:#e9ede3;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin:0;padding:11px 14px;display:flex}.book-notes-group h3 span{font:400 14px/1.5 var(--font-sans,system-ui,sans-serif)}.book-notes-group h3 small{font:500 13px/1.5 var(--font-sans,system-ui,sans-serif);margin-left:auto}.book-notes-group ul{margin:0;padding:0;list-style:none}.book-notes-group li{border-top:1px solid #dddcd1}.book-note-toggle{color:#28372d;text-align:left;cursor:pointer;width:100%;min-height:51px;font:inherit;background:0 0;border:0;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 14px;display:grid}.book-note-toggle:hover,.book-note-toggle[aria-expanded=true]{background:#f4f5ed}.book-note-toggle[aria-expanded=true] svg{transform:rotate(90deg)}.chapter-archive-dialog .book-note-toggle:focus-visible{outline-offset:-3px}.book-note-preview{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.book-note-type{color:#52674e;font-size:13px;font-weight:600}.book-note-detail{padding:5px clamp(14px,3vw,39px) 10px}.book-note-toggle[aria-expanded=true] .book-note-preview{white-space:pre-wrap;overflow-wrap:anywhere}.book-note-origin{color:#526156;font-size:14px}.book-note-detail blockquote{white-space:pre-wrap}.book-note-detail .chapter-notes-changed{margin:10px 0}.book-notes-pages{justify-content:center;margin-top:14px}.book-notes-empty{padding:12px 0}@container chapter-notes (width<=600px){.book-notes-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}.book-notes-search{grid-area:2/1/auto/-1}.book-note-filter-options{width:max(100%,min(17rem,100cqw - 68px))}.book-note-filter:last-child .book-note-filter-options{inset-inline:auto 0}.book-note-filter-options[data-inline]{width:100%}.book-note-filter-options [role=option]{min-height:44px}.book-notes-results{align-items:start}.book-note-toggle{grid-template-columns:auto minmax(0,1fr);gap:2px 6px;padding-inline:10px}.book-note-type{grid-column:2}}.book-note-meta{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:4px 12px;display:flex}.book-note-readiness{font-size:12px;font-weight:600}.book-note-readiness[data-state=ready]{color:#375942}.book-note-readiness[data-state=review]{color:#825223}.book-note-readiness[data-state=paused]{color:#625b54}.chapter-notes-review-count{border-bottom:1px solid #dcded3;flex-wrap:wrap;align-items:center;gap:6px 15px;padding:6px 16px;display:flex}@container chapter-notes (width<=600px){.book-note-meta{grid-column:2;justify-content:flex-start}}.book-note-filter-trigger .book-note-filter-compact{display:none}@container chapter-notes (width<=440px){.book-note-filter-trigger .book-note-filter-full{display:none}.book-note-filter-trigger .book-note-filter-compact{display:inline}}.book-note-match-count{display:block}.chapter-notes-dialog .chapter-suggestions{background:#fffdf8;border:1px solid #c7cdbe;border-radius:9px;min-width:0;padding:0}.chapter-suggestions-help{color:#4a584d;margin:0;padding:12px 16px}.chapter-suggestions table{table-layout:fixed;border-collapse:collapse;width:100%}.chapter-suggestions :is(th,td){text-align:start;vertical-align:top;padding:12px 16px}.chapter-suggestions th{color:#435346;background:#f4f4ed;font-size:13px}.chapter-suggestions th:first-child{width:21%}.chapter-suggestions th:last-child{width:23%}.chapter-suggestions :is(td,th){border-top:1px solid #deded2}.suggestion-destination :is(strong,span){display:block}.suggestion-destination strong{font-size:15px}.suggestion-destination span{color:#556157;margin-top:4px;font-size:13px}.suggestion-detail p{margin:0;line-height:1.5}.suggestion-detail small{color:#855c38;margin-top:5px;font-size:13px;display:block}.chapter-suggestions .chapter-note-source summary{gap:5px;min-height:40px;display:inline-flex}.chapter-suggestions .chapter-note-source summary:before{content:"▸"}.chapter-suggestions .chapter-note-source[open] summary:before{content:"▾"}.suggestion-actions{flex-wrap:wrap;align-items:center;gap:4px 8px;display:flex}.suggestion-actions .button{justify-content:center;align-items:center;gap:4px;min-height:40px;padding:5px 10px;font-size:14px;display:inline-flex}.suggestion-actions .chapter-notes-link{color:#586456;min-height:40px;font-size:14px}.chapter-notes-end-entry .button{align-items:center;gap:7px;display:inline-flex}.chapter-suggestion-evidence{gap:6px;display:grid}@container chapter-notes (width<=670px){.chapter-suggestions table,.chapter-suggestions tbody,.chapter-suggestions tr,.chapter-suggestions td{width:auto;display:block}.chapter-suggestions thead{clip-path:inset(50%);width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.chapter-suggestions tr{border-top:1px solid #d8dace;padding:12px}.chapter-suggestions td{border:0;padding:0}.suggestion-destination span{display:inline}.suggestion-destination{margin-bottom:6px}.suggestion-actions{margin-top:4px}.suggestion-actions :is(.button,.chapter-notes-link){min-height:44px}}.story-library{--paper:#fffdf8;--green:#344c3d;--brown:#896136;--line:#ded8c9;color:#303b32}.story-library *{box-sizing:border-box}.story-library header{margin:0 0 1.45rem}.story-library header h2{color:var(--green);margin:0 0 .5rem;font:500 clamp(1.9rem,3vw,2.35rem)/1.12 Georgia,serif}.story-library header p{color:#6d756c;margin:0;font-size:.95rem}.story-library small{color:#7a8278}.story-library button{cursor:pointer;background:var(--paper);color:var(--green);border:1px solid #d7cebc;border-radius:8px;padding:.58rem .85rem;font-weight:600}.story-library button:hover{background:#f6f8f1;border-color:#8ca08e}.story-library button:disabled{opacity:.5;cursor:default}.story-library-navigation{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.3rem;display:flex}.story-library-tabs{flex-wrap:wrap;align-items:center;gap:.45rem;display:flex}.story-category-tabs{margin:0}.story-category-tabs button{color:#748076;background:0 0;border:0;border-bottom:3px solid #0000;border-radius:0;padding:.8rem 1rem}.story-category-tabs button[aria-pressed=true]{color:var(--green);border-color:var(--green);background:0 0}.story-view-tabs{background:#eeeade;border-radius:9px;padding:.35rem}.story-view-tabs span{letter-spacing:.1em;color:#838a7c;padding:0 .35rem;font-size:.65rem}.story-view-tabs button{background:0 0;border:0;padding:.5rem .75rem;font-size:.82rem}.story-view-tabs button[aria-pressed=true]{background:var(--paper);box-shadow:0 1px 4px #3b3c2d18}.story-library-controls{flex-wrap:wrap;align-items:end;gap:.75rem;margin:1rem 0 1.2rem;display:flex}.story-library-controls label{color:#69766a;gap:.38rem;font-size:.78rem;font-weight:650;display:grid}.story-library-controls label:first-child{flex:260px;max-width:560px}.story-library input,.story-library select,.story-library textarea{background:var(--paper);color:#303b32;min-width:0;font:inherit;border:1px solid #d4cdbd;border-radius:8px;padding:.7rem .8rem}.story-library-controls input{width:100%}.story-library .story-add-button{background:var(--green);border-color:var(--green);color:#fffdf8;min-height:42px}.story-library .story-add-button:hover{background:#425f4d}.story-library-layout{grid-template-columns:minmax(210px,.85fr) minmax(300px,1.8fr);align-items:start;gap:1rem;display:grid}.story-library nav,.story-library-detail{background:var(--paper);border:1px solid #e2dccf;border-radius:12px;padding:1rem}.story-library nav>button{text-align:left;background:0 0;border:1px solid #0000;grid-template-rows:auto auto;grid-template-columns:38px 1fr;gap:.1rem .7rem;width:100%;margin-bottom:.4rem;padding:.8rem;display:grid}.story-library nav>button[aria-pressed=true]{background:#edf1e9;border-color:#ccd9ca}.story-list-avatar,.story-profile-avatar{color:var(--green);background:#e8ede2;border-radius:9px;place-items:center;font:600 1.1rem Georgia,serif;display:grid}.story-list-avatar{grid-row:1/span 2;width:38px;height:38px}.story-library nav>button small{font-size:.75rem}.story-library-pages{color:#748076;flex-wrap:wrap;align-items:center;gap:.5rem;margin:1rem 0 0;font-size:.75rem;display:flex}.story-library-pages button{padding:.4rem .55rem}.story-library-pages input{width:4rem;padding:.4rem}.story-library-detail{padding:1.5rem}.story-profile-heading{border-bottom:1px solid #ebe6dc;align-items:center;gap:1rem;padding-bottom:1.3rem;display:flex}.story-profile-avatar{width:58px;height:58px;font-size:1.65rem}.story-profile-eyebrow{letter-spacing:.11em;color:var(--brown);font-size:.65rem;font-weight:700}.story-profile-heading h3{color:var(--green);margin:.22rem 0;font:500 1.8rem/1.15 Georgia,serif}.story-profile-heading p{color:#798277;margin:.25rem 0 0;font-size:.8rem}.story-library-field{border-bottom:1px solid #eee9df;justify-content:space-between;gap:1rem;padding:1rem 0;display:flex}.story-field-content{flex:1;min-width:0}.story-library-field strong{color:var(--brown);text-transform:uppercase;letter-spacing:.06em;font-size:.76rem}.story-library-field p,.story-library-detail p{white-space:pre-wrap;line-height:1.55}.story-library-field p{margin:.4rem 0;font-size:.95rem}.story-field-actions{flex-wrap:wrap;align-items:flex-start;gap:.5rem;display:flex}.story-field-actions button{padding:.45rem .65rem;font-size:.75rem}.story-more-details{border-bottom:1px solid #eee9df;padding:.9rem 0}.story-more-details>summary,.story-relationship-text>summary{color:var(--green);cursor:pointer;font-weight:650}.story-profile-empty{color:#7a8278}.story-library-relationships{background:#f7faf4;border:1px solid #dce5d8;border-radius:12px;margin:1.2rem 0;padding:1.2rem}.story-graph-center{border:2px solid var(--green);background:#e7eee3;border-radius:999px;justify-content:center;align-items:center;min-width:7.5rem;min-height:4rem;padding:.8rem;font:600 1rem Georgia,serif;display:inline-flex}.story-graph-edge{align-items:center;gap:.5rem;margin:.65rem 0;display:flex}.story-graph-line{background:#8da58e;width:3rem;height:2px;display:block;position:relative}.story-graph-line:after{content:"";border-top:5px solid #0000;border-bottom:5px solid #0000;border-left:6px solid #8da58e;position:absolute;top:-4px;right:0}.story-graph-edge button{background:var(--paper);border-radius:999px;padding:.65rem 1rem}.story-relationship-text{margin:1rem 0}.story-relationship-text li{margin:.5rem 0}.story-relationship-text li button{background:0 0;border:0;padding:.1rem;text-decoration:underline}.story-library-relationships>label{gap:.4rem;margin:1rem 0 .5rem;font-size:.8rem;font-weight:650;display:grid}.story-library-relationships>button{margin:.25rem}.story-library-editor{z-index:1000;background:var(--paper);border:1px solid #cdbb9e;border-radius:14px;padding:1.5rem;position:fixed;inset:10% max(5%,50% - 310px);overflow:auto;box-shadow:0 0 0 100vmax #30251e88}.story-library-editor label{gap:.4rem;margin:.8rem 0;display:grid}.story-library-editor textarea{width:100%}.story-library-back{display:none}@media (max-width:700px){.story-library header h2{font-size:1.8rem}.story-library-navigation{flex-direction:column;align-items:stretch;gap:.5rem;padding-bottom:.7rem}.story-view-tabs{align-self:flex-start}.story-library-controls label:first-child{flex-basis:100%;max-width:none}.story-library-layout{display:block}.story-library-layout .story-library-detail,.story-library-layout.show-detail nav{display:none}.story-library-layout.show-detail .story-library-detail{display:block}.story-library-back{display:inline-block}.story-library-editor{inset:5%}.story-library-detail{padding:1rem}.story-library-field{display:block}.story-field-actions{margin-top:.7rem}}.story-graph{--graph-center:3.75rem}.story-graph-edge{padding-left:var(--graph-center);min-height:4rem;margin:0;position:relative}.story-graph-edge:before{content:"";left:var(--graph-center);background:#8da58e;width:2px;position:absolute;top:0;bottom:0}.story-graph-edge:last-child:before{bottom:50%}.story-graph-edge .story-graph-line{flex:0 0 2.5rem}.story-graph-edge .story-graph-edit{color:#637669;background:0 0;border:0;border-radius:6px;padding:.4rem;font-size:.75rem;text-decoration:underline}.story-graph-edge .story-graph-edit:hover{background:#eaf0e6}.story-timeline-chapter{color:var(--brown);letter-spacing:.07em;text-transform:uppercase;padding:.8rem .3rem .4rem;font-size:.72rem;font-weight:700}.story-profile-connections{border-bottom:1px solid #eee9df;padding:1rem 0}.story-profile-connections h4{color:var(--green);margin:0}.story-profile-connections p{margin:.5rem 0}.story-profile-connections p button{background:0 0;border:0;padding:.2rem;text-decoration:underline}.story-library-drafts{margin:1rem 0}@media (max-width:700px){.story-library.is-detail>header,.story-library.is-detail>.story-library-navigation,.story-library.is-detail>.story-library-tabs,.story-library.is-detail>.story-library-controls,.story-library.is-detail>.story-library-drafts,.story-library.is-detail>.story-library-plan-summary{display:none}.story-graph-edge{flex-wrap:wrap}.story-graph-edge button{overflow-wrap:anywhere;min-width:0}}.story-chapter-range{border:0;gap:.45rem;min-width:0;margin:0;padding:0;display:flex}.story-chapter-range legend{color:#69766a;margin:0 0 .38rem;padding:0;font-size:.78rem;font-weight:650}.story-chapter-range input{width:5.2rem}.story-library-controls .story-history-search{flex:none;align-items:center;gap:.35rem;max-width:none;display:flex}.story-library-controls .story-history-search input{width:auto}.story-draft-row{align-items:center;gap:.5rem;margin:.5rem 0;display:flex}.story-draft-row button+button{font-size:.75rem}.story-future-navigation{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;margin:1rem 0;display:flex}.story-future-navigation .story-library-tabs button[aria-pressed=true]{background:#e8eee6;border-color:#a8bcaa}.story-future-navigation .story-ai-action{color:#79552f;border-color:#896136}.story-library.is-detail>.story-future-navigation{display:flex}@media (max-width:700px){.story-library.is-detail>.story-future-navigation{display:none}}.story-library nav>button.story-list-record{grid-template-columns:minmax(0,1fr)}.story-filter-toggle{display:none}.story-filter-panel{flex-wrap:wrap;align-items:end;gap:.75rem;display:flex}.story-detail-actions{flex-wrap:wrap;align-items:center;gap:8px;margin:.75rem 0;display:flex}.story-library-pages{row-gap:.5rem}.story-library-pages label{white-space:nowrap;align-items:center;gap:.3rem;display:flex}@media (max-width:700px){.story-library-controls>label:first-child{flex:100%;max-width:none}.story-library .story-filter-toggle{align-items:center;min-height:42px;display:inline-flex}.story-filter-panel{flex:100%;align-items:end;display:none}.story-filter-panel.is-open{display:flex}.story-filter-panel label{flex:120px}.story-filter-panel .story-chapter-range,.story-filter-panel .story-history-search{flex:100%}.story-library .story-add-button{margin-left:auto}}.story-material-meta{overflow-wrap:anywhere;background:#f7f5ed;border-radius:9px;padding:.6rem .85rem}.story-material-meta p{margin:.35rem 0;font-size:.9rem}.story-search-help{color:#6d756c;margin:-.65rem 0 1rem;font-size:.8rem}.story-related-picker{border:1px solid #e2dccf;border-radius:10px;min-width:0;margin:1rem 0;padding:.8rem}.story-related-picker legend{color:var(--green);padding:0 .3rem;font-weight:650}.story-related-picker p{color:#69766a;font-size:.85rem}.story-related-picker input{width:100%}.story-related-chips{flex-wrap:wrap;gap:.5rem;display:flex}.story-related-chip{overflow-wrap:anywhere;background:#eaf0e5;border-radius:9px;align-items:center;gap:.5rem;max-width:100%;padding:.3rem .4rem .3rem .7rem;display:inline-flex}.story-related-chip span{min-width:0}.story-related-chip button{flex:none;padding:.35rem .5rem;font-size:.75rem}.story-related-options{gap:.3rem;max-height:12rem;display:grid;overflow:auto}.story-related-options button{text-align:left;overflow-wrap:anywhere}.story-editor-actions{padding:.8rem 0 max(.5rem,env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid #e2dccf;flex-wrap:wrap;gap:.5rem;display:flex;position:sticky;bottom:-1.5rem}.story-library-editor{overflow-wrap:anywhere;overscroll-behavior:contain}.story-library-editor input,.story-library-editor select{max-width:100%}@media (max-width:700px){.story-library-editor{padding:1rem;inset:2% 3%}.story-editor-actions{bottom:-1rem}.story-editor-actions button{flex:auto}}.story-library .story-editor-save{background:var(--green);border-color:var(--green);color:#fffdf8}.story-library .story-editor-save:hover{background:#425f4d}@media (max-width:700px){.story-library.is-detail>.story-search-help{display:none}}@media (min-width:701px){.story-library-controls{grid-template-columns:minmax(0,1fr) auto;align-items:end;display:grid}.story-library-controls>label:first-child{grid-area:1/1;max-width:none}.story-library-controls>.story-add-button{grid-area:1/2}.story-filter-panel{grid-area:2/1/auto/-1;padding-top:.15rem}.story-filter-panel>label:first-child{flex:0 220px;max-width:none}}.story-library .story-important-choice{background:#edf0e5;border:1px solid #bac5ae;border-radius:8px;grid-template-columns:22px 1fr;align-items:center;gap:8px;padding:12px;display:grid}.story-library .story-important-choice small{grid-column:2;font-weight:400;line-height:1.45}.story-library .story-important-choice input,.story-library .story-important-filter input{accent-color:#344c3d;width:20px;height:20px;margin:0}.story-library .story-important-filter{align-items:center;gap:8px;min-height:44px;display:flex}.story-library nav>button .story-plan-preview{-webkit-line-clamp:3;overflow-wrap:anywhere;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.plans-clues{--pc-ink:#263c30;--pc-muted:#536458;--pc-green:#335441;--pc-paper:#fffcf5;--pc-sage:#ebf0e5;--pc-line:#d4d6c6;--pc-warm:#f4ead8;--pc-brown:#794f25;min-width:0;color:var(--pc-ink)}.plans-clues :where(h3,h4,p,dl,dd,blockquote){margin:0}.plans-clues :is(button,summary,select){cursor:pointer}.plans-clues :is(button,summary,input,select,textarea):focus-visible{outline-offset:2px;outline:2px solid #497255}.plans-clues svg{flex-shrink:0;width:16px;height:16px}.plans-clues button{background:var(--pc-paper);min-height:37px;color:var(--pc-ink);border:1px solid #c5c6b5;border-radius:7px;justify-content:center;align-items:center;gap:7px;padding:7px 12px;font-family:inherit;font-size:.87rem;font-weight:600;line-height:1.3;display:inline-flex}.plans-clues button:disabled{opacity:.55;cursor:default}.plans-clues button:hover:not(:disabled),.plans-clues summary:hover{background-color:#f1f1e7}.plans-clues button.pc-primary{color:#fff;background:var(--pc-green);border-color:var(--pc-green)}.plans-clues button.pc-primary:hover:not(:disabled){background:#284635}.plans-clues button.pc-quiet{color:#3f5c47;background:0 0;border-color:#0000;padding:5px 8px}.plans-clues header.pc-head,.plans-clues .pc-heading,.plans-clues .pc-directory-head,.plans-clues .pc-reader-foot,.plans-clues .pc-savebar,.plans-clues .pc-actions,.plans-clues .pc-feedback{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 16px;display:flex}.plans-clues header.pc-head{margin:0 0 12px}.plans-clues header.pc-head h2{font:600 clamp(1.85rem,3vw,2.35rem)/1.13 var(--font-display,Georgia,serif);letter-spacing:-.025em;margin:0}.plans-clues header.pc-head p{color:var(--pc-muted);margin:.33rem 0 0;font-size:.94rem}.plans-clues .pc-ai{color:var(--pc-brown);background:#fbf5e9;border-color:#beac8f}.plans-clues .pc-tools{flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px;display:flex}.plans-clues .pc-switch{background:#f6f3e9;border:1px solid #c3c9b8;border-radius:8px;padding:3px;display:inline-flex}.plans-clues .pc-switch button{background:0 0;border-color:#0000;border-radius:5px;min-height:34px;padding:6px 12px}.plans-clues .pc-switch button[aria-pressed=true]{background:var(--pc-green);color:#fff}.plans-clues .pc-search{min-width:12rem;max-width:25rem;min-height:41px;color:var(--pc-muted);background:var(--pc-paper);border:1px solid #c3c9b8;border-radius:7px;flex:16rem;align-items:center;gap:8px;padding:0 10px;display:flex}.plans-clues .pc-search input{background:0 0;border:0;outline:none;flex:1;min-width:0;padding:8px 0;font-size:.86rem}.plans-clues .pc-search:focus-within{outline:2px solid #497255}.plans-clues .pc-overview,.plans-clues .pc-add{margin-left:auto}.plans-clues .pc-overview,.plans-clues small{color:var(--pc-muted);font-size:.78rem}.plans-clues .pc-filters{border:1px solid var(--pc-line);background:#f8f6ee;border-radius:9px;flex-wrap:wrap;align-items:end;gap:12px;margin:0 0 12px;padding:12px;display:flex}.plans-clues .pc-filters label,.plans-clues .pc-fields label,.plans-clues .pc-origin{color:var(--pc-muted);gap:5px;font-size:.83rem;font-weight:600;display:grid}.plans-clues :is(.pc-filters,.pc-fields,.pc-pager) :is(select,input:not([type=checkbox]),textarea){color:var(--pc-ink);background:#fffef9;border:1px solid #bec6b5;border-radius:6px;max-width:100%;min-height:39px;padding:7px 10px;font-family:inherit;font-size:.95rem;font-weight:400;line-height:1.45}.plans-clues .pc-filters input[type=number]{max-width:7.3rem}.plans-clues .pc-filters .pc-check,.plans-clues .pc-fields .pc-check{align-self:end;align-items:center;gap:8px;min-height:39px;display:flex}.plans-clues input[type=checkbox]{width:17px;height:17px;accent-color:var(--pc-green)}.plans-clues .pc-layout{grid-template-columns:minmax(225px,.37fr) minmax(0,1fr);align-items:start;gap:16px;display:grid}.plans-clues .pc-directory,.plans-clues .pc-card{background:var(--pc-paper);border:1px solid #c6ccbb;border-radius:11px;min-width:0;padding:0;overflow:hidden}.plans-clues .pc-directory-head{background:var(--pc-sage);border-bottom:1px solid var(--pc-line);padding:12px 14px}.plans-clues .pc-directory-head h3{font:650 1rem/1.3 var(--font-body,system-ui,sans-serif);align-items:center;gap:8px;margin:0;display:flex}.plans-clues .pc-rows{padding:4px 8px}.plans-clues .pc-row{text-align:left;border:1px solid #0000;border-bottom-color:var(--pc-line);width:100%;color:var(--pc-ink);background:0 0;border-radius:5px;justify-content:start;align-items:start;gap:11px;padding:11px 9px;font-weight:500;display:flex}.plans-clues .pc-row:last-child{border-bottom-color:#0000}.plans-clues .pc-row[aria-pressed=true]{background:var(--pc-sage);border:1px solid #adbea5;box-shadow:inset 3px 0 #6e906d}.plans-clues .pc-number{font-variant-numeric:tabular-nums;color:#526c59;margin-top:1px;font-size:.84rem}.plans-clues .pc-row>span:last-child{gap:3px;min-width:0;display:grid}.plans-clues .pc-row strong{overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.95rem;line-height:1.35;display:-webkit-box;overflow:hidden}.plans-clues .pc-preview{white-space:nowrap;text-overflow:ellipsis;color:var(--pc-muted);max-width:100%;font-size:.82rem;display:block;overflow:hidden}.plans-clues .pc-row small{font-size:.76rem;font-weight:400}.plans-clues .pc-detail{min-width:0}.plans-clues .pc-card-head{border-bottom:1px solid var(--pc-line);background:#f9f9ef;margin:0;padding:18px 22px 15px}.plans-clues .pc-meta,.plans-clues .pc-source summary,.plans-clues .pc-destination,.plans-clues .pc-facts dt,.plans-clues .pc-origin strong{align-items:center;gap:8px;display:flex}.plans-clues .pc-meta{color:var(--pc-muted);margin-bottom:9px;font-size:.79rem}.plans-clues .pc-kind{color:#3b563b;background:#e4ebdb;border-radius:5px;padding:3px 8px;font-weight:650}.plans-clues .pc-ochre{background:var(--pc-warm);color:var(--pc-brown)}.plans-clues .pc-card-head h3{font:600 clamp(1.35rem,2.4vw,1.85rem)/1.2 var(--font-display,Georgia,serif);letter-spacing:-.017em;overflow-wrap:anywhere;margin:0}.plans-clues .pc-heading{flex-wrap:nowrap;align-items:start}.plans-clues .pc-heading button{flex-shrink:0}.plans-clues .pc-body,.plans-clues .pc-fields{padding:18px 22px}.plans-clues .pc-body h4,.plans-clues .pc-comparison h4{font:650 .91rem/1.4 var(--font-body,system-ui,sans-serif);margin:0 0 7px}.plans-clues .pc-prose,.plans-clues .pc-history p,.plans-clues .pc-source blockquote,.plans-clues .pc-comparison p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}.plans-clues .pc-prose{margin:0;font-size:1rem}.plans-clues .pc-facts{background:#f3f4e9;border-radius:7px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0 0;padding:12px 15px;display:grid}.plans-clues .pc-facts dt,.plans-clues .pc-origin span{color:var(--pc-muted);font-size:.78rem;font-weight:500}.plans-clues .pc-facts dd{margin:4px 0 0;font-size:.99rem;font-weight:650}.plans-clues .pc-source{border-top:1px solid var(--pc-line);margin-top:15px}.plans-clues .pc-source summary{cursor:pointer;padding:11px 0 2px;font-size:.87rem;font-weight:600;list-style:none}.plans-clues .pc-source summary small{margin-left:auto;font-weight:400}.plans-clues .pc-source[open] summary>svg:last-child{transform:rotate(180deg)}.plans-clues .pc-source p,.plans-clues .pc-related{margin:10px 0;font-size:.86rem}.plans-clues .pc-source blockquote{color:var(--pc-muted);border-left:2px solid #9cac92;margin:8px 0;padding-left:10px}.plans-clues .pc-reader-foot,.plans-clues .pc-savebar{border-top:1px solid var(--pc-line);background:#faf8ef;padding:10px 16px}.plans-clues .pc-reader-foot{justify-content:flex-start;gap:12px}.plans-clues .pc-history,.plans-clues .pc-comparison{border-top:1px solid var(--pc-line);padding:14px 20px}.plans-clues .pc-history details{border-top:1px solid var(--pc-line);padding:7px 0}.plans-clues .pc-history details summary,.plans-clues .pc-link-picker summary{cursor:pointer;font-size:.87rem;font-weight:600}.plans-clues .pc-empty,.plans-clues .pc-inline-msg{color:var(--pc-muted);margin:0;padding:10px 14px}.plans-clues .pc-pager{border-top:1px solid var(--pc-line);flex-wrap:wrap;align-items:center;gap:6px;padding:8px;font-size:.8rem;display:flex}.plans-clues .pc-pager button{padding:4px 7px}.plans-clues .pc-fields{border:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 16px;min-width:0;margin:0;display:grid}.plans-clues .pc-fields .pc-wide{grid-column:1/-1}.plans-clues .pc-fields textarea{resize:vertical;width:100%;font:400 1rem/1.55 var(--font-body,system-ui,sans-serif)}.plans-clues .pc-origin{align-content:start}.plans-clues .pc-origin strong{min-height:39px;color:var(--pc-ink);font-size:.97rem}.plans-clues .pc-link-picker{border-top:1px solid var(--pc-line);padding:10px 0}.plans-clues .pc-fields small{font-weight:400}.plans-clues .pc-card.pc-editor{overflow:visible}.plans-clues .pc-editor .pc-card-head{border-radius:11px 11px 0 0;padding-top:14px;padding-bottom:12px}.plans-clues .pc-savebar{z-index:1;border-radius:0 0 11px 11px;padding:10px 18px;position:sticky;bottom:0}.plans-clues .pc-editor .pc-fields{row-gap:10px;padding-top:13px;padding-bottom:10px}.plans-clues .pc-destination{flex:15rem;min-width:0}.plans-clues .pc-destination div{overflow-wrap:anywhere;gap:3px;display:grid}.plans-clues .pc-destination strong{font-size:.86rem;line-height:1.4}.plans-clues .pc-actions{gap:7px}.plans-clues .pc-feedback{background:var(--pc-sage);border-left:3px solid #719271;justify-content:start;margin:7px 0;padding:8px 12px;font-size:.89rem}.plans-clues .pc-feedback p{overflow-wrap:anywhere;margin:0}.plans-clues .pc-back{display:none}@media (max-width:850px){.plans-clues .pc-overview{flex-basis:100%;margin:0}.plans-clues .pc-layout{grid-template-columns:minmax(200px,.43fr) minmax(0,1fr);gap:10px}}@media (max-width:700px){.plans-clues .pc-layout{display:block}.plans-clues .pc-detail,.plans-clues.pc-detail-open .pc-directory{display:none}.plans-clues.pc-detail-open .pc-detail{display:block}.plans-clues .pc-back{margin:0 0 8px;display:inline-flex}.plans-clues.pc-detail-open :is(.pc-head,.pc-tools,.pc-filters){display:none}.plans-clues .pc-overview{font-size:.76rem}.plans-clues .pc-add{margin-left:0}.plans-clues .pc-row{padding:10px}.plans-clues :is(.pc-card-head,.pc-fields,.pc-body,.pc-savebar){padding:13px}.plans-clues .pc-fields{grid-template-columns:minmax(0,1fr)}.plans-clues .pc-source summary{flex-wrap:wrap;gap:5px}.plans-clues .pc-source summary small{margin-left:0}.plans-clues .pc-heading{flex-wrap:wrap}.plans-clues .pc-actions{justify-content:flex-end;width:100%}.plans-clues .pc-facts{gap:8px;padding:10px}}.story-progress{--sp-ink:#263c30;--sp-muted:#536457;--sp-accent:#355540;--sp-border:#c7cfbe;--sp-line:#dde0d1;--sp-paper:#fffdf7;--sp-sage:#edf2e6;color:var(--sp-ink);min-width:0}.story-progress :is(h2,h3,h4,p,blockquote){margin:0}.story-progress :is(button,summary,select){cursor:pointer}.story-progress :is(button,input,select,textarea,summary):focus-visible{outline-offset:2px;outline:2px solid #497255}.story-progress svg{flex:none;width:1rem;height:1rem}.story-progress .sp-page-head h2{font:600 clamp(1.85rem,3vw,2.35rem)/1.13 var(--font-display,Georgia, serif);letter-spacing:-.025em}.story-progress .sp-page-head p{color:var(--sp-muted);margin:.35rem 0 .65rem;font-size:.94rem}.story-progress .sp-tools{z-index:3;background:var(--paper-deep,#f5f2eb);margin:0 0 5px;padding:7px 0 10px;position:sticky;top:0}.story-progress .sp-tool-row,.story-progress .sp-title-actions,.story-progress .sp-record-meta,.story-progress .sp-source-foot,.story-progress .sp-links,.story-progress .sp-record-foot,.story-progress .sp-filter-summary{flex-wrap:wrap;align-items:center;gap:8px 12px;display:flex}.story-progress .sp-tool-row{gap:8px}.story-progress .sp-tool-row button,.story-progress .sp-title-actions button,.story-progress .sp-record-foot button,.story-progress .sp-link,.story-progress .sp-directory h3,.story-progress .sp-source h4{justify-content:center;align-items:center;gap:7px;display:inline-flex}.story-progress .sp-tool-row button,.story-progress .sp-title-actions button{min-height:42px}.story-progress .sp-search,.story-progress .sp-cutoff{border:1px solid var(--sp-border);background:var(--sp-paper);border-radius:7px;align-items:center;gap:8px;min-width:0;height:42px;padding:0 10px;display:inline-flex}.story-progress .sp-search{flex:235px;max-width:460px}.story-progress .sp-search input{flex:1;width:100%;min-width:0}.story-progress .sp-search input,.story-progress .sp-cutoff select{color:var(--sp-ink);background:0 0;border:0;border-radius:2px;padding:5px 0;font-size:.88rem}.story-progress .sp-search:focus-within{outline:2px solid #497255}.story-progress .sp-search input:focus-visible{outline:0}.story-progress .sp-search svg,.story-progress .sp-cutoff span{color:var(--sp-muted)}.story-progress .sp-cutoff span{font-size:.78rem}.story-progress .sp-cutoff select{font-weight:650}.story-progress .sp-add{margin-left:auto}.story-progress button.sp-primary{border:1px solid var(--sp-accent);color:#fff;background:var(--sp-accent)}.story-progress button.sp-primary:hover:not(:disabled){background:#254332;border-color:#254332}.story-progress button.sp-link{color:var(--sp-accent);background:0 0;border:0;padding:5px 0;font-size:.83rem}.story-progress button.sp-link:hover{text-underline-offset:.15em;background:0 0;text-decoration:underline}.story-progress .sp-filters{background:var(--sp-paper);border:1px solid var(--sp-border);border-radius:8px;flex-wrap:wrap;align-items:end;gap:10px 14px;margin-top:7px;padding:12px 14px;display:flex}.story-progress .sp-filters label{color:var(--sp-muted);gap:3px;font-size:.78rem;font-weight:600;display:grid}.story-progress .sp-filters :is(input,select){height:34px;padding:5px 9px;font-size:.85rem}.story-progress .sp-filters input{width:6rem}.story-progress .sp-filters button{min-height:34px;padding-block:4px;font-size:.83rem}.story-progress .sp-filters p{color:#853a27;flex-basis:100%}.story-progress .sp-filter-summary{color:var(--sp-muted);margin-top:6px;font-size:.81rem}.story-progress .sp-filter-summary span{background:var(--sp-paper);border:1px solid var(--sp-border);border-radius:4px;padding:2px 7px}.story-progress .sp-columns{grid-template-columns:minmax(236px,.82fr) minmax(0,1.82fr);align-items:start;gap:16px;display:grid}.story-progress .sp-detail{min-width:0}.story-progress .sp-directory,.story-progress .sp-sheet,.story-progress .sp-editor-surface{border:1px solid var(--sp-border);background:var(--sp-paper);border-radius:10px;min-width:0;padding:0;overflow:clip}.story-progress .sp-directory-head{background:var(--sp-sage);border-bottom:1px solid var(--sp-border);justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;display:flex}.story-progress .sp-directory-head h3{font:inherit;font-size:.98rem;font-weight:700;line-height:1.3}.story-progress .sp-directory-head>span{color:var(--sp-muted);white-space:nowrap;font-size:.78rem}.story-progress .sp-group+.sp-group{border-top:2px solid #78866f}.story-progress .sp-group>summary{color:var(--sp-ink);background:#f2efe3;justify-content:space-between;align-items:center;gap:8px;padding:8px 15px;font-size:.82rem;font-weight:700;list-style:none;display:flex}.story-progress .sp-group[open]>summary{border-bottom:1px solid #c5cbb9}.story-progress .sp-group summary>span:first-child{overflow-wrap:anywhere}.story-progress .sp-group summary>span:last-child{align-items:center;gap:5px;display:flex}.story-progress .sp-group summary::-webkit-details-marker{display:none}.story-progress .sp-group summary svg{width:14px;height:14px;transform:rotate(-90deg)}.story-progress .sp-group[open]>summary svg{transform:none}.story-progress .sp-group:not([open])>summary{padding-block:12px}.story-progress .sp-group>div{gap:6px;padding:4px 6px;display:grid}.story-progress button.sp-row{text-align:left;width:100%;color:var(--sp-ink);background:0 0;border:1px solid #0000;border-radius:6px;gap:3px;padding:9px 11px;display:grid;position:relative}.story-progress .sp-row+.sp-row:before{content:"";pointer-events:none;border-top:1px solid #88957e;position:absolute;inset:-4px 10px auto}.story-progress button.sp-row:hover:not([aria-pressed=true]){background:#f4f5ec}.story-progress .sp-directory .sp-row[aria-pressed=true]{background:#e8efe2;border-color:#bccdb6;box-shadow:inset 3px 0 #698b67}.story-progress .sp-row strong{-webkit-line-clamp:2;overflow-wrap:anywhere;-webkit-box-orient:vertical;font-size:.93rem;line-height:1.35;display:-webkit-box;overflow:hidden}.story-progress .sp-row .sp-kind{color:#466548;align-items:center;gap:6px;font-size:.74rem;font-weight:550;display:flex}.story-progress .sp-kind:before{content:"";background:currentColor;border:1px solid;border-radius:50%;width:6px;height:6px}.story-progress .sp-row .sp-kind-claim{color:#80541d}.story-progress .sp-kind-claim:before{background:0 0;border-radius:1px;transform:rotate(45deg)}.story-progress .sp-row .sp-kind-knowledge{color:#376175}.story-progress .sp-kind-knowledge:before{border-radius:1px}.story-progress .sp-sheet-head{border-bottom:1px solid var(--sp-line);background:#f2f5eb;padding:17px 20px}.story-progress .sp-record-meta{color:var(--sp-muted);overflow-wrap:anywhere;font-size:.79rem}.story-progress .sp-type{color:#385f40;background:#e3ecdc;border-radius:4px;padding:2px 7px;font-weight:650}.story-progress .sp-type-claim{color:#745022;background:#f2e5ce}.story-progress .sp-type-knowledge{color:#315a6e;background:#e1ebed}.story-progress .sp-title-actions{justify-content:space-between;align-items:flex-start;margin-top:8px}.story-progress .sp-title-actions h3{font:620 clamp(1.2rem,2vw,1.65rem)/1.22 var(--font-display,Georgia,serif);overflow-wrap:anywhere;flex:220px}.story-progress .sp-read-body{padding:17px 20px}.story-progress .sp-read-body h4{color:var(--sp-muted);font-size:.83rem;font-weight:660}.story-progress .sp-record-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0 16px;font-size:1.02rem;line-height:1.55}.story-progress .sp-source{background:#f7f1e4;border:1px solid #ded3bd;border-radius:7px;padding:14px 16px}.story-progress .sp-source h4{color:#72532d}.story-progress .sp-source blockquote{white-space:pre-wrap;overflow-wrap:anywhere;color:#423f32;font:400 1.02rem/1.55 var(--font-display,Georgia,serif);border-left:2px solid #b49a69;margin:9px 0;padding-left:12px}.story-progress .sp-source p{color:var(--sp-muted);margin-block:7px;font-size:.85rem}.story-progress .sp-source p.sp-stale{color:#78511a}.story-progress .sp-source-foot{color:var(--sp-muted);justify-content:space-between;font-size:.75rem}.story-progress .sp-source-foot .sp-link{font-size:.78rem}.story-progress .sp-record-foot{border-top:1px solid var(--sp-line);background:#f8f9f1;justify-content:space-between;padding:10px 20px}.story-progress .sp-record-foot button{min-height:36px;font-size:.82rem}.story-progress .sp-record-foot button[aria-pressed=true]{opacity:1;background:#eaf0e4;border-color:#bdcbb5}.story-progress .sp-history-host{border-top:1px solid var(--sp-line);overflow-wrap:anywhere;padding:12px 18px;scroll-margin-block-start:74px}.story-progress .sp-history-host details{padding:7px 0}.story-progress .sp-history-host details p{white-space:pre-wrap}.story-progress .sp-pages{border-top:1px solid var(--sp-line);gap:5px;padding:8px 12px;display:grid}.story-progress .sp-pages>div,.story-progress .sp-pages form,.story-progress .sp-pages label{color:var(--sp-muted);flex-wrap:wrap;align-items:center;gap:6px;font-size:.78rem;display:flex}.story-progress .sp-pages button,.story-progress .sp-pages input{border-radius:5px;min-height:30px;padding:4px 7px;font-size:.78rem}.story-progress .sp-pages input{width:4rem}.story-progress .sp-empty,.story-progress .sp-notice{padding:15px 17px}.story-progress .sp-empty h4{font-size:1rem}.story-progress .sp-empty p{color:var(--sp-muted);margin-block:5px 9px;font-size:.88rem}.story-progress button.sp-back{display:none}@media (max-width:700px){.story-progress .sp-page-head h2{font-size:1.65rem}.story-progress .sp-page-head p{font-size:.86rem}.story-progress .sp-tool-row{grid-template-columns:minmax(130px,1fr) auto;display:grid}.story-progress .sp-search{max-width:none}.story-progress .sp-add{grid-area:1/2}.story-progress .sp-cutoff{justify-content:space-between}.story-progress .sp-tool-row button{padding-inline:9px;font-size:.86rem}.story-progress .sp-filters{gap:7px;padding:9px}.story-progress .sp-filters label:first-child{flex-basis:100%}.story-progress .sp-filter-toggle{justify-self:end}.story-progress .sp-columns{grid-template-columns:minmax(0,1fr)}.story-progress:not(.sp-mobile-detail) .sp-detail,.story-progress.sp-mobile-detail .sp-directory,.story-progress.sp-mobile-detail .sp-page-head p,.story-progress.sp-mobile-detail :is(.sp-search,.sp-cutoff,.sp-filter-toggle,.sp-filter-summary,.sp-filters){display:none}.story-progress.sp-mobile-detail .sp-tool-row{justify-content:space-between;display:flex}.story-progress.sp-mobile-detail button.sp-back{min-height:38px;display:inline-flex}.story-progress .sp-group>summary{min-height:36px}.story-progress .sp-sheet-head,.story-progress .sp-read-body{padding:14px}.story-progress .sp-title-actions{align-items:flex-start}.story-progress .sp-source{padding:11px}.story-progress .sp-record-foot{padding:9px 13px}}.story-progress .sp-record-editor{padding:1.1rem 1.25rem}.story-progress .sp-record-editor h3,.story-progress .sp-history h3{font:600 1.45rem/1.25 var(--font-display,Georgia,serif)}.story-progress .sp-record-editor .pw-form-fields{border:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem 1rem;margin:1rem 0;padding:0;display:grid}.story-progress .sp-record-editor label{color:var(--sp-muted);gap:.35rem;font-size:.86rem;font-weight:600;display:grid}.story-progress .sp-record-editor label:first-child{grid-column:1/-1}.story-progress .sp-record-editor label:has(textarea){grid-column:1/-1}.story-progress .sp-record-editor :is(input,textarea,select){width:100%;min-height:40px;font-size:.95rem;font-weight:400;line-height:1.45}.story-progress .sp-record-editor textarea{resize:vertical;min-height:100px;line-height:1.5}.story-progress .sp-save-footer{border-top:1px solid var(--sp-line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.6rem;padding-top:.8rem;display:flex}.story-progress .sp-save-place,.story-progress .sp-record-editor .pw-edit-buttons,.story-progress .sp-history-head,.story-progress .sp-history-head h3{align-items:center;gap:.5rem;display:flex}.story-progress .sp-save-place{color:var(--sp-muted);font-size:.83rem}.story-progress .sp-record-editor .story-editor-save{color:#fff;background:var(--sp-accent)}.story-progress .sp-history-head{justify-content:space-between}.story-progress .sp-history>p{color:var(--sp-muted);margin:.3rem 0;font-size:.85rem}.story-progress .sp-history details{border-top:1px solid var(--sp-line)}.story-progress .sp-history details>p{padding:.35rem 0}.story-progress .sp-history-switch{margin-top:.55rem}@media (max-width:650px){.story-progress .sp-record-editor{padding:.8rem}.story-progress .sp-record-editor .pw-form-fields{grid-template-columns:minmax(0,1fr)}}.story-progress .sp-move-note{grid-column:1/-1;font-size:.85rem}.story-progress .sp-version-source{color:var(--sp-muted);margin:.55rem 0;font-size:.85rem}.story-progress .sp-version-source blockquote{white-space:pre-wrap;border-left:2px solid var(--sp-border);margin-top:.35rem;padding-left:.6rem}.story-progress .sp-save-feedback{background:var(--sp-sage);border-left:3px solid var(--sp-accent);flex-wrap:wrap;align-items:center;gap:.6rem;margin:.25rem 0 .55rem;padding:.55rem .75rem;font-size:.9rem;display:flex}.story-progress .sp-save-feedback button{padding:.2rem .5rem}.story-progress .sp-save-feedback .sp-primary{min-height:36px;padding-inline:.75rem}.story-library.pw-library{--pw-ink:#263c30;--pw-muted:#506051;--pw-border:#c7cfbe;--pw-rule:#e2e2d5;--pw-panel:#fffdf7;--pw-world:#785124;--pw-world-border:#d5c09c;--pw-world-bg:#f5ead9;color:var(--pw-ink)}.pw-library :where(h2,h3,h4,p,ul){margin:0}.writer-shell .workspace-library:has(.pw-library){padding-block-start:0;scroll-padding-block-start:4.5rem}.pw-library svg{flex:none}.pw-library :where(button,input,select,textarea,summary):focus-visible{outline-offset:2px;outline:2px solid #52745b}.pw-sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.pw-library .pw-page-head,.pw-add-actions,.pw-controls,.pw-mobile-back{align-items:center;gap:10px;display:flex}.pw-library .pw-page-head{z-index:3;background:var(--paper-deep);border-bottom:1px solid var(--pw-border);flex-wrap:wrap;justify-content:space-between;margin:0 0 12px;padding-block:11px 7px;position:sticky;inset-block-start:0}.pw-library .pw-page-head h2{color:var(--pw-ink);font:600 clamp(1.85rem, 3vw, 2.35rem)/1.13 var(--font-display);letter-spacing:-.025em;margin:0}.pw-add-actions{flex-wrap:wrap}.pw-library :is(.pw-add-actions button,.pw-edit-button,.story-editor-save){white-space:nowrap;justify-content:center;align-items:center;gap:7px;min-height:40px;display:inline-flex}.pw-add-actions button{color:#2c513a;background:#eff4e8;border-color:#a1b39b}.pw-library .pw-add-world{color:#6b451b;background:#f8eddd;border-color:#ba9b6d}.pw-library .pw-add-world:hover{background:#f3e3cc;border-color:#a7804c}.pw-library :is(.pw-add-actions,.pw-tabs,.pw-aux-row,.pw-edit-footer,.pw-field,.pw-profile-trail,.pw-mobile-back,.pw-edges) button svg{width:16px;height:16px}.pw-controls{flex-wrap:wrap;margin-bottom:15px;font-size:.86rem}.pw-search,.pw-as-of{border:1px solid var(--pw-border);background:var(--pw-panel);min-width:0;min-height:42px;color:var(--pw-muted);border-radius:7px;align-items:center;gap:8px;padding:0 11px;display:flex}.pw-search{flex:300px;max-width:448px}.pw-search:focus-within,.pw-as-of:focus-within{box-shadow:0 0 0 1px #52745b}.pw-search>svg{width:16px;height:16px}.pw-controls :is(.pw-search input,.pw-as-of select){background:0 0;border:0;outline:none;min-height:40px;margin:0;padding:0}.pw-controls .pw-search input{width:100%}.pw-controls .pw-search input::placeholder{color:var(--pw-muted)}.pw-controls .pw-as-of select{min-width:114px;color:var(--pw-ink);font-weight:620}.pw-search-history{color:var(--pw-muted);align-items:center;gap:6px;display:flex}.pw-search-history input{accent-color:var(--green)}.pw-library .story-library-drafts{margin:0 0 13px}.pw-library .story-library-drafts>summary{color:var(--green);cursor:pointer}.pw-notice{color:#294c39;overflow-wrap:anywhere;background:#edf4e8;border:1px solid #bdcbb4;border-radius:7px;margin:0 0 12px;padding:8px 12px}.pw-notice button{margin-left:10px}.pw-columns{grid-template-columns:minmax(218px,26%) minmax(0,1fr);align-items:start;gap:16px;display:grid}.pw-library .pw-directory,.pw-profile{border:1px solid var(--pw-border);background:var(--pw-panel);border-radius:11px;min-width:0;padding:0;overflow:hidden}.pw-directory-heading{background:#ebf1e4;border-bottom:1px solid #d6dfcf;align-items:center;gap:9px;min-height:44px;padding:9px 13px;display:flex}.pw-directory-heading svg{width:19px;height:19px}.pw-directory-heading h3{flex:1;margin:0;font-size:1rem;font-weight:720}.pw-directory-heading>span{color:#345644;text-align:center;min-width:23px;font:650 .76rem/1.45 var(--font-geist-sans,sans-serif);background:#dce8d8;border-radius:1.5em;padding:2px 7px}.pw-world-section{border-top:1px solid var(--pw-border)}.pw-world-section .pw-directory-heading{background:var(--pw-world-bg);color:var(--pw-world);border-color:#e1d4bc}.pw-world-section .pw-directory-heading>span{color:#755024;background:#ebddc1}.pw-directory-list{padding:3px 5px;list-style:none}.pw-directory-list:empty{display:none}.pw-directory .pw-entry{text-align:left;width:100%;min-height:38px;color:var(--pw-ink);background:0 0;border:1px solid #0000;align-items:center;gap:9px;padding:4px 7px;display:flex}.pw-directory .pw-entry:hover{background:#f1f4ed;border-color:#d7dfd0}.pw-directory .pw-entry[aria-pressed=true]{background:#eaf1e6;border-color:#b8c9b2;box-shadow:inset 3px 0 #6b906d}.pw-world-section .pw-entry[aria-pressed=true]{background:#f4e8d4;border-color:#d3b585;box-shadow:inset 3px 0 #aa7c42}.pw-entry-name{overflow-wrap:anywhere;flex:1;min-width:0;font-size:.88rem}.pw-entry-name small{font-size:.72rem;display:block}.pw-entry small{color:var(--pw-muted);font-weight:500}.pw-entry small.pw-entry-type{color:#745a39;font-size:.72rem}.pw-avatar{color:#785124;background:#f4e9d7;border-radius:6px;flex:none;place-items:center;width:25px;height:25px;display:grid}.pw-avatar svg{width:15px;height:15px}.pw-avatar-people{color:#3b5941;font:700 .86rem/1 var(--font-display);background:#e9efdf;border-radius:50%}.pw-directory-empty{color:var(--pw-muted);padding:10px 13px;font-size:.83rem}.pw-directory-pages{color:var(--pw-muted);justify-content:end;align-items:center;gap:8px;padding:4px 8px 8px;font-size:.76rem;display:flex}.pw-directory-pages button{min-width:28px;min-height:28px;padding:3px 5px}.pw-directory-pages svg{width:15px;height:15px}.pw-chapter-shelf{border-top:1px solid var(--pw-border);background:#f7f9f5}.pw-chapter-shelf :is(.pw-chapter-toggle,.pw-chapter-label){color:#35534f;text-align:left;background:#e9efec;border:0;border-radius:0;align-items:center;gap:8px;width:100%;min-height:44px;margin:0;padding:9px 13px;font-size:.92rem;font-weight:700;display:flex}.pw-chapter-shelf .pw-chapter-toggle:hover{background:#e0e9e4}.pw-chapter-shelf .pw-chapter-toggle:focus-visible{outline-offset:-3px}.pw-chapter-toggle>span{flex:1;min-width:0}.pw-chapter-shelf :is(.pw-chapter-toggle,.pw-chapter-label)>svg{width:16px;height:16px}.pw-chapter-toggle[aria-expanded=true]>svg:last-child{rotate:180deg}.pw-chapter-shelf .pw-directory-list{border-top:1px solid #d8e2dc}.pw-profile-trail{padding:9px 18px 0}.pw-profile-head{align-items:center;gap:13px;padding:16px 19px 13px;display:flex}.pw-profile-head .pw-avatar{width:49px;height:49px;font-size:1.6rem}.pw-profile-head .pw-avatar svg{width:25px;height:25px}.pw-profile-head div{min-width:0}.pw-profile-head p{color:var(--pw-muted);font-size:.79rem}.pw-profile-head h2{color:var(--pw-ink);font:600 clamp(1.75rem, 2.8vw, 2.15rem)/1.12 var(--font-display);letter-spacing:-.02em;overflow-wrap:anywhere;margin-top:2px}.pw-tabs{border-bottom:1px solid var(--pw-border);align-items:end;gap:19px;padding:0 19px;display:flex}.pw-tabs button{min-height:37px;color:var(--pw-muted);background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0;align-items:center;gap:6px;margin-bottom:-1px;padding:8px 0 9px;font-size:.85rem;display:inline-flex}.pw-tabs button[aria-pressed=true]{color:#2a513d;border-color:#38664a;font-weight:710}.pw-profile-body{padding:0 19px 10px}.pw-profile-body>form:first-child{margin-top:12px}.pw-field{border-bottom:1px solid var(--pw-rule);padding:12px 0 10px}.pw-field-row{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;display:grid}.pw-field-copy h4{color:var(--pw-muted);margin-bottom:4px;font-size:.84rem}.pw-field-copy p,.pw-history p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.52}.pw-library .pw-edit-button{min-height:34px;padding:6px 10px;font-size:.84rem}.pw-library .pw-text-button{text-underline-offset:3px;background:0 0;border:0;align-items:center;gap:5px;min-height:31px;padding:4px 0;font-size:.8rem;text-decoration:underline;display:inline-flex}.pw-library .pw-pin{margin-top:2px}.pw-pin[aria-pressed=true]{color:#254d35}.pw-other-fields{border-bottom:1px solid var(--pw-rule);padding:9px 0}.pw-library :is(.pw-other-fields,.pw-history,.pw-excerpt) summary{cursor:pointer;color:var(--green);font-size:.88rem}.pw-library :is(.pw-history,.pw-excerpt) blockquote{white-space:pre-wrap;overflow-wrap:anywhere;font:1rem/1.55 var(--font-display);border-left:2px solid #b6c2a6;margin:8px 0;padding:5px 11px}.pw-field-source,.pw-aux-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 12px;margin-top:6px;display:flex}.pw-field-source small,.pw-aux-row span{color:var(--pw-muted);font-size:.8rem}.pw-aux-row{margin:10px 0 4px}.pw-aux-row span{align-items:center;gap:6px;display:flex}.pw-aux-row span svg{width:16px;height:16px}.pw-empty{color:var(--pw-muted);padding:14px 0}.pw-excerpt{margin:4px 0}.pw-history{margin-top:14px}.pw-history>details{border-bottom:1px solid var(--pw-rule);padding:8px 0}.pw-history>details p{margin:5px 0}.pw-edges{padding:0;list-style:none}.pw-edges li{border-bottom:1px solid var(--pw-rule);overflow-wrap:anywhere;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;display:flex}.pw-connect{padding:14px 0}.pw-connect h3{margin-bottom:9px;font-size:1rem}.pw-profile .story-related-options{margin-top:5px}.pw-edges li>.pw-editor{width:100%}.pw-editor{overflow-wrap:anywhere;background:#f0f4e9;border:1px solid #bdcbb4;border-radius:8px;min-width:0;padding:12px 14px}.pw-new-profile .pw-editor{background:var(--pw-panel);border:0;border-radius:0;padding:16px 18px}.pw-edit-heading{justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;display:flex}.pw-edit-heading h3{font-size:.94rem}.pw-edit-heading h2{font:600 1.65rem/1.2 var(--font-display)}.pw-edit-state{color:#775121;flex:none;align-items:center;gap:6px;font-size:.77rem;display:flex}.pw-edit-state:before{content:"";background:#a86f33;border-radius:50%;width:6px;height:6px;display:inline-block}.pw-form-fields{border:0;min-width:0;margin:0;padding:0}.pw-library :is(.pw-form-fields,.pw-relation-target)>label{gap:5px;margin:6px 0;font-size:.86rem;font-weight:650;display:grid}.pw-library :is(.pw-form-fields,.pw-connect) :is(textarea,input:not([type=radio],[type=checkbox]),select){width:100%;max-width:100%;color:var(--pw-ink);padding:7px 10px;font-size:1rem;font-weight:400}.pw-library .pw-form-fields textarea{resize:vertical;min-height:52px}.pw-library .pw-form-fields small{color:var(--pw-muted)}.pw-type-picker{border:0;flex-wrap:wrap;align-items:center;gap:7px;margin:0 0 10px;padding:0;display:flex}.pw-type-picker legend{margin:0 0 5px;padding:0;font-size:.84rem;font-weight:650}.pw-type-picker label{cursor:pointer;background:#fffdf7;border:1px solid #d8ceb8;border-radius:6px;align-items:center;gap:6px;padding:6px 9px;font-size:.86rem;display:flex}.pw-type-picker label:has(input:checked){color:#6b4a20;background:#f4e8d5;border-color:#ae935f}.pw-type-picker input{accent-color:#815c2e;margin:0;padding:0}.pw-edit-footer,.pw-edit-buttons,.pw-save-target{align-items:center;gap:10px;display:flex}.pw-edit-footer{flex-wrap:wrap;justify-content:space-between;margin-top:10px}.pw-edit-buttons{justify-content:end;margin-left:auto}.pw-save-target{color:var(--pw-muted);gap:6px;font-size:.81rem}.pw-save-target svg{width:15px;height:15px}.pw-save-target strong{color:var(--pw-ink)}.pw-editor-notice,.pw-compare{margin-top:8px}.pw-compare{border:1px solid var(--pw-border);background:var(--pw-panel);border-radius:6px;padding:9px}.pw-compare button{margin-top:7px}.pw-library .pw-mobile-back{display:none}.pw-person-profile{overflow:visible}.pw-person-profile .pw-profile-head{border-bottom:1px solid var(--pw-border);background:#fafaf1;border-radius:10px 10px 0 0;padding:18px 20px}.pw-person-profile .pw-profile-head h2{max-width:30ch}.pw-person-pin{flex:none;margin-left:auto;position:relative}.pw-person-pin>summary{cursor:pointer;border:1px solid var(--pw-border);color:#315440;background:#f2f5eb;border-radius:6px;align-items:center;gap:6px;min-height:34px;padding:5px 8px;font-size:.8rem;font-weight:630;list-style:none;display:flex}.pw-person-pin>summary::-webkit-details-marker{display:none}.pw-person-pin svg{width:15px;height:15px}.pw-person-pin[open] summary svg:last-child{rotate:180deg}.pw-pin-menu{z-index:2;border:1px solid var(--pw-border);background:var(--pw-panel);border-radius:7px;width:min(240px,72vw);max-height:16rem;padding:5px;display:grid;position:absolute;top:calc(100% + 4px);right:0;overflow:auto;box-shadow:0 4px 12px #263c301a}.pw-library .pw-pin-menu button{text-align:start;justify-content:space-between;padding:5px 8px;text-decoration:none}.pw-library .pw-pin-menu button:hover{background:#ecf1e6}.pw-person-section{min-width:0;padding:15px 20px 17px}.pw-person-section+.pw-person-section{border-top:1px solid var(--pw-rule)}.pw-section-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 12px;min-height:34px;margin-bottom:9px;display:flex}.pw-section-heading h3{color:var(--pw-ink);font:600 1.24rem/1.2 var(--font-display);align-items:center;gap:8px;display:flex}.pw-section-heading h3 svg{color:#57735c;width:17px;height:17px}.pw-section-heading button svg{width:16px;height:16px}.pw-section-empty{color:var(--pw-muted);font-size:.86rem}.pw-profile-brief{padding:2px 0}.pw-person-section .pw-other-fields{border-bottom:0;padding-bottom:0}.pw-person-section .pw-field:last-child,.pw-person-section .pw-edges li:last-child{border-bottom:0}.pw-person-section .pw-connect{margin-top:6px}.pw-person-section .pw-edges{margin:0}.pw-person-section .pw-edges li,.pw-person-section .pw-edges li>div{min-width:0}.pw-library .pw-relation-summary button{min-height:26px;padding-block:0;font-size:.92rem}.pw-relation-summary p{color:var(--pw-muted);font-size:.85rem}.pw-relation-summary small{color:var(--pw-muted);font-size:.78rem}.pw-person-editor .pw-edit-footer,.pw-person-section .pw-connect .pw-edit-footer{border-top:1px solid #d5decf;padding-top:9px}.pw-library .pw-person-editor .pw-edit-buttons{flex-wrap:wrap;gap:6px 11px}.pw-profile-inputs,.pw-relation-inputs{align-items:start;display:grid}.pw-profile-inputs{grid-template-columns:minmax(110px,1fr) minmax(0,2fr);column-gap:14px}.pw-profile-inputs:has(label:only-child){grid-template-columns:minmax(0,1fr)}.pw-relation-inputs:has(>label){grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:14px}.pw-relation-target{min-width:0}.pw-person-sources{border-top:1px solid var(--pw-border);background:#f7f5eb;border-radius:0 0 10px 10px}.pw-library .pw-source-toggle{text-align:start;width:100%;min-height:48px;color:var(--pw-ink);background:0 0;border:0;border-radius:0 0 10px 10px;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:4px 8px;padding:9px 20px;display:grid}.pw-library .pw-source-toggle:hover,.pw-library .pw-source-toggle[aria-expanded=true]{background:#f1efe3}.pw-source-toggle>span{align-items:center;gap:7px;min-width:0;display:flex}.pw-source-toggle>span:first-child>svg{color:#7d663f}.pw-source-toggle small{color:var(--pw-muted);font-size:.78rem;font-weight:500}.pw-source-toggle svg{width:16px;height:16px}.pw-source-toggle .pw-source-action{color:#3c5b43}.pw-source-body{border-top:1px solid var(--pw-rule)}.pw-source-body>.pw-empty{padding-top:0}@media (max-width:700px){.writer-shell .workspace-library:has(.pw-library){scroll-padding-block-start:7.5rem}.writer-shell .workspace-library:has(.pw-show-detail){scroll-padding-block-start:4.5rem}.pw-library .pw-page-head{flex-direction:column;align-items:start;gap:6px}.pw-library .pw-page-head h2{font-size:1.5rem}.pw-library .pw-add-actions{gap:6px}.pw-library .pw-add-actions button{min-height:44px;padding:5px 9px;font-size:.82rem}.pw-search{flex-basis:100%;max-width:none}.pw-as-of{flex:1;justify-content:space-between}.pw-columns{grid-template-columns:minmax(0,1fr)}.pw-detail,.pw-show-detail .pw-directory{display:none}.pw-show-detail .pw-detail{display:block}.pw-show-detail :is(.pw-page-head h2,.pw-controls){display:none}.pw-library.pw-show-detail .pw-mobile-back{margin-bottom:6px;display:flex}.pw-library :is(.pw-entry,.pw-chapter-toggle,.pw-edit-button){min-height:43px}.pw-profile-head{padding:13px}.pw-tabs{gap:10px;padding:0 12px}.pw-tabs button{gap:4px;min-height:42px;font-size:.75rem}.pw-tabs button svg{width:14px;height:14px}.pw-profile-body{padding:0 12px 8px}.pw-edit-footer,.pw-edit-buttons{gap:8px}.pw-edit-footer .story-editor-save{min-height:43px}.pw-person-profile .pw-profile-head,.pw-person-section,.pw-library .pw-source-toggle{padding-inline:12px}:is(.pw-profile-inputs,.pw-relation-inputs:has(>label)){grid-template-columns:minmax(0,1fr)}.pw-source-toggle small{text-align:end}}@media (max-width:365px){.pw-tabs button svg{display:none}.pw-person-pin>summary{gap:4px;padding-inline:5px}}.writer-shell .story-reference{overflow-wrap:anywhere;padding:18px;font-size:14px;line-height:1.65}.writer-shell .story-reference h3{color:var(--green);margin:0 0 10px;font-size:18px}.writer-shell .story-reference ol{margin:18px 0;padding-left:22px}.writer-shell .story-reference li{padding:3px 0}.writer-shell .story-reference .button{white-space:normal;min-height:44px;padding:10px 13px;font-size:13px}.writer-shell .reference-eyebrow{color:var(--ink-soft);margin:0 0 10px;font-size:12px;font-weight:650}.writer-shell .reference-card{border:1px solid var(--line-strong);background:var(--white);border-radius:9px;padding:0;overflow:hidden}.writer-shell .reference-list-head{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.writer-shell .reference-list-head .reference-eyebrow{margin:0}.writer-shell .reference-card-list{gap:10px;display:grid}.writer-shell .reference-card-head{align-items:flex-start;gap:6px;padding:8px;display:flex}.writer-shell .reference-card-toggle{text-align:left;min-width:0;min-height:44px;color:var(--ink);font:inherit;cursor:pointer;overflow-wrap:anywhere;background:0 0;border:0;flex-direction:column;flex:1;align-items:flex-start;gap:4px;padding:7px;display:flex}.writer-shell .reference-card-meta{flex-wrap:wrap;align-items:baseline;gap:4px 10px;display:flex}.writer-shell .reference-card-meta .reference-field{font-size:12px}.writer-shell .reference-card-name{color:var(--green);font-size:15px;font-weight:650}.writer-shell .reference-card-toggle-label{color:var(--ink-soft);font-size:12px}.writer-shell .reference-remove{border:1px solid var(--line-strong);background:var(--white);min-height:44px;color:var(--green);font:inherit;cursor:pointer;border-radius:6px;flex:none;padding:6px 9px;font-size:12px}.writer-shell .reference-card-body{border-top:1px solid var(--line);padding:0 15px 15px}.writer-shell .reference-card>.reference-review-note{margin:0 15px 12px}.writer-shell .reference-added{color:var(--green);font-weight:650}.writer-shell .reference-card small,.writer-shell .reference-help{color:var(--ink-soft);font-size:12px;line-height:1.6}.writer-shell .reference-help{margin:12px 0}.writer-shell .reference-field{color:var(--green);font-size:13px}.writer-shell .reference-value,.writer-shell .reference-selection>p{white-space:pre-wrap;overflow-wrap:anywhere}.writer-shell .reference-actions{flex-wrap:wrap;gap:8px;margin-top:14px;display:flex}.writer-shell .reference-review-note{border-left:3px solid var(--bronze,#896438);background:var(--paper);padding:10px;font-size:12px}.writer-shell .story-reference-dialog{overflow:hidden}.writer-shell .story-reference-dialog>footer{border-top:1px solid var(--line);background:var(--paper);flex:none;justify-content:space-between;gap:12px;padding:14px 20px;display:flex}.writer-shell .story-reference-dialog button{white-space:normal;min-height:44px;line-height:1.4}.writer-shell .reference-search{flex-direction:column;gap:7px;font-size:13px;font-weight:650;display:flex}.writer-shell .reference-search input{width:100%;min-width:0;min-height:44px}.writer-shell .reference-filters{flex-wrap:wrap;gap:7px;margin:14px 0;display:flex}.writer-shell .reference-filters button,.writer-shell .reference-pagination button{border:1px solid var(--line-strong);background:var(--white);color:var(--green);font:inherit;border-radius:7px;padding:8px 12px;font-size:12px}.writer-shell .reference-filters button[aria-pressed=true]{background:var(--green);color:var(--white);border-color:var(--green)}.writer-shell .reference-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.writer-shell .reference-options>button{text-align:left;background:var(--white);border:1px solid var(--line-strong);min-width:0;color:var(--ink);font:inherit;overflow-wrap:anywhere;border-radius:8px;flex-direction:column;align-items:stretch;gap:6px;padding:12px;font-size:13px;display:flex}.writer-shell .reference-options>button[aria-pressed=true]{border:2px solid var(--green);background:var(--green-pale);padding:11px}.writer-shell .reference-options span,.writer-shell .reference-options small{color:var(--ink-soft);font-size:12px}.writer-shell .reference-pagination{justify-content:space-between;align-items:center;gap:8px;margin-top:12px;font-size:12px;display:flex}.writer-shell .reference-selection,.writer-shell .reference-empty{border:1px solid var(--line);background:var(--paper);border-radius:8px;padding:14px;font-size:13px}.writer-shell .reference-selection h3,.writer-shell .reference-empty h3{margin:0 0 8px;font-size:15px}.writer-shell .reference-manage{border-top:1px solid var(--line);margin-top:18px;padding-top:14px}.writer-shell .reference-manage summary{color:var(--green);cursor:pointer;min-height:30px}.writer-shell .reference-workspace-links{gap:8px;margin-top:12px;display:grid}.writer-shell .reference-workspace-links button{text-align:left;background:var(--white);color:var(--green);border:1px solid var(--line-strong);font:inherit;border-radius:7px;flex-direction:column;gap:5px;padding:10px;font-size:13px;display:flex}.writer-shell .reference-workspace-links span{color:var(--ink-soft);font-size:12px}@media (max-width:600px){.writer-shell .reference-options{grid-template-columns:1fr}.writer-shell .story-reference-dialog>footer{flex-direction:column-reverse;padding:12px 18px}.writer-shell .story-reference-dialog>footer button{width:100%}.writer-shell .reference-search input{font-size:16px}.writer-shell .reference-filters{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}}.writer-shell .quick-story-action{z-index:10;pointer-events:none;justify-content:flex-end;align-items:center;gap:8px;max-width:832px;margin:0 auto 12px;padding-inline:12px;display:flex;position:sticky;bottom:12px}.writer-shell .quick-story-action.has-selection{bottom:66px}.writer-shell .quick-story-trigger,.writer-shell .quick-story-status{border:1px solid var(--line-strong);background:var(--white);color:var(--green);border-radius:8px;font-size:13px;box-shadow:0 3px 12px #262c2224}.writer-shell .quick-story-trigger{white-space:nowrap;pointer-events:auto;align-items:center;gap:7px;min-height:42px;padding:5px 12px;font-weight:700;display:flex}.writer-shell .quick-story-trigger:hover{background:var(--green-pale)}.writer-shell .quick-story-trigger:disabled{opacity:.55}.writer-shell .quick-story-status:empty{display:none}.writer-shell .quick-story-status{padding:7px 10px}.writer-dialog-backdrop:has(>.quick-story-note-dialog){background:#293a2c50;place-items:end}.writer-shell .quick-story-note-dialog{width:min(490px,100%);max-height:calc(var(--writer-visible-height,100dvh) - 40px);overflow:hidden}.quick-story-note-dialog>header{padding:13px 18px}.quick-story-note-dialog .writer-dialog-content{padding:16px 18px 18px}.quick-story-note-dialog .writer-dialog-eyebrow{color:var(--ink-soft);font-size:13px}.quick-story-note-dialog .writer-dialog-footer{border-top:1px solid var(--line);flex-wrap:wrap;flex:none;justify-content:space-between;align-items:center;gap:10px;padding:12px 18px;display:flex}.quick-story-destination{min-width:0;color:var(--ink-soft);overflow-wrap:anywhere;gap:2px;font-size:12px;display:grid}.quick-story-destination strong{color:var(--ink);font-size:14px}.quick-story-note-dialog .writer-dialog-footer .button{white-space:normal;overflow-wrap:anywhere;max-width:100%;min-height:44px;margin-inline-start:auto}.quick-story-types{border:0;min-width:0;margin:14px 0 0;padding:0}.quick-story-types legend{margin-bottom:7px;font-weight:650}.quick-story-type-options{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:1fr;gap:6px;display:grid}.quick-story-note-dialog .quick-story-types label{min-width:0;margin:0;display:flex;position:relative}.quick-story-types input{opacity:0;width:1px;height:1px;margin:0;position:absolute;top:0;left:0}.quick-story-type-tile{border:1px solid var(--line);width:100%;min-height:44px;color:var(--ink);text-align:center;text-wrap:balance;cursor:pointer;border-radius:7px;justify-content:center;align-items:center;padding:9px 4px 6px;font-size:13px;font-weight:500;line-height:1.2;display:flex;position:relative}.quick-story-types input:checked+.quick-story-type-tile{background:var(--green-pale);border-color:var(--green);color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.quick-story-types input:checked+.quick-story-type-tile:after{content:"";border:1.5px solid;border-width:0 1.5px 1.5px 0;width:4px;height:7px;position:absolute;inset:3px 5px auto auto;transform:rotate(40deg)}.quick-story-types input:focus-visible+.quick-story-type-tile{outline:2px solid var(--green);outline-offset:1px}.quick-story-types input:disabled+.quick-story-type-tile{opacity:.55;cursor:default}.quick-story-type-short{display:none}.quick-story-profile{gap:6px;margin-top:14px;display:grid}.quick-story-profile label,.quick-story-value{font-weight:650;display:block}.quick-story-note-dialog .quick-story-value{overflow-wrap:anywhere;margin:0 0 6px}.quick-story-note-dialog textarea,.quick-story-profile :is(input,.book-note-filter-trigger){border:1px solid var(--line-strong);width:100%;color:var(--ink);border-radius:6px;padding:8px 10px;font-size:16px}.quick-story-note-dialog textarea{resize:vertical;min-height:88px;line-height:1.45;display:block}.quick-story-profile :is(input,.book-note-filter-trigger){background:var(--white);min-height:44px}.quick-story-profile .book-note-filter-trigger:hover:not(:disabled),.quick-story-profile .book-note-filter-trigger[aria-expanded=true]{border-color:var(--green)}.quick-story-profile .book-note-filter-trigger:disabled{cursor:default;opacity:.55}.quick-story-profile .book-note-filter-options{box-shadow:none}.quick-story-profile .book-note-filter-options [role=option]{min-height:44px}.quick-story-profile label>input{margin-top:6px;display:block}.quick-story-source{color:var(--ink-soft);margin-top:6px;font-size:13px}.quick-story-source summary{cursor:pointer;color:var(--green);padding-block:5px;font-weight:650}.quick-story-note-dialog .quick-story-source label{align-items:center;gap:6px;margin-top:5px;display:flex}.quick-story-source small{margin-top:5px;display:block}.quick-story-source blockquote{border-inline-start:2px solid var(--line-strong);white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 0;padding:7px 12px}.quick-story-link{color:var(--green);background:0 0;border:0;justify-self:start;padding:7px 0;text-decoration:underline}.quick-story-note-dialog .writer-dialog-content p[role=alert]{margin:9px 0 0}.quick-story-error{color:#963b30}@media (max-width:820px){.writer-shell .quick-story-action{bottom:calc(var(--writer-mobile-nav-height,58px) + 8px)}.writer-shell .quick-story-action.has-selection{bottom:calc(var(--writer-mobile-nav-height,58px) + 58px)}.writer-shell .quick-story-trigger{min-height:44px}.writer-dialog-backdrop:has(>.quick-story-note-dialog){bottom:max(0px, calc(100dvh - var(--writer-visible-height,100dvh)));justify-items:center;padding:8px}.writer-shell .quick-story-note-dialog{max-height:calc(var(--writer-visible-height,100dvh) - 16px)}.quick-story-note-dialog .writer-dialog-footer{padding-bottom:max(12px, env(safe-area-inset-bottom))}}@media (max-width:450px){.quick-story-note-dialog>header,.quick-story-note-dialog .writer-dialog-content,.quick-story-note-dialog .writer-dialog-footer{padding-inline:12px}.quick-story-type-options{gap:5px}.quick-story-type-tile{padding-inline:2px}.quick-story-type-full{display:none}.quick-story-type-short{display:inline}}.writer-shell>.memory-workspace{flex:auto;min-height:0;overflow:auto}.memory-workspace{--mw-ink:#273b2e;--mw-muted:#5b6b5e;--mw-line:#c6cfbd;--mw-rule:#dadfd1;--mw-paper:#fffdf6;--mw-tint:#eff3e8;width:100%;max-width:1220px;color:var(--mw-ink);box-sizing:border-box;margin:0 auto;padding:22px clamp(16px,2.3vw,32px) 38px}.memory-workspace[hidden]{display:none}.memory-workspace *{box-sizing:border-box}.memory-workspace :is(h2,h3,h4,h5,p,ul,fieldset,blockquote){margin:0}.memory-workspace :is(input,select,textarea,button){font:inherit;color:inherit}.memory-workspace button{background:var(--mw-paper);cursor:pointer;border:1px solid #b8c2ab;border-radius:7px;justify-content:center;align-items:center;gap:6px;min-height:35px;padding:6px 11px;font-size:13px;font-weight:650;line-height:1.35;display:inline-flex}.memory-workspace button:not(:disabled):hover{background:#eff3e8}.memory-workspace button:disabled{opacity:.48;cursor:default}.memory-workspace :is(button,input,select,textarea,summary):focus-visible{outline-offset:2px;outline:2px solid #577452}.memory-workspace :is(input,select,textarea){background:#fffef9;border:1px solid #b9c3b2;border-radius:6px}.memory-workspace select{min-height:36px;padding:5px 9px;font-size:13px}.memory-workspace textarea{resize:vertical;width:100%;min-height:74px;padding:10px 12px;font-size:15px;line-height:1.55;display:block}.memory-workspace .mw-primary{color:#fff;background:#35523e;border-color:#35523e}.memory-workspace .mw-primary:not(:disabled):hover{background:#294433}.memory-workspace .mw-link{color:#395a43;text-underline-offset:3px;background:0 0;border-color:#0000;min-height:29px;padding:3px 2px;text-decoration:underline}.memory-workspace .mw-icon-btn{min-width:32px;min-height:32px;padding:4px}.memory-workspace svg{flex:none}.mw-heading,.mw-row,.mw-actions,.mw-card-heading,.mw-document-head,.mw-tail,.mw-pager,.mw-summary-meta,.mw-note-detail,.mw-savebar{align-items:center;gap:10px;display:flex}.mw-row,.mw-card-heading,.mw-pager,.mw-document-head,.mw-savebar,.mw-tail,.mw-note-detail{justify-content:space-between}.mw-actions,.mw-summary-meta,.mw-note-detail,.mw-tail{flex-wrap:wrap}.mw-heading{gap:12px;margin-bottom:16px}.mw-emblem{color:#496346;background:#e1e8d9;border:1px solid #bac9b0;border-radius:9px;place-items:center;width:42px;height:42px;display:grid}.mw-heading h2{font:650 30px/1.15 Georgia,serif}.mw-heading p,.mw-hint,.mw-dir-hint,.mw-empty p{color:var(--mw-muted);font-size:13px;line-height:1.5}.mw-heading p{margin:3px 0 0}.mw-layout{grid-template-columns:minmax(205px,24%) minmax(0,1fr);align-items:start;gap:16px;display:grid}.mw-directory,.mw-card{border:1px solid var(--mw-line);background:var(--mw-paper);border-radius:11px;min-width:0}.mw-directory{max-height:100%;position:sticky;top:0;overflow:auto}.mw-directory-head,.mw-card-heading{background:var(--mw-tint);border-bottom:1px solid var(--mw-line);border-radius:10px 10px 0 0}.mw-directory-head{gap:10px;padding:14px;display:grid}.mw-directory h3,.mw-section h4,.mw-document h4{align-items:center;gap:8px;margin:0;display:inline-flex}.mw-directory h3{font-family:inherit;font-size:16px;font-weight:650;line-height:1.3}.mw-count{color:#3d5942;background:#dfe8d6;border-radius:12px;place-items:center;min-width:22px;min-height:21px;padding:2px 6px;font:650 12px/1.3 system-ui,sans-serif;display:inline-grid}.memory-workspace .mw-search{color:#5a6c5c;background:#fffef8;border:1px solid #c2caba;border-radius:7px;align-items:center;gap:7px;min-width:0;padding:0 9px;display:flex}.memory-workspace .mw-search:focus-within{outline-offset:1px;outline:2px solid #577452}.memory-workspace .mw-search input{background:0 0;border:0;outline:0;width:100%;min-width:0;height:34px;padding:0;font-size:13px;display:block}.mw-directory ul,.mw-note-list{padding:0;list-style:none}.mw-directory li+li{border-top:1px solid var(--mw-rule)}.memory-workspace .mw-dir-item{text-align:left;background:0 0;border:1px solid #0000;border-radius:4px;grid-template-columns:27px minmax(0,1fr) auto;gap:9px;width:100%;min-height:57px;padding:12px;display:grid}.mw-dir-item[aria-current=true]{box-shadow:inset 3px 0 #6a896b}.memory-workspace .mw-dir-item[aria-current=true]{background:#e6eddd}.mw-dir-item strong,.mw-dir-item small{overflow-wrap:anywhere;display:block}.mw-dir-item strong{font-size:14px;line-height:1.35}.mw-dir-item small,.memory-workspace small{color:var(--mw-muted);font-size:12px;font-weight:450;line-height:1.45}.mw-dir-item small{margin-top:3px}.mw-number{color:#597159;font:600 13px/1.5 ui-monospace,monospace}.mw-dir-hint,.mw-pager{padding:12px}.mw-writing-chapter{margin:9px 12px}.mw-card:focus,.mw-document h4:focus{outline:0}.mw-card-heading{flex-wrap:wrap;padding:14px 19px}.mw-card-heading>div:first-child{flex:140px;min-width:0}.mw-card-heading small{color:#526b51;align-items:center;gap:7px;font-weight:650;display:flex}.mw-card-heading small span{background:#748d69;width:16px;height:2px;display:inline-block}.mw-card-heading h3{overflow-wrap:anywhere;color:var(--mw-ink);margin:3px 0 0;font:650 26px/1.2 Georgia,serif}.mw-section{min-width:0;padding:15px 19px}.mw-section h4,.mw-document h4{color:var(--mw-ink);font:650 20px/1.3 Georgia,serif}.mw-section h4 svg,.mw-document h4 svg{color:#526d55}.mw-summary .mw-summary-text{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:8px;font-size:15px;line-height:1.62}.mw-summary-meta{gap:10px;margin-top:8px}.mw-saved{color:#3f6547;align-items:center;gap:3px;font-size:12px;display:inline-flex}.mw-notes{border-top:1px solid var(--mw-line)}.mw-notes>.mw-row,.mw-summary>.mw-row{flex-wrap:wrap}.mw-note-tools{flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0;display:flex}.mw-note-tools .mw-search{flex:125px;max-width:270px}.mw-note-list li{border-top:1px solid #c5cebc}.mw-note-list li:last-child{border-bottom:1px solid #c5cebc}.mw-note-row{grid-template-columns:minmax(64px,14%) minmax(0,1fr) minmax(136px,auto);align-items:start;gap:10px;padding:11px 0;display:grid}.mw-kind{color:#416147;background:#e8efdf;border-radius:5px;place-self:start;padding:3px 7px;font-size:11px;font-weight:650;line-height:1.4}.mw-kind[data-kind=clue],.mw-kind[data-kind=claim]{color:#7a552c;background:#f4ebda}.mw-kind[data-kind=plan],.mw-kind[data-kind=knowledge]{color:#4e6471;background:#e9eef0}.memory-workspace .mw-note-copy{text-align:left;overflow-wrap:anywhere;background:0 0;border:0;min-width:0;min-height:30px;padding:1px 0;display:block}.mw-note-copy>span{white-space:pre-line;font-size:14px;line-height:1.5;display:block}.mw-note-copy .mw-clamp{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.mw-note-copy small{margin-top:3px;display:block}.mw-note-actions{justify-content:flex-end;align-items:center;gap:8px;display:flex}.mw-note-actions button{white-space:nowrap}.mw-note-review{flex-wrap:wrap;align-items:center;gap:4px 12px;margin:5px 0;display:flex}.mw-note-detail{padding:0 0 8px}.mw-tail{margin-top:8px}.mw-tail nav,.mw-profile-options{flex-wrap:wrap;gap:5px;display:flex}.mw-editor{background:#f5f7ed;border:1px solid #b6c6ab;border-radius:8px;margin:10px 0;padding:13px}.mw-editor fieldset{border:0;min-width:0;margin:0;padding:0}.mw-editor label{margin:0 0 8px;font-size:13px;font-weight:650;display:block}.mw-editor label :is(textarea,select){margin-top:5px}.mw-editor label select{display:block}.mw-quote-edit>summary{cursor:pointer;color:#48624a;padding:4px 0;font-size:13px;font-weight:600}.mw-quote-edit[open]{margin:8px 0}.mw-savebar{border-top:1px solid var(--mw-line);flex-wrap:wrap;align-items:end;margin-top:9px;padding-top:10px}.mw-savebar>span{color:#4c604c;overflow-wrap:anywhere;flex:200px;font-size:12px;line-height:1.55;display:block}.mw-savebar>span svg{vertical-align:-.22em;margin-right:5px;display:inline}.mw-savebar>span strong{font-weight:650}.mw-history{border:1px solid var(--mw-rule);background:#f6f4e9;border-radius:7px;margin-top:9px;padding:12px}.mw-history h5{font-size:15px}.mw-history article{border-bottom:1px solid var(--mw-rule);padding:9px 0}.mw-history p,.mw-empty p{margin:4px 0 9px;line-height:1.5}.mw-history article p{white-space:pre-wrap;overflow-wrap:anywhere}.mw-feedback,.mw-warning{border-radius:6px;padding:8px 11px;font-size:13px;line-height:1.5;margin:8px 0!important}.mw-feedback{color:#385c3f;background:#eaf1e4}.mw-warning{color:#714c23;background:#f9eedb}.mw-fact-check{border-top:1px solid var(--mw-line);background:#f6f4eb;border-radius:0 0 10px 10px;padding:9px 19px;font-size:13px}.mw-fact-check>p{margin:7px 0}.mw-fact-check>.mw-row>span{color:#5b6657;font-weight:600}.mw-empty{padding:24px 19px}.mw-empty h4{font:650 19px Georgia,serif}.mw-profile-picker{margin:6px 0 12px!important}.mw-profile-picker legend{font-size:13px;font-weight:700}.mw-profile-picker input{padding:5px 8px}.mw-profile-options{margin:6px 0}.mw-comparing .mw-layout{grid-template-columns:minmax(0,1fr)}.mw-comparing .mw-directory{display:none}.mw-comparing .mw-reading-layout{grid-template-columns:minmax(0,.8fr) minmax(0,1.35fr);display:grid}.mw-working-pane{min-width:0}.mw-document{border-right:1px solid var(--mw-line);background:#faf7ec;min-width:0;padding:15px 16px}.mw-document-head{margin-bottom:10px}.mw-document-head small{margin-bottom:4px;display:block}.mw-document .mw-hint{margin:10px 0 4px}.mw-document-text{overscroll-behavior:contain;max-height:clamp(240px,47vh,640px);margin-top:9px;overflow:auto}.mw-document-text p,.mw-document blockquote,.mw-note-editor blockquote{white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 12px;font-size:14px;line-height:1.65}.mw-document mark{color:#463b27;background:#f2dfa4}.mw-document blockquote,.mw-note-editor blockquote{border-left:2px solid #b5a27a;padding-left:10px}.memory-workspace .mw-mobile-toggle{display:none}@media (max-width:930px){.mw-layout{grid-template-columns:minmax(165px,23%) minmax(0,1fr);gap:10px}.mw-comparing .mw-note-row{grid-template-columns:minmax(0,1fr) auto}.mw-comparing .mw-kind{grid-column:1}.mw-comparing .mw-note-copy{grid-row:2}.mw-comparing .mw-note-actions{grid-area:1/2/3}}@media (max-width:700px){.memory-workspace{padding:12px 10px 30px}.mw-heading{flex-wrap:wrap;gap:7px;margin-bottom:10px}.mw-heading h2{font-size:23px}.mw-heading p{max-width:240px;font-size:12px}.mw-emblem{display:none}.memory-workspace .mw-mobile-toggle{margin-left:auto;display:inline-flex}.mw-layout,.mw-comparing .mw-reading-layout{grid-template-columns:minmax(0,1fr)}.mw-directory{max-height:45vh;display:none;position:static}.mw-mobile-directory .mw-directory{display:block}.mw-section,.mw-card-heading,.mw-document{padding:12px}.mw-document{border-right:0;border-bottom:1px solid var(--mw-line)}.mw-document-text{max-height:32vh}.mw-card-heading h3{font-size:22px}.mw-card-heading .mw-actions{gap:5px}.mw-note-row,.mw-comparing .mw-note-row{grid-template-columns:minmax(0,1fr) auto;gap:6px}.mw-kind{grid-column:1}.mw-note-copy{grid-area:2/1}.mw-note-actions,.mw-comparing .mw-note-actions{flex-direction:column-reverse;grid-area:1/2/3;align-items:end;gap:2px}.mw-savebar>.mw-actions{margin-left:auto}.mw-fact-check{padding:8px 12px}.mw-summary-text{font-size:14px}}.writer-shell .chapter-manager-dialog{width:min(620px,100%);max-height:calc(var(--writer-visible-height,100dvh) - 40px);background:var(--white);color:var(--ink);overflow:hidden}.writer-shell .chapter-manager-dialog>header{padding:12px 24px}.writer-shell .chapter-manager-dialog .writer-dialog-content{scrollbar-gutter:stable;padding:14px 24px 18px}.writer-shell .chapter-manager-dialog .chapter-manager-intro{color:var(--ink-soft);margin:0 0 12px}.writer-shell .chapter-manager-stats{background:var(--paper);border:1px solid var(--line);text-align:center;border-radius:9px;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:10px 0;display:grid}.writer-shell .chapter-manager-stats>div+div{border-left:1px solid var(--line)}.writer-shell .chapter-manager-stats dt{color:var(--ink-soft);font-size:12px;line-height:1.5}.writer-shell .chapter-manager-stats dd{color:var(--green);font-variant-numeric:tabular-nums;margin:4px 0 0;font-size:23px;font-weight:700;line-height:1.2;display:block}.writer-shell .chapter-manager-plan{color:var(--ink-soft);justify-content:space-between;align-items:center;gap:10px;margin:2px 0 10px;font-size:12px;display:flex}.writer-shell .chapter-manager-plan button{min-height:44px;color:var(--green);text-align:left;text-underline-offset:3px;background:0 0;border:0;padding:10px 0;font-size:13px;font-weight:600;text-decoration:underline}.writer-shell .chapter-manager-options{border:0;min-width:0;margin:0;padding:0}.writer-shell .chapter-manager-dialog label.chapter-manager-choice{border:1px solid var(--line-strong);cursor:pointer;border-radius:8px;align-items:flex-start;gap:12px;margin:0;padding:14px;display:flex}.writer-shell .chapter-manager-choice:has(:checked){border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green);background:#edf0e6}.writer-shell .chapter-manager-choice:has(:disabled){cursor:default}.writer-shell .chapter-manager-dialog input[type=radio]{width:18px;height:18px;min-height:18px;accent-color:var(--green);flex:0 0 18px;margin:3px 0 0;padding:0;display:block}.writer-shell .chapter-manager-choice-copy{flex:1;min-width:0}.writer-shell .chapter-manager-choice strong{font-size:14px;line-height:1.5;display:block}.writer-shell .chapter-manager-choice small{color:var(--ink-soft);margin-top:4px;font-size:12px;font-weight:400;line-height:1.5;display:block}.writer-shell .chapter-manager-choice small.chapter-manager-reason{color:var(--terracotta-dark)}.writer-shell .chapter-manager-badge{color:var(--green);border:1px solid #bdcbb8;border-radius:5px;flex:none;padding:3px 7px;font-size:12px;font-weight:650}.writer-shell .chapter-manager-ai{border:1px solid var(--line);border-radius:8px;margin-top:18px}.writer-shell .chapter-manager-ai-toggle{text-align:left;background:var(--paper);width:100%;min-height:64px;color:var(--green);border:0;border-radius:8px;align-items:center;gap:10px;padding:12px 14px;display:flex}.writer-shell .chapter-manager-ai-toggle>span{flex:1;min-width:0}.writer-shell .chapter-manager-ai-toggle strong{flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;display:flex}.writer-shell .chapter-manager-ai-toggle strong small{color:var(--ink-soft);font-size:11px;font-weight:400}.writer-shell .chapter-manager-ai-toggle>span>span{color:var(--ink-soft);margin-top:4px;font-size:12px;line-height:1.5;display:block}.writer-shell .chapter-manager-ai-toggle>svg{flex:none}.writer-shell .chapter-manager-ai-toggle[aria-expanded=true]>svg:last-child{transform:rotate(180deg)}.writer-shell #chapter-manager-ai-tools{padding:12px}.writer-shell #chapter-manager-ai-tools[hidden]{display:none}.writer-shell #chapter-manager-ai-tools .chapter-manager-choice+.chapter-manager-choice{margin-top:10px}.writer-shell .chapter-manager-dialog .chapter-manager-rate{color:var(--ink-soft);margin:10px 2px 0;font-size:12px}.writer-shell .chapter-manager-quantity{margin-top:18px}.writer-shell .chapter-manager-quantity>label,.writer-shell .chapter-manager-dialog label.chapter-manager-field{margin:0 0 8px;font-size:14px;font-weight:650;display:block}.writer-shell .chapter-manager-stepper{border:1px solid var(--line-strong);background:var(--white);border-radius:7px;align-items:stretch;gap:0;width:184px;max-width:100%;height:44px;display:flex;overflow:hidden}.writer-shell .chapter-manager-stepper button{background:var(--paper);width:44px;color:var(--green);border:0;flex:0 0 44px;place-items:center;padding:0;display:grid}.writer-shell .chapter-manager-stepper input{border:0;border-left:1px solid var(--line);border-right:1px solid var(--line);text-align:center;background:var(--white);-webkit-appearance:textfield;appearance:textfield;border-radius:0;flex:1;width:92px;min-width:0;min-height:0;margin:0;padding:0 4px;font-size:16px;font-weight:650;display:block}.writer-shell .chapter-manager-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.writer-shell .chapter-manager-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.writer-shell .chapter-manager-dialog button:disabled{cursor:default;opacity:.5}:is(.writer-shell .chapter-manager-dialog input:focus-visible,.writer-shell .chapter-manager-dialog button:focus-visible,.writer-shell .chapter-manager-dialog summary:focus-visible){outline:2px solid var(--green);outline-offset:2px}.writer-shell .chapter-manager-dialog #chapter-quantity-help{color:var(--ink-soft);margin:8px 0 0;font-size:12px}.writer-shell .chapter-manager-dialog .chapter-manager-range{color:var(--green);margin:6px 0 0;font-size:12px}.writer-shell .chapter-manager-dialog label.chapter-manager-field{margin:18px 0 0}.writer-shell .chapter-manager-field>span{color:var(--ink-soft);margin-left:5px;font-size:12px;font-weight:400}.writer-shell .chapter-manager-field select,.writer-shell .chapter-manager-field textarea{box-sizing:border-box;border:1px solid var(--line-strong);width:100%;min-height:44px;font:inherit;background:var(--white);color:var(--ink);border-radius:7px;margin:8px 0 0;padding:10px 12px;font-weight:400}.writer-shell .chapter-manager-field textarea{resize:vertical}.writer-shell .chapter-manager-field small{color:var(--ink-soft);margin-top:7px;font-size:12px;font-weight:400;line-height:1.5;display:block}.writer-shell .chapter-manager-expectations{color:var(--ink-soft);margin-top:14px;font-size:12px}.writer-shell .chapter-manager-expectations summary{cursor:pointer;min-height:32px;padding:6px 0}.writer-shell .chapter-manager-expectations p{margin:0;font-size:12px}.writer-shell .chapter-manager-dialog>.writer-dialog-footer{border-top:1px solid var(--line);background:var(--paper);border-radius:0 0 10px 10px;flex:none;padding:14px 24px 16px}.writer-shell .chapter-manager-footer-action{justify-content:space-between;align-items:center;gap:18px;display:flex}.writer-shell .chapter-manager-total{color:var(--green);flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:5px 12px;margin-bottom:0;font-size:14px;display:flex}.writer-shell .chapter-manager-total>span{color:var(--ink-soft);font-size:12px}.writer-shell .chapter-manager-dialog .button-block{white-space:normal;flex:none;width:auto;max-width:58%;min-height:46px;padding-left:18px;padding-right:18px;line-height:1.4}.writer-shell .chapter-manager-dialog .chapter-manager-footer-help{color:var(--ink-soft);text-align:center;margin:9px 0 0;font-size:11px;line-height:1.5}.writer-shell .chapter-manager-dialog .chapter-manager-error{color:#8e392d;max-height:72px;margin:0 0 10px;font-size:12px;line-height:1.5;overflow-y:auto}@media (max-width:640px){.writer-shell .writer-dialog-backdrop:has(>.chapter-manager-dialog){align-items:end;padding:0}.writer-shell .chapter-manager-dialog{width:100%;max-height:calc(var(--writer-visible-height,100dvh) - 16px);border-radius:16px 16px 0 0}.writer-shell .chapter-manager-dialog>header{padding:12px 18px}.writer-shell .chapter-manager-dialog h2{font-size:24px}.writer-shell .chapter-manager-dialog .writer-dialog-content{scrollbar-gutter:auto;padding:14px 18px 18px}.writer-shell .chapter-manager-dialog>.writer-dialog-footer{padding:12px 18px max(12px,env(safe-area-inset-bottom));border-radius:0}.writer-shell .chapter-manager-stats{padding:12px 0}.writer-shell .chapter-manager-footer-action{display:block}.writer-shell .chapter-manager-total{margin-bottom:10px}.writer-shell .chapter-manager-dialog .button-block{width:100%;max-width:none}.writer-shell .chapter-manager-plan{gap:6px}.writer-shell .chapter-manager-dialog label.chapter-manager-choice{gap:9px;padding:12px}}@media (max-height:500px){.writer-shell .chapter-manager-dialog>header{padding-top:6px;padding-bottom:6px}.writer-shell .chapter-manager-dialog>.writer-dialog-footer{padding-top:8px;padding-bottom:8px}.writer-shell .chapter-manager-total{margin-bottom:6px}.writer-shell .chapter-manager-dialog .chapter-manager-footer-help{margin-top:5px}}@media (max-width:820px){.writer-shell .editor-chapter-head .chapter-nav-buttons .writer-add-next{min-height:44px}}.credit-panel-layer .writer-dialog-backdrop{background:0 0;padding:0}.writer-shell .account-credit-panel{top:var(--credit-top,100px);right:var(--credit-right,16px);width:min(420px,100vw - 24px);max-height:calc(var(--writer-visible-height,100dvh) - var(--credit-top,100px) - 12px);border:1px solid var(--line-strong);background:var(--white);border-radius:12px;position:fixed;overflow:hidden;box-shadow:0 16px 48px #262a2426}.writer-shell .account-credit-panel>header{border-bottom:1px solid var(--line);padding:10px 18px}.writer-shell .account-credit-panel h2{font:650 18px/1.35 var(--font-body,sans-serif)}.writer-shell .account-credit-panel>header button{min-width:44px;min-height:44px}.account-credit-panel .writer-dialog-content{overscroll-behavior:contain;flex:1;min-height:0;padding:0 22px 8px;overflow-y:auto}.account-credit-panel .account-credit-balance{text-align:center;margin:0;padding:18px 0;display:block}.account-credit-balance>strong{font:600 52px/1 var(--font-display,serif);color:var(--green);font-variant-numeric:tabular-nums;display:block}.account-credit-balance>span{color:var(--green);margin-top:6px;font-size:16px;font-weight:650;display:block}.account-credit-panel p,.account-credit-panel small,.account-credit-panel time{color:var(--ink-soft);font-size:13px;line-height:1.5}.account-credit-balance p{margin:12px 0 3px}.account-credit-balance p>span{padding:0 5px}.account-credit-balance .credit-reserved-help{background:var(--paper);text-align:left;border-radius:6px;padding:8px}.credit-status{color:var(--terracotta-dark);background:#f5ead7;border-radius:8px;align-items:flex-start;gap:10px;padding:12px;display:flex}.credit-status svg{flex:none;margin-top:1px}.credit-status strong{font-size:13px}.credit-status p{margin:4px 0 0}.credit-section-heading{justify-content:space-between;align-items:center;gap:8px;margin:18px 0 4px;display:flex}.credit-section-heading h3{margin:0;font-size:15px}.credit-section-heading>span{color:var(--ink-soft);font-size:12px}.credit-recent ul{margin:0;padding:0;list-style:none}.credit-recent li{border-bottom:1px solid var(--line);padding:12px 0}.credit-record-heading{justify-content:space-between;align-items:flex-start;gap:12px;font-size:13px;display:flex}.credit-record-heading strong{overflow-wrap:anywhere;min-width:0}.credit-record-heading b{text-align:right;font-variant-numeric:tabular-nums;flex-shrink:0;max-width:46%}.credit-deduction{color:var(--terracotta-dark)}.credit-addition{color:var(--green)}.credit-no-charge{color:var(--ink-soft)}.credit-recent li p{margin:4px 0 0}.credit-record-book{overflow-wrap:anywhere}.credit-recent time{margin-top:3px;font-size:12px;display:block}.credit-adjustment{margin-top:6px}.credit-adjustment summary{color:var(--green);cursor:pointer;font-size:12px}.credit-adjustment p{font-size:12px}.credit-state{justify-content:center;align-items:center;gap:8px;min-height:68px;display:flex}.credit-error{text-align:center;padding:10px 0;display:block}.credit-error button{border:1px solid var(--line-strong);background:var(--white);min-height:44px;color:var(--green);border-radius:6px;padding:8px 16px}.credit-estimate-details{margin-top:4px}.credit-estimate-details>summary{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;padding:16px 0;font-size:14px;font-weight:650;list-style:none;display:flex}.credit-estimate-details>summary::-webkit-details-marker{display:none}.credit-estimate-details[open]>summary svg{transform:rotate(180deg)}.credit-estimate-body{border:1px solid var(--line);background:var(--paper);border-radius:8px;margin-bottom:6px;padding:12px}.credit-estimate-body h4{overflow-wrap:anywhere;margin:0 0 7px;font-size:13px}.credit-estimate-body p{margin:5px 0}.credit-estimate-body .credit-rate-title{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}.credit-estimate-body dl{color:var(--ink);margin:0;font-size:12px}.credit-estimate-body dl>div{grid-template-columns:1fr auto;gap:10px;margin:8px 0;display:grid}.credit-estimate-body dd{text-align:right;margin:0}.credit-estimate-body .credit-estimate-note{margin-top:10px;font-size:12px}.account-credit-panel .writer-dialog-footer{border-top:1px solid var(--line);background:var(--white);flex:none;padding:12px 18px}.account-credit-panel .writer-dialog-footer a{text-align:center;justify-content:center;align-items:center;gap:8px;width:100%;min-height:46px;font-size:14px;display:flex}.account-credit-panel .writer-dialog-footer a[aria-disabled=true]{opacity:.65}.credit-navigation-error{margin:0 0 10px}@media (max-width:640px),(max-width:1099px) and (max-height:500px){.credit-panel-layer .writer-dialog-backdrop{background:#262a2452}.writer-shell .account-credit-panel{width:100%;max-height:calc(var(--writer-visible-height,100dvh) - 16px);border-radius:16px 16px 0 0;top:auto;bottom:0;right:0}.account-credit-panel .writer-dialog-content{padding:0 18px 8px}.account-credit-panel .account-credit-balance{padding:16px 0}.account-credit-balance>strong{font-size:46px}.account-credit-panel .writer-dialog-footer{padding:12px 18px max(14px,env(safe-area-inset-bottom))}.account-credit-panel .writer-dialog-footer a{min-height:48px}}.credit-panel-sources{border-block:1px solid var(--line);gap:4px;margin:0;padding:10px 0;display:grid}.credit-panel-sources>div{justify-content:space-between;gap:12px;font-size:14px;display:flex}.credit-panel-sources dd{font-variant-numeric:tabular-nums;margin:0;font-weight:650}
