:root{font-family:system-ui,Microsoft YaHei,sans-serif;color:#45322e;background:#fff8f1;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit;color:inherit;border:1px solid #e8cfc6;border-radius:10px;padding:.62rem .8rem;background:#fffdf9}button{cursor:pointer}button:hover,button[aria-current],button[aria-pressed=true]{background:#fbe4dc}button:focus-visible,input:focus-visible,.tiptap:focus-visible{outline:2px solid #974d48;outline-offset:2px}.primary{color:#fff;background:#934c49;border-color:#934c49}.primary:hover{background:#763d3a}.layout{min-height:100vh;display:grid;grid-template-columns:220px 1fr}aside{background:#fdf0e7;padding:1.5rem;border-right:1px solid #eddad0}header,.row{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}header img{width:42px;border-radius:11px}nav{display:grid;gap:.6rem;margin-top:2rem}nav button{text-align:left}main{padding:2rem;width:min(100%,880px);margin:auto}.heading{justify-content:space-between}h1{font-weight:650}.paper{background:#fffdf9;border:1px solid #eedbd0;border-radius:18px;padding:1.25rem;margin-bottom:1rem}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.3rem;margin-top:1rem;text-align:center}.calendar button{position:relative;padding:.5rem .1rem;min-height:40px}.calendar i{position:absolute;bottom:3px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:#934c49}.entry{display:flex;width:100%;justify-content:space-between;margin-top:.65rem}.title{font-size:1.35rem;width:100%;margin-bottom:.8rem}.toolbar{margin-top:1rem}.tiptap{min-height:220px;padding:.75rem;overflow-wrap:anywhere}.login{max-width:520px}.login img{width:72px;border-radius:16px}input{max-width:100%}@media(max-width:690px){.layout{display:flex;flex-direction:column}aside{padding:1rem;border-right:0}nav{display:flex;flex-wrap:wrap;margin-top:.8rem}nav button{flex:auto}main{padding:1rem}.paper{padding:.85rem}}.task-overview{list-style:none;padding:0;margin-bottom:0}.task-overview li{display:flex;justify-content:space-between;align-items:center;gap:.7rem;flex-wrap:wrap;padding:.55rem 0;border-bottom:1px solid #eedbd0}.task-overview input{accent-color:#934c49}.export-fields{margin-block:.8rem}.print-diary{display:none}@media print{:root{background:#fff;color:#222}.layout{display:none}.print-diary{display:block}.print-diary article+article{break-before:page}.print-diary .tiptap{padding:0;min-height:0}}.diary-media{margin:1rem 0;padding:.75rem;border:1px solid #e8cfc6;border-radius:12px}.diary-media img,.diary-media video,.diary-media audio{display:block;max-width:100%;max-height:65vh}.diary-media figcaption{margin:.4rem 0;overflow-wrap:anywhere}.diary-shell{min-height:100vh}.diary-shell main{width:min(100%,var(--writing-width,880px))}.diary-shell .tiptap{font-family:var(--writing-font,inherit);font-size:var(--writing-size,16px)}.diary-shell .primary{background:var(--accent);border-color:var(--accent)}.diary-shell .calendar i{background:var(--accent)}.diary-cover{width:100%;max-height:200px;object-fit:cover;border-radius:18px;margin-bottom:1rem}.settings>label{display:block;margin:.65rem 0}.lock-screen{margin:12vh auto;width:min(94%,450px)}.diary-shell[data-theme=dark]{color-scheme:dark;background:#211819;color:#f4e4df}.diary-shell[data-theme=dark] aside,.diary-shell[data-theme=dark] .paper{background:#302225;border-color:#564045}.diary-shell[data-theme=dark] :is(button,input,select){background:#3c2a2e;border-color:#665057;color:#f4e4df}.diary-shell[data-theme=dark] button:hover,.diary-shell[data-theme=dark] button[aria-current],.diary-shell[data-theme=dark] button[aria-pressed=true]{background:#624349}@media print{.diary-shell[data-theme=dark]{background:#fff;color:#222;color-scheme:light}}.photo-wall .tiptap{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:.65rem;min-height:0}.photo-wall .diary-media{margin:0}.photo-wall img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}.mood-bars{list-style:none;padding:0}.mood-bars li{display:grid;grid-template-columns:minmax(7rem,1fr) 2fr;align-items:center;gap:.75rem;margin:.5rem 0}.mood-bars meter{width:100%}.login form label{display:grid;gap:.35rem;margin-bottom:.65rem}.login form input{width:100%}
