/* Writing flow: a calm canvas, contextual actions and one connected assistant. */
.writing-shell{max-width:1800px}.writing-title .writing-emblem{background:#173e37}.writing-title h1{font-size:1.5rem;letter-spacing:-.04em}.writing-header{align-items:center;border-bottom:1px solid var(--border,#dce3ee)}.writing-title>div>span{font-size:.8rem}.writing-workspace{grid-template-columns:150px minmax(0,1fr);gap:20px}.writing-grid{grid-template-columns:minmax(0,1fr) 370px;gap:20px}.writing-paper{box-shadow:0 6px 28px #152b4505;border-radius:14px}.writing-nav button{font-size:.8rem;min-height:40px;padding:10px 12px}.writing-nav button:nth-child(5){margin-top:24px}.writing-nav button[aria-selected=true]{background:#e7f0ec;border-color:#c7ddd1;color:#173e37;box-shadow:none}.writing-nav button:nth-child(2){color:#32634f}.writing-nav p{margin-top:26px}.writing-inline{margin:10px 0;gap:7px}.writing-inline span{flex-basis:auto;margin-right:auto;font-size:.7rem}.writing-inline button{font-size:.7rem;padding:5px 9px}.writing-toolbar{border:0;gap:6px}.writing-toolbar button,.writing-toolbar label{font-size:.7rem}.writing-toolbar button.primary{background:#173e37;border-color:#173e37}.writing-toolbar:has(#writing-document-title){padding:9px 0 15px;border-bottom:1px solid var(--border,#dce3ee);margin-bottom:12px}#writing-document-title{min-width:100px;flex:1;width:180px;border:0;background:transparent;color:var(--text,#142b49);font:600 1.1rem system-ui;padding:7px 0}#writing-document-title:focus{outline:2px solid #648679;outline-offset:2px}#writing-document-title+select{width:128px;border:1px solid var(--border,#dce3ee);border-radius:7px;padding:6px;background:var(--surface,#fff);color:inherit;font-size:.7rem}.writing-toolbar:has(#writing-document-title)>button:last-child{display:none}.writing-header .copilot-launch{background:#173e37;color:#fff;border-color:#173e37;gap:6px}.writing-header .copilot-launch kbd{color:white}.writing-insights-summary{border:1px solid var(--border,#dce3ee);border-radius:10px;background:var(--surface,#fff);order:2}.writing-insights-summary>summary{display:flex;justify-content:space-between;padding:14px 18px;cursor:pointer;font:600 .78rem system-ui}.writing-insights-summary>summary::after{content:'⌄';color:var(--muted,#52637a)}.writing-insights-summary[open]>summary{border-bottom:1px solid var(--border,#dce3ee)}.writing-side .writing-health{border:0;box-shadow:none;padding:18px}.writing-side{display:flex;flex-direction:column;gap:14px}.writing-side>[role=tabpanel]{order:0;margin:0;border:1px solid var(--border,#dce3ee);border-top:1px solid var(--border,#dce3ee);border-radius:12px}.writing-side>[role=tabpanel]>h2{font:600 1.12rem system-ui;letter-spacing:-.02em}.writing-side #panel-copilot{border-top:3px solid #648679}.writing-start{margin:12px 0 18px;padding:30px 24px 22px;background:linear-gradient(135deg,#f3f7f3,#f4f6fc);border:1px solid #dce8df;border-radius:12px}.writing-start h2{font:500 1.85rem/1.2 Georgia,serif;letter-spacing:-.035em;margin:14px 0 9px;color:#173e37}.writing-start>p{font-size:.83rem;color:#61716a;line-height:1.65}.writing-start .writing-eyebrow{font-size:.59rem;color:#597d6b;letter-spacing:.13em}.writing-start form{display:flex;flex-direction:column;align-items:flex-end;border:1px solid #c3d5c9;border-radius:10px;background:var(--surface,#fff);padding:8px;margin:19px 0 12px;box-shadow:0 5px 18px #173e3707}.writing-start textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:82px;background:transparent;border:0;outline:0;color:var(--text,#142b49);padding:9px;font: .95rem/1.65 system-ui}.writing-start button{cursor:pointer;border:1px solid #d2ded5;background:#fff;color:#315841;border-radius:8px;padding:8px 11px;font:500 .72rem system-ui}.writing-start button.primary{background:#173e37;border-color:#173e37;color:white;font-size:.8rem;padding:10px 14px}.starter-prompts{display:flex;gap:7px;flex-wrap:wrap}.writing-start .writing-disclosure{font-size:.68rem;margin-bottom:0}.writing-paper:has(#writing-start:not([hidden])) #draft{min-height:220px}.writing-paper:has(#writing-start:not([hidden])) .writing-surface{border-style:dashed}.writing-paper:has(#writing-start:not([hidden])) .writing-inline{display:none}.selection-assistant{position:fixed;z-index:65;display:flex;align-items:center;gap:4px;padding:6px;border:1px solid #bdcfc3;border-radius:11px;background:#173e37;box-shadow:0 8px 26px #102c3230;color:#fff;max-width:calc(100vw - 16px)}.selection-assistant>span{font-size:.65rem;padding:0 7px;white-space:nowrap}.selection-assistant button{background:transparent;border:0;border-radius:6px;color:#fff;padding:7px 8px;font:600 .72rem system-ui;cursor:pointer;white-space:nowrap}.selection-assistant button:hover{background:#ffffff20}.copilot-heading{display:flex;gap:10px;align-items:center}.copilot-heading h2{margin:0;font:600 1.12rem system-ui;letter-spacing:-.03em}.copilot-heading p{margin:4px 0 0;font-size:.72rem;color:var(--muted,#52637a)}.assistant-spark{display:grid;place-items:center;flex:none;width:34px;height:34px;background:#e7f0ec;color:#38624c;border-radius:10px;font-size:1.25rem}#copilot-ready{font-size:.68rem;color:#597d6b;margin:14px 0}.copilot-presets{display:flex;gap:5px;flex-wrap:wrap}.writing-side .copilot-presets button{min-height:30px;padding:5px 9px;font-size:.65rem;border-radius:18px;background:var(--surface-2,#f6f8fb)}.copilot-scope{display:flex;align-items:center;gap:7px;margin-top:15px}.copilot-scope span{flex:1;color:var(--muted,#52637a);font-size:.66rem}.writing-side .copilot-scope button{font-size:.62rem;min-height:28px;padding:5px 7px}#copilot-prompt{min-height:100px;max-height:250px}.copilot-preview,.copilot-source-picker{margin:13px 0;font-size:.72rem;color:var(--muted,#52637a)}.copilot-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto;font: .68rem/1.6 system-ui;padding:10px;background:var(--surface-2,#f7f9fc);border-radius:7px}.copilot-source-picker>summary>span{display:inline-block;background:#e7f0ec;color:#38624c;padding:1px 5px;border-radius:8px;margin-left:4px}.writing-side #copilot-sources label{display:flex;align-items:flex-start;gap:8px;font-size:.69rem;font-weight:400;line-height:1.5}.writing-side #copilot-sources input{min-height:0;width:auto;flex:none;margin:3px 0}.copilot-submit{display:flex;gap:7px;flex-wrap:wrap}.writing-side .copilot-submit button.primary,.writing-side .copilot-result-actions button.primary{background:#173e37;color:white;border-color:#173e37}#copilot-status{font-size:.76rem;line-height:1.6;color:var(--muted,#52637a)}.copilot-result{border-top:1px solid var(--border,#dce3ee);padding-top:16px}.copilot-result header{display:flex;align-items:center;justify-content:space-between;gap:6px}.writing-side .copilot-result h3{margin:0;font-size:.9rem}.copilot-result header>span{font-size:.6rem;color:#597d6b}#copilot-result-text{min-height:220px;max-height:65vh;resize:vertical;font:.9rem/1.7 Georgia,serif}.copilot-result-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.copilot-result-actions button{font-size:.67rem;padding:6px 9px;min-height:32px}.copilot-diff{margin:12px 0}.copilot-diff blockquote{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.8rem;padding:8px 10px;border-left:2px solid #648679;margin:6px 0}.copilot-diff .word-changes{max-height:300px;overflow:auto}.writing-side .copilot-value-confirm{display:flex;gap:7px;align-items:flex-start;font-size:.72rem}.writing-side .copilot-value-confirm input{width:auto;min-height:0;margin:2px 0}#copilot-warnings p{color:#8a4d14;font-size:.72rem;padding:8px;background:#fff1df;border-radius:6px}.grounded-answer{white-space:pre-wrap;font:.9rem/1.8 Georgia,serif;margin:12px 0}.grounded-evidence details{padding:10px 0;border-bottom:1px solid var(--border,#dce3ee)}.grounded-evidence summary{font-size:.72rem}.grounded-evidence blockquote{font:.8rem/1.6 Georgia,serif;margin:10px 0;padding-left:10px;border-left:2px solid #648679}.grounded-evidence small{font-size:.65rem;color:var(--muted,#52637a)}.copilot-result h4{font-size:.78rem}.copilot-result li{font-size:.75rem;line-height:1.7}.writing-shell :focus-visible{outline:2px solid #397b64;outline-offset:3px}
@media(min-width:1600px){.writing-workspace{grid-template-columns:160px minmax(0,1fr)}.writing-grid{grid-template-columns:minmax(0,1fr) 390px}}
@media(max-width:1200px){.writing-grid{grid-template-columns:minmax(0,1fr) 330px}.writing-workspace{grid-template-columns:130px minmax(0,1fr);gap:14px}.writing-start{padding:22px 16px}.writing-start h2{font-size:1.6rem}.writing-inline span{flex-basis:100%}}
@media(max-width:1000px){.writing-workspace{display:block}.writing-nav{margin-bottom:10px}.writing-nav button:nth-child(5){margin-top:0}.writing-title h1{font-size:1.3rem}}
@media(max-width:860px){.writing-side{display:flex}.writing-title h1{font-size:1.2rem}.writing-start h2{font-size:1.55rem}.writing-start{padding:20px 15px}.writing-header .p-editor-actions{justify-content:flex-start;margin-top:10px}.selection-assistant>span{display:none}.selection-assistant button{font-size:.65rem;padding:7px}.writing-start .starter-prompts button{font-size:.67rem}#writing-document-title{width:145px}.writing-insights-summary{order:2}.writing-side #panel-copilot{scroll-margin-top:70px}}
@media(prefers-color-scheme:dark){.writing-title .writing-emblem,.writing-header .copilot-launch,.writing-side .copilot-submit button.primary,.writing-side .copilot-result-actions button.primary{background:#31614e;border-color:#497c62}.writing-nav button[aria-selected=true],.assistant-spark{background:#234137;color:#cce5d4;border-color:#3a5c4c}.writing-nav button:nth-child(2){color:#a8cdb6}.writing-start{background:linear-gradient(135deg,#1d302a,#1e293a);border-color:#3b5149}.writing-start h2{color:#d4e8da}.writing-start>p,.writing-start .writing-eyebrow,#copilot-ready{color:#a7c4b3}.writing-start button{background:#263c32;color:#d4e8da;border-color:#476452}.writing-start form{border-color:#476452}.writing-start button.primary{background:#31614e}.copilot-source-picker>summary>span{background:#234137;color:#d4e8da}#copilot-warnings p{background:#483721;color:#f7d4a6}}
.writing-handoff-dialog{box-sizing:border-box;width:min(600px,calc(100vw - 30px));border:1px solid #c6d6cb;border-radius:14px;padding:25px;background:var(--surface,#fff);color:var(--text,#142b49);font:14px/1.6 system-ui}.writing-handoff-dialog::backdrop{background:#142b4970}.writing-handoff-dialog h2{font-size:1.2rem}.writing-handoff-dialog textarea{box-sizing:border-box;width:100%;min-height:180px;max-height:45vh;padding:12px;font:14px/1.7 Georgia,serif;border:1px solid #c6d6cb;border-radius:8px;background:var(--surface,#fff);color:inherit}.writing-handoff-dialog button,.pleni-return-source{padding:9px 12px;margin:6px 7px 0 0;border:1px solid #c6d6cb;border-radius:8px;background:#173e37;color:#fff;cursor:pointer}.pleni-return-source{margin:0 0 12px;font:600 12px system-ui}.pleni-return-source[hidden]{display:none!important}
#writing-document-title{position:static;height:auto;opacity:1;display:block;min-height:32px;box-sizing:border-box}.writing-header .p-editor-actions>.copilot-launch{background:#173e37;color:white;border-color:#173e37}.writing-side>section#panel-coach{border-top:1px solid var(--border,#dce3ee)}
.writing-file-actions{position:relative;font:600 .7rem system-ui}.writing-file-actions>summary{display:flex;align-items:center;gap:8px;min-height:34px;padding:6px 10px;box-sizing:border-box;border:1px solid var(--border-strong,#c3cfdf);border-radius:8px;background:var(--surface,#fff);color:var(--text,#142b49);cursor:pointer;list-style:none}.writing-file-actions>summary::after{content:"⌄";font-size:.75rem}.writing-file-actions>div{position:absolute;z-index:40;top:calc(100% + 7px);left:0;display:grid;min-width:170px;gap:5px;padding:8px;background:var(--surface,#fff);border:1px solid var(--border,#dce3ee);border-radius:10px;box-shadow:0 10px 30px #142b4920}.writing-file-actions>div>button,.writing-file-actions>div>label{justify-content:flex-start;margin:0!important;width:100%;box-sizing:border-box}.writing-file-actions[open]>summary{background:var(--surface-2,#f7f9fc)}
@media(prefers-color-scheme:dark){.writing-header .p-editor-actions>button:not(.copilot-launch){background:#142031;color:#e3eaf2;border-color:#43566b}}
