:root{font-family:system-ui,-apple-system,PingFang SC,Microsoft YaHei,sans-serif;color:#40372f;background:#f7f2e8;font-synthesis:none;--paper: #f7f2e8;--ink: #40372f;--muted: #746756;--line: #ded3c1;--green: #526247;--serif: "Songti SC", "Noto Serif CJK SC", "SimSun", serif}*{box-sizing:border-box}body{margin:0;background-image:url(/paper.png)}button,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}button:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}.journal{min-height:100svh;display:flex;flex-direction:column}main{width:min(100% - 40px,650px);flex:1;margin:0 auto;padding:clamp(48px,10vh,105px) 0 36px}.page-heading{margin-bottom:27px}.date-label{margin:0 0 17px;font-size:.88rem;letter-spacing:.12em;color:var(--muted)}h1,h2{font-family:var(--serif);font-weight:600}h1{font-size:clamp(1.72rem,5.2vw,2.65rem);line-height:1.3;margin:0;letter-spacing:.065em}h2{font-size:1.2rem;margin:0 0 .6em}.guide{border-block:1px solid var(--line);color:var(--green)}summary{cursor:pointer;display:flex;align-items:center;gap:9px;padding:12px 2px;list-style:none;font-size:.9rem}summary::-webkit-details-marker{display:none}.guide-mark{border:1px solid;border-radius:50%;width:16px;height:16px;display:inline-grid;place-items:center;font-size:.68rem}.chevron{margin:0 6px 3px auto;width:7px;height:7px;border:solid currentColor;border-width:0 1px 1px 0;transform:rotate(45deg)}details[open] .chevron{transform:rotate(225deg);margin-bottom:0}.guide-copy{padding:0 10px 12px 27px;color:var(--muted);font-size:.92rem;line-height:1.75}.guide-copy p{margin:0 0 .7em}.editor{margin-top:16px}.entry-line{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:start;border-bottom:1px solid var(--line);padding:11px 0}.entry-line label{color:var(--muted);font-family:Georgia,serif;font-size:.88rem;letter-spacing:.09em;padding-top:14px}.entry-line textarea{min-height:54px;width:100%;border:0;background:transparent;padding:10px 4px;resize:none;overflow:hidden;font-size:1rem;line-height:1.65}textarea::placeholder{color:#7d705f;opacity:1}.save-status{font-size:.8rem;color:var(--muted);margin-top:17px}.save-status span{color:var(--green);font-size:1.1rem;vertical-align:-.06em}nav{display:flex;justify-content:center;gap:clamp(20px,10vw,78px);border-top:1px solid var(--line);background:#f7f2e8f7;padding:8px 12px max(8px,env(safe-area-inset-bottom))}nav button{display:grid;justify-items:center;gap:4px;min-width:64px;border:0;color:var(--muted);background:transparent;border-radius:7px;padding:6px 12px;font-size:.78rem}nav button[aria-current]{color:var(--green);background:#e9eadc}.month-bar{display:flex;align-items:center;justify-content:space-between;border-block:1px solid var(--line);padding:5px 0}.month-bar h2{margin:0}.month-bar button{border:0;background:none;font-size:1.8rem;min-width:44px;min-height:44px}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;gap:4px;margin-top:10px}.weekday{padding:11px 0;color:var(--muted);font-size:.78rem}.day{min-height:44px;border:1px solid transparent;border-radius:6px;position:relative;background:transparent;padding:0 0 4px;font-variant-numeric:tabular-nums}.day[aria-current]{border-color:var(--line)}.day[aria-pressed=true],.day:hover:not(:disabled){background:#e9eadc;color:var(--green)}.day i{width:4px;height:4px;position:absolute;bottom:5px;left:calc(50% - 2px);border-radius:50%;background:var(--green)}.history{border-top:1px solid var(--line);padding-top:24px;margin-top:26px}.history h1{font-size:1.55rem}.setting-section{padding:19px 0;border-top:1px solid var(--line)}.setting-section p,.reminder,.notice,.problem{color:var(--muted);font-size:.91rem;line-height:1.7;margin:.6em 0}.actions{display:flex;flex-wrap:wrap;gap:8px}.setting-section button,.reminder button,.problem button{background:transparent;border:1px solid #cfc1ae;color:var(--green);padding:7px 11px;border-radius:5px;min-height:40px}.setting-section button:hover:not(:disabled),.reminder button:hover{background:#e9eadc}.import-panel,.reminder{border:1px solid var(--line);padding:12px;margin-top:14px}.import-panel ul{max-height:150px;overflow:auto}.problem{color:#8c3f2c}
