:root{font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#28352e;background:#f7f8f4}*{box-sizing:border-box}body{margin:0}.shell{min-height:100vh;display:grid;grid-template-columns:270px 1fr}aside{background:#e9efe8;padding:38px 28px;display:flex;flex-direction:column;border-right:1px solid #dbe4da}.brand{font-family:Georgia,serif;font-size:26px;font-weight:bold;letter-spacing:1px}.brand span{display:block;font:11px ui-sans-serif,sans-serif;letter-spacing:2px;margin-top:8px;color:#789081}.tagline{font-size:13px;color:#6f8072;margin:42px 0 24px}nav{display:grid;gap:9px}.nav{border:0;text-align:left;background:transparent;color:#56675b;padding:14px 18px;border-radius:12px;font-size:15px;cursor:pointer}.nav.active{background:#d3e1d3;color:#294735;font-weight:600}.asidefoot{margin-top:auto;font-size:12px;line-height:2;color:#829488}main{width:min(840px,100%);margin:0 auto;padding:90px 44px}.eyebrow{color:#86998b;letter-spacing:2px;font-size:12px;text-transform:uppercase}h1{font-family:Georgia,'Noto Serif TC',serif;font-size:36px;font-weight:500;margin:18px 0}.sub{color:#7c8b7f;font-size:15px;line-height:1.8;margin:0 0 35px}textarea,input{font:inherit;color:#304238;border:1px solid #e0e8de;border-radius:14px;background:white;outline:none}textarea:focus,input:focus{border-color:#91ac96}#entry{width:100%;height:340px;resize:vertical;padding:27px;font-size:17px;line-height:2;border-radius:18px;box-shadow:0 10px 40px #3e62450b}textarea::placeholder,input::placeholder{color:#b0bcb2}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;color:#93a195;font-size:13px}button{cursor:pointer;font:inherit;border:1px solid #dce5dc;border-radius:10px;background:#fff;padding:12px 19px;color:#48634f}button:hover{filter:brightness(.96)}.primary{background:#496c55;color:#fff;border-color:#496c55;padding:13px 25px}.notice{margin-top:16px;color:#53745d;font-size:14px;min-height:22px}.hidden{display:none!important}.tools{margin-bottom:22px}.tools input{flex:1;padding:14px}.item{background:white;border:1px solid #e2e9e0;padding:22px 24px;border-radius:14px;margin:12px 0}.date{font-size:12px;color:#879b8b;margin-bottom:12px}.body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font-size:15px;max-height:150px;overflow:auto}.actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}.actions button{padding:7px 12px;font-size:12px}.hint{font-size:13px;color:#7b8e80;margin-bottom:16px}.question{width:100%;min-height:145px;padding:22px;line-height:1.8;resize:vertical}.answer{margin-top:32px;padding:30px;background:white;border:1px solid #dce7dc;border-radius:15px;white-space:pre-wrap;line-height:2;overflow-wrap:anywhere}.overlay{position:fixed;inset:0;background:#253c2dbb;z-index:20;display:grid;place-items:center}.modal{background:white;border-radius:18px;padding:36px;width:min(400px,90vw)}.modal input{display:block;width:100%;padding:12px;margin:20px 0}.error{color:#b44747}@media(max-width:700px){.shell{display:block}aside{padding:18px 20px;border-right:0}.brand{font-size:21px}.brand span,.tagline,.asidefoot{display:none}nav{display:flex;gap:4px;margin-top:18px}.nav{padding:11px 12px;font-size:13px;white-space:nowrap}main{padding:46px 20px}h1{font-size:29px}#entry{height:45vh;min-height:260px}.row{flex-wrap:wrap}.primary{margin-left:auto}}
/* Journal enhancements */
:root{--editor-font:17px}#entry{font-size:var(--editor-font)}.editor-tools,.history-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-bottom:16px}.editor-tools label,.setting label{font-size:12px;color:#718676;display:flex;flex-direction:column;gap:7px}.editor-tools input,.history-tools input,.history-tools select,.setting select{padding:11px 12px;min-width:130px}.editor-tools label:nth-child(2){flex:1}.editor-tools label:nth-child(2) input{width:100%}.history-tools #search{flex:1;min-width:190px}.check{display:flex;align-items:center;gap:6px;font-size:13px}.check input{min-width:0}.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.chip{font-size:11px;border-radius:20px;padding:4px 9px;background:#e9efe8;color:#4e6857}.calendar{background:white;border:1px solid #dce5dc;border-radius:16px;padding:18px;margin:20px 0}.calendar-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}.calendar-label{font-size:11px;color:#879b8b;padding:8px 0}.calendar-day{border:0;padding:10px 0;border-radius:8px;font-size:12px}.calendar-day.has-entry{background:#d4e4d6;color:#294735;font-weight:700}.selected{outline:2px solid #71987b}.setting{padding:18px 0;border-bottom:1px solid #dce5dc;display:flex;justify-content:space-between;align-items:center;gap:15px}.setting .hint{margin:0}.markdown{margin-top:15px;padding:20px;background:white;border:1px solid #dce5dc;border-radius:14px;line-height:1.8;overflow-wrap:anywhere}.focus-mode aside{display:none}.focus-mode .shell{display:block}.focus-mode main{max-width:900px}.focus-mode #write .sub,.focus-mode #write .eyebrow{display:none}#draftStatus{font-size:12px}
:root[data-theme="dark"]{color:#e1e9e0;background:#17211b}:root[data-theme="dark"] aside{background:#202e25;border-color:#314336}:root[data-theme="dark"] .brand,:root[data-theme="dark"] h1{color:#edf5ec}:root[data-theme="dark"] .nav{color:#b9cdbd}:root[data-theme="dark"] .nav.active{background:#37523e;color:#fff}:root[data-theme="dark"] textarea,:root[data-theme="dark"] input,:root[data-theme="dark"] select,:root[data-theme="dark"] button,:root[data-theme="dark"] .item,:root[data-theme="dark"] .calendar,:root[data-theme="dark"] .markdown,:root[data-theme="dark"] .answer{background:#243329;color:#e0ebe1;border-color:#405547}:root[data-theme="dark"] .primary{background:#5a8063;color:white}:root[data-theme="dark"] .chip{background:#3b5541;color:#dbeadc}:root[data-theme="dark"] .calendar-day.has-entry{background:#426b4d;color:white}:root[data-theme="dark"] .sub,:root[data-theme="dark"] .date{color:#a6b8a9}
@media(max-width:700px){.editor-tools{align-items:stretch}.editor-tools label{flex:1;min-width:130px}.editor-tools #focus{width:100%}.history-tools>*{flex:1}.setting{align-items:flex-start;flex-direction:column}.calendar{padding:8px}.calendar-day{padding:9px 0}}

.gallery{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.gallery img{width:110px;height:95px;object-fit:cover;border-radius:10px}.image-thumb{display:flex;flex-direction:column;gap:5px}.image-thumb button{padding:6px}.image-section{margin-top:18px;font-size:13px;color:#718676}.image-section input{max-width:100%;margin:8px 0}.vault-controls{display:flex;flex-direction:column;gap:8px}.vault-controls input{padding:10px}.vault-setting{align-items:flex-start}.locked .shell{visibility:hidden}.overlay{visibility:visible}.modal h2{font-family:Georgia,serif;font-weight:normal}

.memory-panel{margin:20px 0;padding:16px;border:1px solid #dce3d9;border-radius:14px}.memory-results{max-height:310px;overflow:auto;margin-top:12px}.memory-item{display:flex;align-items:flex-start;gap:12px;padding:10px 4px;border-bottom:1px solid #dce3d9;font-size:14px;line-height:1.5;cursor:pointer}.memory-item input{margin-top:4px;flex-shrink:0}.memory-panel .row{justify-content:flex-start;gap:10px;margin-top:12px;flex-wrap:wrap}

.memory-reason{display:inline-block;color:var(--muted,#78847b);font-size:.78rem;margin-top:5px;line-height:1.5}
