.wf-fields{display:grid;gap:16px;min-width:0}.wf-fields fieldset{border:1px solid var(--line,#ddd6c9);border-radius:12px;padding:14px;min-width:0}.wf-fields legend{padding:0 6px;font-size:13px}.wf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.wf-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.wf-check{display:flex;align-items:flex-start;gap:8px;font-size:14px;line-height:1.6;padding:6px 0;overflow-wrap:anywhere}.wf-check input{accent-color:var(--accent,#986145);flex-shrink:0;width:17px;height:17px;margin-top:3px}.wf-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.wf-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line,#ddd6c9);padding:12px 0;flex-wrap:wrap}.wf-row>div,.wf-row>span{flex:1;min-width:100px;overflow-wrap:anywhere}.wf-row small{display:block;color:var(--text-muted,#777);font-size:12px;line-height:1.7}.wf-result{display:grid;gap:4px;width:100%;text-align:left;background:transparent;color:inherit;border:0;border-bottom:1px solid var(--line,#ddd6c9);padding:14px 4px;cursor:pointer;overflow-wrap:anywhere}.wf-result small{color:var(--text-muted,#777)}.wf-result span{font-size:12px;line-height:1.7}.wf-small{width:30px;height:30px;min-width:30px;flex:none;opacity:.8}.wf-small .icon{width:15px;height:15px}.wf-page-tools{margin-left:auto}.wf-photo-time{border:0;background:transparent;color:var(--text-muted,#777);font-size:11px;padding:7px 4px;width:100%;cursor:pointer;line-height:1.6;overflow-wrap:anywhere}.diary-photo figcaption{position:relative;background:var(--paper,#f8f6f0)}.wf-shelf{padding:24px;display:grid;gap:24px}.wf-books{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:18px}.wf-book{padding:24px;border:1px solid var(--line,#ddd6c9);border-radius:14px;background:var(--paper,#faf8f3);display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0;overflow-wrap:anywhere}.wf-book h3{font-family:var(--font-serif,serif);font-size:22px;line-height:1.5;margin:0}.wf-book small{font-size:12px;color:var(--text-muted,#777)}.wf-book p{font-size:14px;line-height:1.9;margin:0;white-space:pre-wrap}.wf-book .wf-actions{margin-top:auto;padding-top:12px}.wf-book-status{font-size:11px;letter-spacing:1px;color:var(--accent,#986145)}.wf-rating{color:#ac7b39;letter-spacing:3px}.wf-review{max-height:190px;overflow:auto}.wf-legacy{margin-top:28px;border-top:1px solid var(--line,#ddd6c9);padding-top:18px}.wf-legacy>summary{cursor:pointer;font-size:14px;color:var(--text-muted,#777);padding:12px}.wf-legacy .reading-page>.page-head,.wf-legacy .reading-hero,.wf-legacy .book-list-card{display:none}.wf-nav-group{cursor:pointer;user-select:none;display:flex!important;align-items:center;justify-content:space-between}.wf-nav-group:after{content:'▾';font-size:12px}.wf-nav-group[aria-expanded=false]:after{content:'▸'}.wf-nav-hidden{display:none!important}.wf-source{border:0;background:transparent;color:var(--accent,#986145);font-size:11px;cursor:pointer}.wf-quick{position:fixed;right:30px;bottom:300px;z-index:89;width:44px;height:44px;border:1px solid var(--line,#ddd6c9);border-radius:50%;background:var(--paper,#fffaf1);color:var(--accent,#986145);box-shadow:0 5px 18px #0001;display:grid;place-items:center;cursor:pointer}.wf-quick .icon{width:20px;height:20px}#wf-undo{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:140;display:flex;align-items:center;gap:12px;max-width:calc(100% - 24px);width:max-content;border:1px solid var(--line,#ddd6c9);border-radius:14px;padding:10px 14px;background:var(--paper,#fffcf5);box-shadow:0 8px 30px #0002;font-size:13px}#wf-settings-tools{margin-top:10px}
@media(max-width:760px){.wf-quick{right:242px;bottom:calc(var(--mobile-nav-height,64px) + env(safe-area-inset-bottom,0px) + 12px)}.wf-shelf{padding:16px;gap:18px}.wf-books{grid-template-columns:1fr}.wf-book{padding:20px}.wf-grid{grid-template-columns:1fr}.wf-options{grid-template-columns:1fr 1fr}.wf-check{font-size:13px}.wf-fields input[type=date],.wf-fields input[type=datetime-local]{max-width:100%;min-width:0;width:100%}#wf-undo{bottom:calc(124px + env(safe-area-inset-bottom,0px));font-size:12px;gap:8px}.wf-page-tools{margin-left:0}.wf-legacy>summary{font-size:13px}.todo-item .wf-source{align-self:flex-start}}
@media(max-width:350px){.wf-options{grid-template-columns:1fr}.wf-quick{width:40px;height:40px;right:242px}}

.diary-photo{aspect-ratio:auto!important;height:auto!important;min-width:0}.diary-photo>button:first-child{height:auto;aspect-ratio:1}.diary-photo figcaption{min-height:38px}.wf-page-tools{position:relative;z-index:1}

.wf-source{display:block;text-align:left;margin-top:4px}.meal-entry{flex-wrap:wrap}.wf-quick{background:var(--paper,#fffcf5)}.today-hero>.wf-page-tools{align-self:flex-start;padding:8px}.wf-nav-group:focus-visible{outline:2px solid var(--accent,#986145);outline-offset:3px}

.wf-photo-view{margin:0;display:grid;gap:12px;touch-action:pan-y pinch-zoom}.wf-photo-view img{display:block;width:100%;max-height:65vh;object-fit:contain;border-radius:10px}.wf-photo-view figcaption{text-align:center;font-size:13px;color:var(--ink-soft,#6c675c);line-height:1.8}.wf-home-tools{display:flex;justify-content:flex-end;margin:8px 0 18px}.wf-home-section{min-width:0}.wf-home-section>summary,.wf-memories>summary{cursor:pointer;padding:12px 4px;color:var(--ink-soft,#6c675c);font-size:13px;line-height:1.6}.wf-home-section[hidden]{display:none}.wf-home-section>section,.wf-home-section>article{margin-bottom:0}.wf-memories{border:1px solid var(--line,#ddd6c9);border-radius:16px;padding:6px 16px;margin:0 0 22px;background:var(--paper,#fbf8f1)}.wf-memory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px 0}.wf-memory{display:grid;gap:8px;text-align:left;min-width:0;padding:16px;border:1px solid var(--line,#ddd6c9);border-radius:12px;background:transparent;color:inherit;cursor:pointer;overflow-wrap:anywhere}.wf-memory img{width:100%;height:120px;object-fit:cover;border-radius:8px}.wf-memory small{color:var(--ink-soft,#6c675c);font-size:12px}.wf-memory span{font-size:13px;line-height:1.8;white-space:pre-wrap}.wf-fields fieldset>legend{max-width:100%}
@media(max-width:600px){.wf-memory-grid{grid-template-columns:1fr}.wf-home-section>summary{padding:10px 2px}.wf-photo-view img{max-height:58vh}.wf-home-tools{margin:8px 0 14px}.wf-fields .wf-grid .input{min-width:0;width:100%}}

/* 2.40.77 撤销提示收窄胶囊（#wf-undo / #ba-undo 共用） */
.undo-capsule{position:fixed;right:12px;bottom:12px;z-index:140;width:40px;height:40px;opacity:.6;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:var(--shadow-md)}
.undo-capsule:hover,.undo-capsule:focus-within{opacity:1}
.undo-capsule-main{position:relative;display:flex;align-items:center;justify-content:center;gap:3px;width:100%;height:100%;border:0;background:transparent;color:var(--accent);font-size:11px;line-height:1;cursor:pointer;border-radius:inherit;padding:0}
.undo-capsule-main .undo-capsule-icon{font-size:14px}
.undo-capsule-main:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.undo-capsule-close{position:absolute;top:-7px;right:-7px;width:20px;height:20px;display:none;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--accent);font-size:11px;line-height:1;cursor:pointer;padding:0}
.undo-capsule:hover .undo-capsule-close,.undo-capsule:focus-within .undo-capsule-close{display:flex}
.undo-capsule-close:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.co-private .undo-capsule{display:none!important}
@media(max-width:760px){.undo-capsule{bottom:calc(var(--phone-nav-height,70px) + 12px)}}
@media print{.undo-capsule{display:none!important}}
