.home-ai-entry{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px;padding:10px 14px;border:1px solid #ffe1bf;border-radius:10px;background:#fffaf4;color:#6f604f;font-size:12px}.home-ai-entry>span:first-child{min-width:0}.home-ai-entry button{flex:0 0 auto;border:0;background:transparent;color:#c76500;font-weight:700;cursor:pointer}.home-ai-entry button span{margin-left:5px;font-size:11px;font-weight:400}.home-ai-panel{margin-bottom:12px}.home-ai-panel[hidden]{display:none}.home-ai-panel .ai-chat-thread{min-height:150px;max-height:330px}.home-journal-editor{overflow:visible;border:1px solid #e3e9ee;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(31,48,68,.05)}.home-editor-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 26px 18px;border-bottom:1px solid #edf1f4}.home-editor-head h1{margin:2px 0 4px;color:#1f3347;font-size:22px}.home-editor-head p{margin:0;color:#8290a2;font-size:13px}.home-editor-kicker{color:#c76500;font-size:12px;font-weight:700;letter-spacing:.08em}.ai-log-guide{display:grid;grid-template-columns:32px auto;grid-template-rows:auto auto;align-items:center;column-gap:9px;min-width:220px;padding:10px 13px;border:1px solid #ffd5aa;border-radius:10px;background:#fff9f2;color:#34495e;text-align:left;cursor:pointer}.ai-log-guide>span{grid-row:1/3;display:grid;width:32px;height:32px;place-items:center;border-radius:9px;background:#ffead3;color:#e87500;font-size:17px}.ai-log-guide b{font-size:13px}.ai-log-guide small{color:#8a7968;font-size:11px}.home-journal-title{display:flex;align-items:center;gap:15px;margin:18px 26px 0;padding-bottom:14px;border-bottom:1px solid #edf1f4}.home-journal-title span{flex:0 0 auto;color:#596c7d;font-size:12px;font-weight:700}.home-journal-title input{width:100%;min-width:0;border:0;outline:0;color:#1f3347;font:600 17px/1.4 Arial,"Microsoft YaHei",sans-serif}.home-journal-title input::placeholder{color:#a4aeb8;font-weight:400}.home-log-composer{padding:12px 26px 18px;border-top:0}.home-rich-input{min-height:clamp(360px,42vh,620px);max-height:none;padding:14px 4px}.home-editor-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:12px;border-top:1px solid #edf1f4}.home-attachment-actions{display:flex;align-items:center;gap:5px;min-width:0;flex-wrap:wrap}.home-attachment-actions button{border:0;background:transparent;color:#617587;padding:7px 8px;border-radius:7px;cursor:pointer;font-size:12px}.home-attachment-actions button:hover{background:#f5f7f9;color:#c76500}.home-primary-actions{display:flex;align-items:center;gap:9px;flex:0 0 auto}.home-publish-button{min-width:116px;padding:9px 16px;border:1px solid #ff8500;border-radius:8px;background:#fff;color:#e87500;font-weight:700;cursor:pointer}.home-publish-button:hover{background:#fff6ec}.home-publish-button:disabled{cursor:wait;opacity:.65}.home-save-menu{position:relative;flex:0 0 auto}.home-save-menu summary{display:flex;align-items:center;justify-content:center;gap:9px;min-width:116px;padding:9px 16px;border-radius:8px;background:#ff8500;color:#fff;font-weight:700;cursor:pointer;list-style:none;user-select:none}.home-save-menu summary::-webkit-details-marker{display:none}.home-save-menu[open] summary{background:#e87500}.home-save-options{position:absolute;right:0;bottom:calc(100% + 8px);z-index:35;width:260px;padding:6px;border:1px solid #e1e7ec;border-radius:11px;background:#fff;box-shadow:0 14px 32px rgba(31,48,68,.16)}.home-save-options button{display:grid;width:100%;gap:3px;padding:10px 11px;border:0;border-radius:8px;background:transparent;color:#34495e;text-align:left;cursor:pointer}.home-save-options button:hover{background:#fff6ec;color:#bd5e00}.home-save-options b{font-size:13px}.home-save-options small{color:#8794a1;font-size:11px}.home-journal-editor+.section-heading{margin-top:22px}

@media(max-width:1400px){.home-rich-input{min-height:clamp(320px,40vh,520px)}}
@media(max-width:900px){.home-ai-entry{align-items:flex-start;flex-direction:column;gap:6px}.home-editor-head{align-items:flex-start;flex-direction:column;padding:18px}.ai-log-guide{width:100%;min-width:0}.home-journal-title{margin:16px 18px 0}.home-log-composer{padding:10px 18px 16px}.home-rich-input{min-height:300px}.home-editor-actions{align-items:stretch;flex-direction:column}.home-primary-actions{width:100%}.home-primary-actions>*{flex:1}.home-publish-button,.home-save-menu summary{box-sizing:border-box;width:100%}.home-save-options{right:0;left:0;width:auto}.home-attachment-actions{gap:2px}.home-ai-panel{padding:16px}.home-ai-panel .ai-chat-head{align-items:flex-start;flex-wrap:wrap}.home-ai-panel .ai-chat-head-actions{width:100%;justify-content:flex-end}.home-ai-panel .ai-chat-thread{min-height:140px;max-height:44vh}}

.home-save-chevron{display:block;width:12px;height:12px;flex:0 0 12px;overflow:visible;align-self:center;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;fill:none}

/* AI analysis is part of the journal editor instead of a separate workspace. */
.home-journal-editor>.home-ai-entry{margin:0;padding:10px 26px;border-width:0 0 1px;border-radius:0}
.home-ai-panel{display:flex;height:clamp(360px,44vh,520px);margin:0;padding:0;flex-direction:column;overflow:hidden;border-width:0 0 1px;border-radius:0;box-shadow:none}
.home-ai-panel[hidden]{display:none}
.home-ai-panel .ai-chat-head{flex:0 0 auto;padding:16px 26px;background:#fffdfb}
.home-ai-panel .ai-chat-thread{flex:1;min-height:0!important;max-height:none!important;padding:16px 26px;scroll-behavior:smooth;background:#fbfcfd}
.home-journal-editor>.ai-intent-hint{box-sizing:border-box;width:100%;margin:0;padding:7px 26px 6px}
.home-ai-welcome{display:grid!important;max-width:620px!important;margin:54px auto!important;place-items:center;padding:26px!important;background:transparent!important;border:0!important}
.home-ai-welcome>span{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:#fff0df;color:#e87500;font-size:20px}
.home-ai-welcome strong{margin-top:12px;color:#26394c;font-size:17px}
.home-ai-welcome p{margin:6px 0 16px!important;color:#7f8d9a!important}
.home-ai-welcome>div{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.home-ai-welcome button{border:1px solid #ffd3a5;border-radius:8px;background:#fff9f2;color:#c76500;padding:7px 10px;cursor:pointer}

@media(max-width:900px){.home-journal-editor>.home-ai-entry{padding:10px 18px}.home-ai-panel{height:min(58dvh,500px);padding:0}.home-ai-panel .ai-chat-head{padding:15px 18px}.home-ai-panel .ai-chat-thread{padding:14px 18px}.home-journal-editor>.ai-intent-hint{padding-right:18px;padding-left:18px}}
.home-publish-button{display:inline-flex!important;align-items:center;justify-content:center;min-width:104px;min-height:36px}
.home-save-menu summary{min-height:36px}
.home-save-option-title{display:flex;align-items:center;gap:8px;font-weight:700}
.archived-workspace-banner{display:flex;align-items:flex-start;gap:13px;margin-bottom:12px;padding:16px 18px;border:1px solid #dce3e6;border-radius:13px;background:linear-gradient(135deg,#f8fafb,#fff);color:#536b79}.archived-workspace-banner>span{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:9px;background:#e9edef;color:#6b7e89;font-size:17px}.archived-workspace-banner b{display:block;color:#354f5e;font-size:15px}.archived-workspace-banner p{margin:5px 0 0;color:#718590;font-size:12px;line-height:1.65}.archived-journal-heading{margin-top:18px}.archived-side-note{border-style:dashed!important;background:#f8fafb!important}.archived-side-note h3{color:#536a77!important}.archived-side-note p{color:#7a8d97!important;line-height:1.6}.archived-workspace-layout .new-project{display:none!important}
