/* The application is a readable work surface; the book keeps its own paper and type. */
@media screen {
body.memory-shell{--bg:#f6f5f0;--ink:#303d35;--muted:#657063;--line:#dce1d6;--accent:#46644f;--accent-soft:#e9eee5;--sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","PingFang SC",Tahoma,sans-serif;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:15px;line-height:1.65}
.memory-shell button,.memory-shell input,.memory-shell select,.memory-shell textarea{font-family:var(--sans)}
.memory-shell button{touch-action:manipulation}
.memory-shell button:focus-visible,.memory-shell summary:focus-visible,.memory-shell a:focus-visible{outline:3px solid #779480;outline-offset:4px}
.memory-shell input:focus-visible,.memory-shell textarea:focus-visible,.memory-shell select:focus-visible{outline:2px solid #6a8a73;outline-offset:2px}
.memory-shell button:disabled{opacity:.48;cursor:not-allowed}
.memory-shell .site-header{min-height:80px;height:auto;padding:16px 30px;gap:20px;background:#fffef9;border-color:var(--line)}
.memory-shell .brand{font-size:25px;line-height:1.2;letter-spacing:0;gap:12px;color:#344538;flex-shrink:0}
.memory-shell .brand small{font:11px/1.5 var(--sans);letter-spacing:.4px;color:var(--muted);margin-top:6px}
.memory-shell .brand-mark{color:#56725b}
.memory-shell .header-actions{gap:17px;flex-wrap:wrap;justify-content:flex-end}
.memory-shell .header-middle{font-size:12px;color:var(--muted);line-height:1.5;min-width:0}
.memory-shell .header-actions>.text-button,.memory-shell .membership-trigger{font-size:13px;color:#5b695b;line-height:1.5;min-height:44px}
.memory-shell .header-actions .button{font-size:13px;min-height:44px;border-radius:8px;padding:11px 17px;white-space:normal}
.memory-shell .language-switcher{border-color:#d7ded1;background:#fffefb;border-radius:8px;min-height:44px;padding:3px 10px}
.memory-shell .language-switcher svg{width:18px;height:18px;stroke:#566b58}
.memory-shell .language-switcher #ui-language{font-size:13px;max-width:165px;color:#3d4e40;min-height:36px}
.memory-shell .app-shell{grid-template-columns:212px minmax(0,1fr);max-width:1680px}
.memory-shell .sidebar{background:#edf0e7;padding:32px 20px;border-color:var(--line)}
.memory-shell .workspace-label{font-size:11px;letter-spacing:.6px;color:#61715f;padding:0 12px}
.memory-shell .new-diary{background:#46644f;min-height:47px;border-radius:9px;font-size:14px;margin-top:25px;padding:12px;gap:8px}
.memory-shell .steps{margin-top:22px;gap:8px}
.memory-shell .step{font-size:14px;font-weight:500;line-height:1.55;padding:14px 13px;border-radius:9px;min-height:50px;gap:13px;color:#53624f;text-align:start}
.memory-shell .step:hover{background:#e2e8db;filter:none}
.memory-shell .step.active{background:#dbe5d5;color:#284c35;box-shadow:inset 3px 0 #587b5c}
.memory-shell .diary-nav-icon{display:inline-flex;align-items:center;justify-content:center;color:inherit;width:22px;flex:0 0 22px}
.memory-shell .ui-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}
.memory-shell .sidebar-note{margin-top:48px;font-size:12px;color:#65765f;line-height:1.9;padding:0 12px}
.memory-shell .sidebar-note svg{stroke:#9aaa8c}
.memory-shell .local-label{font-size:11px;color:#66745e;line-height:1.8;padding-inline:12px}
.memory-shell main{padding:35px 40px 0;min-width:0}
.memory-shell .intro{padding-bottom:25px;border-color:var(--line)}
.memory-shell .eyebrow{font:600 11px/1.6 var(--sans);letter-spacing:1.7px;color:#687a60;margin-bottom:11px}
.memory-shell .intro h1{font-size:clamp(28px,2.5vw,38px);font-weight:400;letter-spacing:0;line-height:1.4;color:#344735;margin:0 0 12px}
.memory-shell .intro p{font:14px/1.85 var(--sans);color:#64705f;max-width:750px;margin:0}
.memory-shell .workspace{grid-template-columns:minmax(350px,1fr) minmax(320px,.95fr);gap:28px;padding-top:28px;align-items:start}
.memory-shell .editor{min-width:0}
.memory-shell[data-diary-view=stories]:not(.diary-show-preview) .editor,.memory-shell[data-diary-view=journal] .editor{max-width:900px}
.memory-shell .writing-paper{background:#fffefb;border-color:#dce2d5;border-radius:12px 12px 0 0;padding:26px 32px 24px;box-shadow:0 5px 24px #34462a04}
.memory-shell .writing-dateline{background:#fffefb;min-height:68px;top:0;padding:0 0 18px;margin:0 0 13px;border-color:#e6e9df;font-size:12px;color:#63715d;gap:12px}
.memory-shell .save-controls{display:flex;flex-direction:column;align-items:flex-end;gap:5px;flex-shrink:0;max-width:60%}
.memory-shell .writing-paper #save-diary{min-height:43px;min-width:94px;background:#46644f;border-radius:8px;font-size:14px;padding:9px 19px;justify-content:center}
.memory-shell #writing-save-status{font-size:11px;line-height:1.5;color:#63705c;text-align:end;overflow-wrap:anywhere}
.memory-shell #writing-save-status[data-state=failed],.memory-shell #writing-save-status[data-state=unavailable]{color:#9a4233}
.memory-shell .editor .writing-paper>label:not(.story-label){font:500 12px/1.6 var(--sans)!important;color:#62705b;margin:16px 0!important;display:block}
.memory-shell .editor .writing-paper>label:first-of-type{font-size:0!important;margin:0 0 12px!important}
.memory-shell .editor .writing-paper #story-title{font:400 28px/1.5 var(--serif);letter-spacing:0;color:#344735;border:0;background:transparent;border-radius:0;padding:9px 0 12px;margin:0;height:auto;box-shadow:none}
.memory-shell .writing-paper #story-title::placeholder{color:#7a8773;opacity:1}
.memory-shell .writing-paper .page-person input,.memory-shell .writing-paper #story-date{margin-top:6px!important;border:1px solid #dde2d7;background:#fafbf6;padding:10px 12px;font:14px/1.55 var(--sans)!important;border-radius:7px;min-height:43px;color:#40533f}
.memory-shell .writing-paper .optional{font-size:11px;color:#718068;margin-inline-start:6px}
.memory-shell .editor .writing-paper .story-label{font:500 12px/1.6 var(--sans)!important;color:#62705b;margin:24px 0 0!important}
.memory-shell .writing-paper #word-count{font:11px/1.6 var(--sans);color:#728068;float:inline-end;display:inline;margin:0}
.memory-shell .editor .writing-paper #story-text{font:17px/1.95 var(--sans)!important;color:#384535;background:none;padding:12px 0 0;min-height:340px;resize:none!important;box-shadow:none}
.memory-shell .writing-paper #story-text::placeholder{font:16px/1.95 var(--sans);color:#78856f;opacity:1}
.memory-shell .diary-photo figcaption{font-size:13px;color:#66735f;line-height:1.8}
.memory-shell .diary-tools{background:#fffefb;border-color:#dce2d5;border-radius:0 0 12px 12px;padding:14px 22px;gap:12px}
.memory-shell .diary-tool-buttons{gap:8px 15px;justify-content:space-between;width:100%}
.memory-shell .diary-tool-buttons .text-button{display:inline-flex;align-items:center;gap:7px;min-height:42px;color:#53694f;font-size:13px;line-height:1.5;padding:6px 2px}
.memory-shell .diary-tool-buttons #diary-ai{color:#785c39}
.memory-shell .diary-tool-buttons #diary-preview{font-size:13px;color:#3f6448}
.memory-shell .diary-save-hint{font:12px/1.8 var(--sans);text-align:start;color:#6b785f;margin:12px 3px 22px}
.memory-shell .diary-extras{color:#586e51;padding:20px 4px;font-size:14px;border-color:var(--line)}
.memory-shell .diary-extras>summary{font-size:14px;font-weight:500;min-height:40px;cursor:pointer}
.memory-shell .diary-extras .story-topline{font-size:13px}
.memory-shell .diary-extras label,.memory-shell .diary-extras #diary-original-page{font-size:13px}
.memory-shell .small-note,.memory-shell .panel-heading p{font-size:13px;line-height:1.85;color:#65725e}
.memory-shell .panel-heading h2{font-size:28px;line-height:1.5;color:#344735}
.memory-shell .section-index{font-size:11px;color:#6c7e61;letter-spacing:1px}
.memory-shell .editor label:not(.upload-area):not(.audio-upload):not(.import-label){font-size:13px;font-weight:500;color:#53644d;line-height:1.6}
.memory-shell .editor input,.memory-shell .editor select,.memory-shell .editor textarea{font-size:15px;color:#344a38;border-color:#d6decf;line-height:1.6}
.memory-shell .editor input,.memory-shell .editor select{min-height:46px;padding:11px 13px;border-radius:8px}
.memory-shell .editor input::placeholder,.memory-shell .editor textarea::placeholder{color:#78846e;opacity:1}
.memory-shell .button{font-size:14px;min-height:46px;border-radius:8px;padding:11px 18px;gap:10px;line-height:1.5}
.memory-shell .button-dark,.memory-shell .button-accent{background:#46644f;color:#fffef8;border-color:#46644f}
.memory-shell .button-outline{border-color:#bbcbb3;color:#496443;background:#fffef9}
.memory-shell .text-button{font-size:13px;line-height:1.6;color:#506c49;min-height:36px}
.memory-shell .round-button,.memory-shell .icon-button{min-width:42px;min-height:42px;font-size:19px}
.memory-shell .preview-column{top:24px;min-width:0}
.memory-shell .preview-toolbar{font-size:13px;padding:4px 0 15px}
.memory-shell .preview-kind{font-size:12px;color:#617758}
.memory-shell .book-stage{background-color:#e9ede2;border:1px solid #dee5d5;border-radius:12px;padding:56px 23px 48px}
.memory-shell .stage-note{font-size:9px;color:#6d7c62;letter-spacing:1.3px}
.memory-shell .preview-navigation>span{font-size:12px;color:#596b51}
.memory-shell .preview-bottom{font-size:11px;line-height:1.7;color:#69775f;gap:10px;flex-wrap:wrap}
.memory-shell .main-footer{font-size:11px;color:#6c795f;border-color:var(--line);gap:14px;line-height:1.8;padding:22px 0;margin-top:32px}
.memory-shell .journal-heading{margin:0 0 22px;gap:20px}
.memory-shell .journal-heading h2{font:400 29px/1.5 var(--serif);margin:5px 0 8px;color:#344735}
.memory-shell .journal-heading p{font-size:14px;color:#64725d;line-height:1.8}
.memory-shell .journal-heading .button{font-size:13px;flex-shrink:0}
.memory-shell .journal-controls{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(130px,1fr) minmax(120px,.8fr);gap:12px;align-items:end;padding:18px;background:#eef1e8;border:1px solid #dce3d2;border-radius:11px;margin-bottom:18px}
.memory-shell .journal-controls label{margin:0!important;display:block;min-width:0;font-size:12px!important}
.memory-shell .journal-controls input,.memory-shell .journal-controls select{margin:6px 0 0!important;width:100%;height:46px;background:#fffef9;padding:10px 12px;font-size:14px!important}
.memory-shell .journal-results-count{font-size:12px;color:#64755b;min-height:24px;padding-inline:3px;margin:0 0 8px}
.memory-shell .journal-entry{border:1px solid #dfe5d7;background:#fffefb;border-radius:11px;padding:22px;gap:18px;margin-bottom:12px;min-width:0;box-shadow:0 2px 8px #3f4e3003}
.memory-shell .journal-entry:hover{background:#f4f7ee;border-color:#b7c9aa}
.memory-shell .journal-entry-number{font:14px/1.7 var(--sans);color:#7c8a71;min-width:25px}
.memory-shell .journal-entry-content{gap:8px}
.memory-shell .journal-entry-content small{font:12px/1.8 var(--sans);color:#697b5f;overflow-wrap:anywhere}
.memory-shell .journal-entry-content strong{font:400 23px/1.5 var(--serif);color:#3a5239;letter-spacing:0}
.memory-shell .journal-entry-content>span{font:14px/1.85 var(--sans);color:#68755e}
.memory-shell .journal-entry>img{width:82px;height:82px;border-radius:5px;transform:rotate(-2deg);flex-shrink:0}
.memory-shell .journal-leaf{color:#91a180}
.memory-shell .theme-option{border-radius:9px;padding:10px;border-color:#d4ddcc}
.memory-shell .theme-option.selected{border-color:#5a7e56;background:#edf2e5;box-shadow:0 0 0 1px #5a7e56}
.memory-shell .theme-option strong{font-size:13px;line-height:1.6;color:#42553d}
.memory-shell .theme-option small{font-size:11px;color:#6e7b61;line-height:1.6}
.memory-shell .field-title{font-size:13px;color:#5e7253}
.memory-shell .export-summary{border:1px solid #d9e2cf;border-radius:11px;background:#edf1e6;padding:23px}
.memory-shell .export-summary h3{font-size:26px;color:#354c35}
.memory-shell .export-summary p,.memory-shell .export-summary>div{font-size:13px;color:#64745a;line-height:1.85}
.memory-shell .backup-section{border-color:var(--line);padding-top:22px}
.memory-shell .backup-section h3{font-size:21px}
.memory-shell .backup-section p{font-size:13px;line-height:1.85;color:#68775e}
.memory-shell .backup-section>div{gap:15px;flex-wrap:wrap}
.memory-shell #diary-edit-cover{font-size:13px;margin-bottom:18px}
.memory-shell dialog{border-radius:14px;background:#fffdf7;border-color:#d5decc;padding:26px;color:#354a36}
.memory-shell dialog::backdrop{background:#26372687;backdrop-filter:blur(4px)}
.memory-shell #confirm-dialog p{font-size:14px;color:#62745a;line-height:1.8}
.memory-shell #diary-ai-dialog{width:min(740px,94vw);background:#fffdf8;border-color:#d4dfca;padding:0}
.memory-shell #diary-ai-dialog .ai-composer{padding:22px 30px 30px}
.memory-shell .ai-intro,.memory-shell .ai-privacy,.memory-shell .connection-note,.memory-shell .source-limit{font-size:13px;line-height:1.8;color:#66775b}
.memory-shell .agent-chip{font-size:11px;line-height:1.7;background:#eff2e7;border:1px solid #d9e3cd;color:#526949}
.memory-shell .source-modes button{font-size:14px;min-height:44px}
.memory-shell #ai-source{font:16px/1.9 var(--sans);min-height:210px;padding:16px}
.memory-shell .ai-heading h2{font-size:28px}
.memory-shell .ai-actions .button{font-size:15px;min-height:48px}
.memory-shell .compose-options{font-size:13px;color:#65785a}
.memory-shell .source-tools button,.memory-shell .source-tools label,.memory-shell .direct-save{font-size:13px}
.memory-shell .public-preview-note{font-size:13px!important;line-height:1.85!important;color:#5e7054;background:#eef2e5;border-color:#dbe4d0}
.memory-shell .batch-panel{font-size:14px}
.memory-shell .batch-file,.memory-shell .batch-storage,.memory-shell .batch-progress,.memory-shell .batch-empty,.memory-shell .batch-hint{font-size:13px;color:#64745b;line-height:1.8}
.memory-shell #toast{font-size:14px;line-height:1.6;padding:13px 20px;border-radius:9px;background:#354e3c;max-width:min(90vw,640px)}
html[dir=rtl] .memory-shell{--sans:Tahoma,"Segoe UI",Arial,sans-serif}
html[dir=rtl] .memory-shell .step.active{box-shadow:inset -3px 0 #587b5c}
html[dir=rtl] .memory-shell .intro h1{font-size:38px;letter-spacing:0}
html[dir=rtl] .memory-shell .editor .writing-paper #story-text{font:18px/2.05 var(--sans)!important;background:none}
html[dir=rtl] .memory-shell .journal-entry-content strong{font-size:28px}
@media(max-width:1200px){.memory-shell .site-header{padding-inline:22px;gap:15px}.memory-shell .header-actions{gap:12px}.memory-shell .app-shell{grid-template-columns:190px minmax(0,1fr)}.memory-shell .sidebar{padding-inline:14px}.memory-shell .step{font-size:13px;padding-inline:12px}.memory-shell main{padding:30px 28px 0}.memory-shell .workspace{gap:22px}.memory-shell .writing-paper{padding:24px}.memory-shell .header-middle{display:none}.memory-shell .intro h1{font-size:31px}.memory-shell .diary-tool-buttons{gap:8px 10px}}
@media(max-width:1050px){.memory-shell .app-shell{grid-template-columns:1fr}.memory-shell .sidebar{display:flex;align-items:center;gap:18px;padding:12px 24px;border-bottom:1px solid var(--line)}.memory-shell .workspace-label,.memory-shell .sidebar-note,.memory-shell .local-label{display:none}.memory-shell .new-diary{width:auto;margin:0;min-width:140px;min-height:44px}.memory-shell .steps{flex:1;margin:0;display:flex;flex-direction:row;gap:8px}.memory-shell .step{flex:1;justify-content:center;padding:11px 8px;font-size:13px;min-height:44px;gap:8px}.memory-shell .step.active{box-shadow:inset 0 -3px #587b5c}.memory-shell .workspace{grid-template-columns:minmax(0,1fr)}.memory-shell .workspace .preview-column{position:static;max-width:640px;width:100%;margin:0 auto}.memory-shell.diary-show-preview .workspace{grid-template-columns:minmax(0,1fr)}.memory-shell .editor{width:100%;max-width:820px;margin:0 auto}.memory-shell .book-stage{min-height:0}.memory-shell .intro p{max-width:680px}.memory-shell .journal-controls{grid-template-columns:minmax(0,1.5fr) minmax(120px,1fr) minmax(110px,.8fr)}html[dir=rtl] .memory-shell .step.active{box-shadow:inset 0 -3px #587b5c}}
@media(max-width:740px){.memory-shell .site-header{padding:16px;gap:13px;flex-wrap:wrap;align-items:center}.memory-shell .brand{font-size:24px;flex:1;min-width:180px}.memory-shell .brand small{display:block;font-size:10px}.memory-shell .brand-mark{width:28px;height:32px}.memory-shell .header-actions{width:100%;justify-content:space-between;gap:6px 12px}.memory-shell .header-actions .button{font-size:12px;min-height:42px;padding:9px 12px}.memory-shell .header-actions>.text-button,.memory-shell .membership-trigger{font-size:12px;min-height:42px}.memory-shell .language-switcher{min-height:42px;padding-inline:8px}.memory-shell .language-switcher #ui-language{font-size:12px;max-width:140px;min-height:34px}.memory-shell .sidebar{padding:13px 16px;background:transparent;border:0;display:block}.memory-shell .new-diary{margin:0;width:100%;min-height:46px;font-size:14px}.memory-shell .steps{position:fixed;bottom:0;left:0;right:0;z-index:9;background:#fffef9f7;border-top:1px solid #d8e1ce;box-shadow:0 -4px 20px #34452a08;padding:8px 8px max(9px,env(safe-area-inset-bottom));gap:5px;backdrop-filter:blur(10px)}.memory-shell .step{font-size:12px;line-height:1.45;min-height:55px;flex-direction:column;gap:4px;padding:7px 4px;align-items:center;text-align:center;border-radius:8px}.memory-shell .diary-nav-icon{width:20px;flex:0 0 20px}.memory-shell .step.active{box-shadow:none;background:#e6eddf}.memory-shell main{padding:13px 16px 90px}.memory-shell .intro{padding-bottom:22px}.memory-shell .eyebrow{font-size:10px;margin-bottom:9px;letter-spacing:1px}.memory-shell .intro h1{font-size:29px;line-height:1.4;margin-bottom:10px}.memory-shell .intro p{font-size:13px;line-height:1.85}.memory-shell .workspace{display:flex;flex-direction:column;padding-top:22px;gap:24px}.memory-shell .editor{padding-top:0;border-top:0}.memory-shell .writing-paper{padding:20px;border-radius:11px 11px 0 0}.memory-shell .writing-dateline{min-height:65px;font-size:12px;padding-bottom:16px}.memory-shell .writing-paper #save-diary{min-height:43px;min-width:82px;font-size:14px}.memory-shell #writing-save-status{font-size:10px}.memory-shell .editor .writing-paper #story-title{font-size:27px;line-height:1.5;padding-top:6px}.memory-shell .editor .writing-paper #story-text{font-size:16px!important;line-height:1.95!important;min-height:310px;background:none}.memory-shell .writing-paper #story-text::placeholder{font-size:16px}.memory-shell .editor .writing-paper>label:not(.story-label){font-size:12px!important}.memory-shell .writing-paper .optional{display:block;margin:4px 0 0}.memory-shell .diary-tools{padding:12px 16px}.memory-shell .diary-tool-buttons{display:grid;grid-template-columns:1fr 1fr;gap:5px 10px}.memory-shell .diary-tool-buttons .text-button,.memory-shell .diary-tool-buttons #diary-preview{font-size:13px;min-height:44px;display:inline-flex!important;justify-content:flex-start}.memory-shell .diary-save-hint{font-size:12px;line-height:1.8}.memory-shell .preview-column{padding-top:0}.memory-shell .preview-toolbar{font-size:13px}.memory-shell .book-stage{padding:49px 18px 40px;border-radius:10px}.memory-shell .stage-note{font-size:8px}.memory-shell .preview-bottom{font-size:11px}.memory-shell .journal-heading{align-items:flex-start;gap:12px}.memory-shell .journal-heading h2{font-size:27px}.memory-shell .journal-heading p{font-size:13px}.memory-shell .journal-heading .button{font-size:12px;padding:10px 12px;max-width:42%}.memory-shell .journal-controls{padding:14px;grid-template-columns:1fr 1fr;gap:12px}.memory-shell .journal-search{grid-column:1/-1}.memory-shell .journal-controls input,.memory-shell .journal-controls select{font-size:14px!important}.memory-shell .journal-entry{padding:17px 14px;gap:12px}.memory-shell .journal-entry-number{font-size:12px;min-width:19px}.memory-shell .journal-entry-content strong{font-size:22px}.memory-shell .journal-entry-content small{font-size:11px}.memory-shell .journal-entry-content>span{font-size:13px}.memory-shell .journal-entry>img{width:58px;height:65px;border-width:3px}.memory-shell .journal-leaf{font-size:25px}.memory-shell .main-footer{font-size:11px;gap:9px;flex-direction:column;margin-top:24px}.memory-shell .field-row{gap:12px}.memory-shell .button{font-size:14px}.memory-shell #diary-ai-dialog .ai-composer{padding:20px}.memory-shell #diary-ai-dialog .ai-dialog-heading{padding:16px 20px 0}.memory-shell .ai-heading h2{font-size:26px}.memory-shell .theme-option{padding:7px}.memory-shell .theme-option strong{font-size:12px}.memory-shell .theme-option small{font-size:10px}.memory-shell #toast{bottom:95px;font-size:13px}.memory-shell .dialog-header{gap:12px;flex-wrap:wrap}.memory-shell .dialog-header .button{font-size:12px}.memory-shell .dialog-header h2{font-size:24px}.memory-shell .export-summary{padding:19px}.memory-shell .backup-section>div{flex-direction:column;align-items:stretch}html[dir=rtl] .memory-shell .intro h1{font-size:33px}html[dir=rtl] .memory-shell .step{font-size:13px}html[dir=rtl] .memory-shell .editor .writing-paper #story-text{font-size:18px!important}}
@media(prefers-reduced-motion:reduce){.memory-shell *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
}
@media screen {
.memory-shell .memory-details-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:9px 0 20px}
.memory-shell .memory-details-row>label{font:500 12px/1.6 var(--sans)!important;color:#62705b;margin:0!important;display:block;min-width:0}
.memory-shell .editor input[type=checkbox],.memory-shell .editor input[type=radio]{min-height:18px;width:18px;height:18px;padding:0;flex:0 0 18px;accent-color:#4c704f;cursor:pointer}
.memory-shell .library-workspace{padding:24px;background:#fffef9;border-color:#dbe3d1;border-radius:12px}
.memory-shell .library-workspace h3{font-size:26px;color:#354d36}
.memory-shell .library-workspace .small-note{font-size:13px;color:#65775b}
.memory-shell .library-new{gap:12px;margin-top:14px}
.memory-shell .library-new .button{font-size:13px;min-height:46px;white-space:normal}
.memory-shell .library-scope{gap:10px;margin-top:21px}
.memory-shell .library-scope legend{font:500 13px/1.6 var(--sans);color:#586f4d;margin-bottom:10px}
.memory-shell .library-scope label{padding:13px 15px;min-height:48px;border:1px solid #dbe3d0;border-radius:8px;flex:1;font-size:14px!important;cursor:pointer;background:#fafbf6}
.memory-shell .library-scope label:has(input:checked){background:#eaf0e1;border-color:#6f8b5e;color:#33532f;box-shadow:0 0 0 1px #6f8b5e}
.memory-shell .library-filters{border-top:1px solid #e0e7d7;padding-top:20px;gap:13px}
.memory-shell .library-unfiled{font-size:13px!important;line-height:1.7;min-height:40px}
.memory-shell .library-list-heading{border:0;padding-top:8px;align-items:center;flex-wrap:wrap}
.memory-shell .library-list-heading>strong{font-size:14px;font-weight:600;color:#435c3a;line-height:1.7}
.memory-shell .library-list-heading button{font-size:12px;white-space:normal;min-height:40px;line-height:1.5}
.memory-shell .library-list-heading>span{flex-wrap:wrap;gap:10px 16px}
.memory-shell .library-page-choice{padding:13px 3px;gap:10px;border-color:#e3e9db;min-height:70px}
.memory-shell .library-page-choice.is-selected{background:#f2f6eb}
.memory-shell .library-page-select{font-size:14px!important;gap:12px;min-height:44px;line-height:1.5}
.memory-shell .library-page-choice .selection-rank{font-size:12px;min-width:19px;color:#75876a}
.memory-shell .library-page-name strong{font:400 18px/1.5 var(--serif);color:#3b5435}
.memory-shell .library-page-name small{font:12px/1.7 var(--sans);color:#6b7b5f}
.memory-shell .library-page-order button{min-width:42px;min-height:42px;border-color:#c9d6bd;color:#46653b;background:#fffef9;border-radius:7px}
.memory-shell .library-book-tools{gap:14px;flex-wrap:wrap;margin:18px 0;align-items:center}
.memory-shell .library-book-tools #diary-edit-cover{margin:0;min-height:40px;font-size:12px;padding:8px 13px}
.memory-shell .library-book-tools .small-note{font-size:12px}
.memory-shell .library-undo{border:1px solid #cfdfc3;background:#edf3e4;font-size:13px;line-height:1.8;padding:13px 15px}
.memory-shell .page-memberships{margin:16px 0 22px;padding:17px 3px;border-color:#dce4d1}
.memory-shell .page-memberships summary{font-size:14px;color:#405e35;line-height:1.7;min-height:44px}
.memory-shell .page-memberships summary>span:last-child{font-size:12px;color:#667a59;margin-top:4px}
.memory-shell .page-memberships label{font:14px/1.7 var(--sans)!important;min-height:40px;color:#526a45}
.memory-shell .chat-batch{border-color:#dce4d0;border-radius:10px;padding:20px;background:#fbfcf6}
.memory-shell .chat-batch h3{font-size:22px;line-height:1.6;color:#3d5837}
.memory-shell .chat-batch summary{font-size:15px;color:#49653e;line-height:1.7;min-height:44px;cursor:pointer}
.memory-shell .batch-actions{gap:10px 14px;flex-wrap:wrap}
.memory-shell .batch-actions .button{font-size:13px;white-space:normal;text-align:start}
.memory-shell .external-steps{counter-reset:import-steps;list-style:none;margin:18px 0;padding:0;display:grid;gap:10px}
.memory-shell .external-steps li{position:relative;background:#f0f5e8;border:1px solid #dce7cf;border-radius:9px;padding:15px 16px 15px 51px;font-size:13px;line-height:1.8;color:#637657}
.memory-shell .external-steps li:before{counter-increment:import-steps;content:counter(import-steps);position:absolute;top:15px;left:15px;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#dce8d0;font:600 12px/1 var(--sans);color:#46623b}
.memory-shell .external-steps h4{font-size:14px;color:#3d5c32;margin:0 0 5px;font-weight:600;line-height:1.7}
.memory-shell .external-steps p{margin:0}
.memory-shell .import-review-toolbar{border:1px solid #d9e4cd;background:#f1f6e9;border-radius:9px;padding:16px;margin:20px 0 14px;font-size:13px;line-height:1.8;color:#4e683f}
.memory-shell .import-review-toolbar label{margin:12px 0!important}
.memory-shell .import-review-toolbar input{background:#fffefb}
.memory-shell .import-page-excerpt{font-size:13px;line-height:1.8;color:#67795b;white-space:pre-wrap;overflow-wrap:anywhere;padding:3px 0}
.memory-shell .chat-batch .moment-card{border-color:#dbe5ce;border-radius:9px;font-size:14px;padding:17px;background:#fffef9}
.memory-shell .chat-batch .moment-card p{font-size:13px;line-height:1.85;color:#657759}
.memory-shell #batch-files p{font-size:12px;line-height:1.8;color:#637756;overflow-wrap:anywhere}
.memory-shell #batch-summary{font-size:13px;line-height:1.85;color:#4e683e;font-weight:500}
.memory-shell .safety-undo{background:#eef4e7;border:1px solid #d1dfc5;border-radius:9px;padding:13px 15px;margin:15px 0;font-size:13px;line-height:1.8;color:#46613a}
.memory-shell[data-diary-view=journal] .intro,.memory-shell[data-diary-view=finish] .intro,.memory-shell[data-diary-view=cover] .intro{display:none}
.memory-shell[data-diary-view=journal] .workspace,.memory-shell[data-diary-view=finish] .workspace,.memory-shell[data-diary-view=cover] .workspace{padding-top:0}
.memory-shell #library-heading{display:none}
.memory-shell #library-intro{margin-top:0}
.memory-shell .page-edition-notice{margin:18px 0 0;border:1px solid #dddcc5;border-radius:9px;padding:14px 17px;background:#f6f4e8;font:13px/1.85 var(--sans);color:#6f684b}
.memory-shell .page-edition-notice p{margin:0 0 8px}
.memory-shell .page-edition-notice>div{display:flex;gap:10px 20px;flex-wrap:wrap}
.memory-shell .page-edition-notice .text-button{font-size:13px;color:#715b39;text-align:start}
.memory-shell .page-edition-notice[hidden]{display:none!important}
.memory-shell #page-delete-undo{padding:14px 16px;border:1px solid #cddfc0;border-radius:9px;background:#edf4e5;font-size:13px;line-height:1.8;color:#48643b;display:flex;align-items:center;justify-content:space-between;gap:14px}
.memory-shell #page-delete-undo[hidden]{display:none!important}
.memory-shell #undo-page-delete{font-size:13px;min-height:42px;flex-shrink:0}
.memory-shell #backup-error{color:#9b4331;background:#fff2e9;border:1px solid #e8cbbc;border-radius:8px;padding:12px 14px;font-size:13px;line-height:1.8}
.memory-shell #backup-error[hidden]{display:none!important}
@media(max-width:740px){.memory-shell .site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:13px 16px}.memory-shell .brand{font-size:19px;min-width:0;gap:9px;grid-column:1;grid-row:1}.memory-shell .brand small{display:none}.memory-shell .brand-mark{width:24px;height:29px}.memory-shell .header-actions{display:contents}.memory-shell .language-switcher{grid-column:2;grid-row:1;min-height:40px;padding-inline:7px}.memory-shell .language-switcher #ui-language{max-width:118px;font-size:12px;min-height:32px}.memory-shell .membership-trigger{grid-column:1;grid-row:2;justify-self:start}.memory-shell #preview-button{grid-column:2;grid-row:2;min-height:40px}.memory-shell .header-actions>.text-button{justify-self:start}.memory-shell .header-actions #backup-button{display:none}.memory-shell .intro h1{font-size:27px}.memory-shell #page-delete-undo{align-items:flex-start;flex-wrap:wrap}}
html[dir=rtl] .memory-shell .external-steps li{padding-left:16px;padding-right:51px}
html[dir=rtl] .memory-shell .external-steps li:before{left:auto;right:15px}
@media(max-width:740px){.memory-shell .memory-details-row{gap:12px;margin:9px 0 18px}.memory-shell .memory-details-row>label{font-size:11px!important}.memory-shell .memory-details-row input{font-size:13px!important;padding:10px!important}.memory-shell .library-workspace{padding:17px}.memory-shell .library-workspace h3{font-size:24px}.memory-shell .library-scope label{font-size:13px!important;padding:12px;min-width:120px}.memory-shell .library-page-choice{gap:6px}.memory-shell .library-page-select{gap:8px}.memory-shell .library-page-name strong{font-size:17px}.memory-shell .library-page-name small{font-size:11px}.memory-shell .library-page-order{flex-direction:column;gap:5px}.memory-shell .library-page-order button{min-height:37px;min-width:37px}.memory-shell .library-page-choice .selection-rank{font-size:10px;min-width:15px}.memory-shell .chat-batch{padding:15px}.memory-shell .external-steps li{font-size:12px;padding-inline-start:47px}.memory-shell .external-steps h4{font-size:13px}.memory-shell .chat-batch summary{font-size:14px}.memory-shell .import-review-toolbar{padding:13px}.memory-shell .batch-actions{gap:9px 13px}.memory-shell .batch-actions .button{font-size:12px}}
}
