/* Reference-led workspace: quiet rail, one composer, document-first split view. */
.assistant-rail,.history-backdrop{display:none}
.conversation-mode{background:#fcfdfb}
.conversation-mode .conversation-bar{height:64px;border:0;padding:14px 30px;background:transparent}
.conversation-bar .bar-label{font-size:12px;letter-spacing:1.7px;color:#21483f}
.conversation-bar .bar-project{display:flex;align-items:center;gap:8px;padding:6px 11px;border:1px solid #e8ece6;border-radius:20px;background:#fff;font-size:12px;color:#6a776e}
.conversation-bar .button{background:transparent;border-color:transparent;color:#6a776e}
.conversation-canvas{max-width:920px;padding:35px 40px}
.conversation-canvas.is-opening{padding-top:clamp(105px,21vh,230px)}
.chat-welcome{margin:0 0 40px;padding:0 2px}
.chat-welcome>p{font-size:15px;color:#7e877e;margin-bottom:14px}
.chat-welcome h1{font-size:42px;font-weight:600;letter-spacing:-1.6px;line-height:1.2;color:#243c35}
.chat-welcome h1>span{color:#527a60}
.welcome-actions{display:flex;gap:10px;margin-top:24px;flex-wrap:wrap}
.welcome-actions .button{border:0;background:#f0f3ed;border-radius:20px;min-height:33px;padding:7px 14px;font-size:12px;color:#58685b}
.welcome-actions .button:hover{background:#e6eddf}
.welcome-actions svg{width:15px;height:15px}
.conversation-canvas .ai-composer{border:1px solid #edf0e9;border-radius:23px;padding:19px 21px 16px;box-shadow:0 8px 50px #314b3510;background:#fff}
.chat-input:focus-within{border-color:#c9d7c3;box-shadow:0 8px 40px #314b3514}
.chat-input #ai-prompt{font-size:15px;min-height:90px;max-height:250px;resize:none;padding:10px 2px 14px;color:#304a3c}
.chat-input #ai-prompt::placeholder{color:#929b90}
.composer-project-row{margin:0 0 4px;justify-content:flex-end}
.context-project{border-radius:20px;background:#f7f9f3;color:#7a8b71;min-height:26px;font-size:10px;padding:4px 9px}
.composer-tool{font-size:12px;gap:8px;color:#566653;padding:7px 9px;min-height:34px;border-radius:8px}
.composer-tool svg{width:16px;height:16px}
.composer-tool[data-tool=sources] svg{color:#538461}
.attach-tool{font-size:0;gap:0;width:32px;padding:7px}
.attach-tool svg{width:18px;height:18px}
.chat-input .form-actions{gap:10px;margin-top:5px}
.composer-tools{gap:5px}
.send-message{width:34px;height:34px;min-height:34px!important;background:#21483f}
.composer-settings>summary{height:34px;width:32px}
.composer-settings-menu{top:auto;bottom:43px;z-index:30}
.chat-ideas{gap:11px 14px;margin:30px 2px 0}
.idea-card{border:0;background:#fff;box-shadow:0 3px 18px #40573308;border-radius:25px;min-height:37px;font-size:12px;padding:9px 14px;color:#5b6c59;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.idea-card svg{width:15px;height:15px;color:#6d9264;flex-shrink:0}
.idea-card:nth-child(3n) svg{color:#aa8a52}
.idea-card:hover{background:#edf3e7;box-shadow:0 3px 18px #40573310}
.chat-footnote{margin-top:29px;font-size:10px;color:#9aa491}
.chat-footnote>span{display:none}
.project-picker{top:53px;left:auto;right:20px;z-index:25}
.command-picker{position:absolute;z-index:25;bottom:65px;left:20px;width:min(400px,calc(100% - 40px));max-height:300px;overflow:auto;background:#fff;border:1px solid #e3e9db;border-radius:13px;padding:10px;box-shadow:0 12px 40px #254a2720}
.command-heading{font-size:10px;color:#8a977e;margin:7px 8px 9px}
.command-option{display:flex;width:100%;border:0;background:transparent;text-align:left;justify-content:flex-start;white-space:normal;font-size:12px;padding:11px 9px}
.command-option:hover,.command-option:focus{background:#edf3e6;outline:none}
.context-chip{background:#f2f6ec;border:0;border-radius:20px;padding:5px 7px 5px 11px;font-size:11px}
.selection-item{display:flex;align-items:center;gap:4px;border:1px solid #e6eadd;background:#fff;border-radius:9px;padding-right:5px}
.selection-item .selection-row{border:0;flex:1;min-width:0;background:transparent}
.selection-item:has(input:checked){background:#edf5e4;border-color:#c6d7b6}
.selection-item .selection-row:has(input:checked){background:transparent}
.document-open{border:0;background:transparent;width:30px;min-height:30px;padding:6px;color:#6f865c}
.document-open svg{width:14px;height:14px}
.answer-tabs{display:flex;gap:23px;border-bottom:1px solid #e9ede3;margin:0 0 26px}
.answer-tabs .button{background:none;border:0;border-bottom:2px solid transparent;border-radius:0;padding:12px 0;font-size:12px;color:#929d85}
.answer-tabs .selected{border-bottom-color:#517b49;color:#355432}
.sent-request{font-size:13px;background:#f0f3ed;border-radius:15px;margin-bottom:30px;line-height:1.7}
.ai-answer>.card-top{display:none}
.answer-content{line-height:1.9;font-size:14px;color:#344a36}
.answer-content h3{font-weight:600;font-size:19px}
.followup-composer{border:1px solid #e5ebdc;border-radius:21px;box-shadow:0 5px 30px #2b42240d;padding:20px;background:#fff;bottom:16px}
.followup-composer textarea{font-size:13px;line-height:1.7;resize:none}
.context-pane[data-kind=resources]{position:fixed;right:26px;top:82px;bottom:auto;width:385px;min-height:0;max-height:calc(100dvh - 110px);border:1px solid #e2e9d9;border-radius:15px;background:#fff;box-shadow:0 18px 70px #223f2924;z-index:35}
.context-pane[data-kind=resources] .context-pane-head{padding:18px 20px;background:#fff}
.context-pane[data-kind=resources] .pane-body{padding:20px;gap:16px}
.with-pane:not(.with-document) .conversation-canvas{padding-left:40px;padding-right:40px}
.with-pane:not(.with-document) .is-opening{padding-top:clamp(105px,21vh,230px)}
.with-pane:not(.with-document) .chat-welcome h1{font-size:42px}
.with-pane:not(.with-document) .chat-ideas{grid-template-columns:repeat(3,minmax(0,1fr))}
.with-document{height:calc(100dvh - 64px);min-height:0;align-items:stretch;border-top:1px solid #edf0e6}
.with-document .context-pane{order:-1;position:relative;top:0;flex:0 0 61%;width:61%;max-height:100%;min-height:0;border:0;border-right:1px solid #e1e6db;border-radius:0;box-shadow:none;background:#ecefea;overflow:auto}
.with-document .context-pane-head{background:#f2f4ef;padding:12px 20px;border-bottom:1px solid #e1e7da}
.with-document .context-pane-head h2{font-size:11px;background:#fff;border-radius:20px;padding:7px 12px;box-shadow:0 2px 6px #263c3005}
.with-document .conversation-canvas{flex:1;width:39%;max-width:none;padding:26px 26px 20px;overflow:auto;min-height:0;background:#fcfdfb}
.with-document .is-opening{padding-top:30px}
.with-document .chat-welcome,.with-document .chat-ideas{display:none}
.with-document .chat-footnote{font-size:9px;margin-top:18px}
.with-document .ai-composer{padding:15px 13px;border-radius:18px}
.with-document #ai-prompt{min-height:155px;font-size:13px}
.with-document .composer-tool{font-size:11px;padding:6px;gap:5px}
.with-document .attach-tool{font-size:0;padding:6px;width:27px}
.with-document .composer-tools{gap:0}
.with-document .form-actions{gap:3px}
.with-document .answer-content{font-size:13px}
.with-document .answer-content h3{font-size:17px}
.with-document .chat-review{padding:18px 14px}
.with-document .review-heading h2{font-size:19px}
.draft-workspace{padding:17px 24px 22px;min-height:calc(100% - 60px);gap:13px}
.document-top{display:flex;align-items:center;gap:15px;justify-content:space-between}
.draft-title{width:100%;min-width:0;flex:1;border:0;font-size:13px;padding:8px 0;color:#53624e;font-weight:500}
.document-top .button{font-size:10px;white-space:nowrap;background:#fff;border:0;border-radius:20px;min-height:29px;padding:6px 11px}
.document-controls{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center}
.draft-view-switch{background:#e4e9de;padding:3px;border-radius:8px}
.draft-view-switch .button{border:0;background:transparent;font-size:10px;min-height:28px}
.draft-view-switch .selected{background:#fff;box-shadow:0 1px 5px #30442b0a}
.document-format{display:flex;gap:2px;align-items:center;flex-wrap:wrap;background:#fff;padding:3px;border-radius:8px}
.document-format .button{border:0;background:transparent;font-size:11px;padding:6px 9px;min-height:27px;color:#6a7a5f}
.document-format .button:hover{background:#edf2e7}
.document-format .button:nth-child(2){font-weight:700}
.document-format .button:nth-child(3){font-style:italic;font-family:Georgia,serif}
.document-format svg{width:12px;height:12px}
.draft-preview,.draft-editor,.document-paper{background:#fff;border:1px solid #e2e6dd;border-radius:2px;box-shadow:0 5px 20px #233d2608;padding:50px 54px;min-height:580px;font-family:Georgia,serif;font-size:15px;line-height:1.95;color:#35402f}
.draft-preview .answer-content,.document-paper .answer-content{font-family:Georgia,serif;font-size:15px;line-height:1.95;color:#35402f}
.draft-preview .answer-content h3,.document-paper .answer-content h3{font-family:Georgia,serif;font-size:19px}
.draft-editor{resize:vertical;outline-color:#739964;flex:initial}
.draft-editor:disabled{opacity:.6}
.document-status{display:flex;align-items:center;gap:12px;position:sticky;bottom:-22px;background:#ecefea;padding:14px 0 16px;flex-wrap:wrap}
.document-status p{margin:0;flex:1;font-size:10px;line-height:1.6}
.draft-word-count{font-size:10px;color:#8b957e;white-space:nowrap}
.document-status .button{font-size:11px;min-height:31px}
.selection-actions{position:sticky;bottom:60px;align-self:center;display:flex;padding:5px;gap:3px;background:#25483c;box-shadow:0 7px 25px #243a3423;border-radius:30px;z-index:3}
.selection-actions .button{border:0;background:transparent;color:#fff;font-size:11px;min-height:29px;padding:6px 12px}
.selection-actions .button:hover{background:#3d6250}
.selection-actions svg{width:13px;height:13px}
.reader-workspace{padding:16px 26px 35px}
.reader-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;font-size:11px;color:#778369}
.reader-toolbar .button{font-size:10px;min-height:29px;background:white;border:0}
.reader-toolbar a{display:flex;align-items:center;gap:6px;font-size:10px}
.reader-toolbar svg{width:13px;height:13px}
.document-paper h1{font-size:23px;font-family:Georgia,serif;line-height:1.5;margin-bottom:30px;color:#263a2a}
.revision-card{background:#fff;border:1px solid #d8e3cd;border-radius:10px;padding:20px;font-size:12px}
.revision-heading{display:flex;gap:8px;align-items:center;margin-bottom:18px;color:#4c6840}
.revision-heading svg{width:16px;height:16px}
.revision-heading span{margin-left:auto;font-size:10px;color:#849575}
.revision-before,.revision-after{padding:13px 15px;border-radius:6px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}
.revision-before{background:#fcf0ed;color:#936f65}
.revision-after{background:#edf5e5;color:#436a35}
.revision-before small,.revision-after small{font-size:9px;display:block;letter-spacing:.6px;margin-bottom:7px;text-transform:uppercase}
.revision-card>.button-row{margin-top:18px}
.revision-card>p{line-height:1.7;color:#778a67;margin-bottom:15px}
@media(min-width:761px){
  .conversation-mode .sidebar{width:68px;padding:0;overflow:visible;background:#fff;border-right:1px solid #edf0e8}
  .conversation-mode .shell{margin-left:68px}
  .conversation-mode .sidebar>.brand,.conversation-mode .sidebar>.mode-switch,.conversation-mode .sidebar>.sidebar-bottom{display:none}
  .conversation-mode .assistant-rail{display:flex;position:absolute;inset:0;flex-direction:column;align-items:center;padding:21px 0 18px;gap:13px;background:#fff;z-index:52}
  .rail-brand{font-family:Georgia,serif;color:#b29660;font-size:29px;background:#f8faf4;border:1px solid #e8edde;border-radius:9px 3px 9px 3px;width:33px;height:39px;margin-bottom:18px;cursor:pointer}
  .rail-button{background:transparent;border:0;width:38px;height:38px;padding:9px;color:#7d8c76;border-radius:10px}
  .rail-button:hover,.rail-button[aria-expanded=true]{background:#edf3e5;color:#335938}
  .rail-button svg{width:18px;height:18px}
  .rail-spacer{flex:1}
  .conversation-mode .chat-navigation{display:none;position:fixed;top:0;bottom:0;left:68px;width:280px;background:#f8faf4;border-right:1px solid #e2e9d9;padding:25px 15px 18px;z-index:51;min-height:0;box-shadow:15px 0 45px #263e2410}
  .conversation-mode.chat-nav-open .chat-navigation{display:flex}
  .conversation-mode.chat-nav-open .history-backdrop{display:block;position:fixed;inset:0 0 0 348px;border:0;background:#1d392014;z-index:49;cursor:default;border-radius:0}
  .chat-navigation .chat-history{max-height:none;flex:1}
  .chat-navigation .history-search{margin:0 0 12px;background:#fff;border-color:#e2e9d8;padding:9px}
  .chat-navigation .history-search input{font-size:11px}
  .chat-navigation .history-item{font-size:12px;min-height:38px}
  .chat-navigation .workspace-label{margin-top:12px}
}
@media(min-width:761px) and (max-width:1100px){
  .with-document .context-pane{flex-basis:54%;width:54%}
  .with-document .conversation-canvas{width:46%;padding:22px 18px}
  .draft-preview,.draft-editor,.document-paper{padding:30px 25px;font-size:14px}
  .document-top{flex-wrap:wrap;gap:4px}.draft-title{flex-basis:100%}
  .draft-workspace{padding:16px}
}
@media(max-width:760px){
  .conversation-mode .shell{margin-left:0}
  .conversation-mode .conversation-bar{height:45px;min-height:45px;padding:8px 19px}
  .conversation-bar .bar-label{font-size:11px}
  .conversation-bar .bar-project{max-width:180px!important;font-size:10px;padding:4px 8px}
  .conversation-canvas,.with-pane:not(.with-document) .conversation-canvas{padding:25px 22px}
  .conversation-canvas.is-opening,.with-pane:not(.with-document) .is-opening{padding-top:clamp(50px,10vh,100px)}
  .chat-welcome{margin-bottom:28px}
  .chat-welcome>p{font-size:12px}
  .chat-welcome h1,.with-pane:not(.with-document) .chat-welcome h1{font-size:31px;line-height:1.25;letter-spacing:-1px;text-wrap:balance}
  .welcome-actions{gap:7px;margin-top:20px}
  .welcome-actions .button{font-size:10px;padding:6px 10px;min-height:31px}
  .welcome-actions svg{width:13px;height:13px}
  .conversation-canvas .ai-composer{padding:14px;border-radius:20px}
  .chat-input #ai-prompt{font-size:14px;min-height:106px}
  .context-project{font-size:9px;min-height:24px}
  .composer-tool,.with-document .composer-tool{font-size:10px;padding:6px 4px;gap:4px}
  .attach-tool,.with-document .attach-tool{font-size:0;width:22px}
  .composer-tools{gap:1px}
  .composer-tool svg{width:14px;height:14px}
  .chat-input .form-actions{gap:2px}
  .composer-settings>summary{width:23px}
  .send-message{width:30px;height:30px;min-height:30px!important}
  .chat-ideas,.with-pane:not(.with-document) .chat-ideas{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 8px;margin-top:24px}
  .idea-card{font-size:10px;padding:9px 10px;min-height:36px;white-space:normal;line-height:1.4}
  .idea-card svg{width:13px;height:13px}
  .chat-footnote{font-size:9px;line-height:1.7;margin-top:23px}
  .context-pane[data-kind=resources]{top:auto;bottom:12px;right:12px;left:12px;width:auto;max-height:calc(100dvh - 80px);z-index:45}
  .with-document{height:auto;min-height:calc(100dvh - 100px)}
  .with-document .context-pane{position:fixed;inset:0;z-index:46;width:100%;max-height:100dvh;min-height:100dvh;border:0;flex:none}
  .with-document .conversation-canvas{width:100%;padding:25px 22px;overflow:visible}
  .with-document .chat-welcome{display:block}.with-document .chat-ideas{display:grid}
  .draft-workspace{padding:15px;min-height:calc(100dvh - 64px)}
  .draft-preview,.draft-editor,.document-paper{min-height:430px;padding:28px 23px;font-size:14px}
  .draft-preview .answer-content,.document-paper .answer-content{font-size:14px}
  .document-paper h1{font-size:21px}
  .reader-workspace{padding:15px}
  .document-top{flex-wrap:wrap;gap:3px}.draft-title{flex-basis:100%}
  .document-status{bottom:-15px;padding:13px 0}
  .document-format .button{font-size:10px;padding:6px 8px}
  .selection-actions .button{font-size:10px;padding:6px 10px}
  .revision-card{padding:15px}.revision-heading{flex-wrap:wrap}.revision-heading span{margin-left:0}
  .revision-card .button-row{flex-wrap:wrap}
  .conversation-mode .sidebar.open .chat-navigation{display:flex}
}
