:root{color-scheme:light dark;--font:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";--bg-note:#fff;--bg-list:#f5f5f3;--bg-field:#fff;--text:#1d1d1f;--muted:#86868b;--divider:#e2e2e0;--yellow:#e5b400;--yellow-row:#fbe49c;--yellow-text:#8a6500;--hover:#0000000a;--shadow:0 8px 24px #0000001f}@media (prefers-color-scheme:dark){:root{--bg-note:#1e1e1e;--bg-list:#262626;--bg-field:#333;--text:#f2f2f2;--muted:#98989d;--divider:#3a3a3c;--yellow:#f5c518;--yellow-row:#5a4710;--yellow-text:#f5c518;--hover:#ffffff0d;--shadow:0 8px 24px #00000080}}*,:before,:after{box-sizing:border-box}html,body{height:100%;margin:0}body{font-family:var(--font);color:var(--text);background:var(--bg-note);-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}a{color:inherit}:focus-visible{outline:2px solid var(--yellow);outline-offset:2px;border-radius:6px}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;overflow:hidden;position:absolute!important}.app{grid-template-columns:minmax(280px,340px) 1fr;height:100dvh;display:grid}.list-pane{background:var(--bg-list);border-right:1px solid var(--divider);flex-direction:column;min-height:0;display:flex}.note-pane{background:var(--bg-note);min-height:0;overflow-y:auto}.toolbar{justify-content:flex-end;align-items:center;padding:14px 16px 6px;display:flex;position:relative}.icon-btn{appearance:none;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;width:36px;height:32px;display:grid}.icon-btn:hover{background:var(--hover);color:var(--text)}.icon-btn svg{width:22px;height:22px}.search{padding:4px 16px 10px}.search label{background:var(--bg-field);border:1px solid var(--divider);color:var(--muted);border-radius:10px;align-items:center;gap:8px;padding:7px 10px;display:flex}.search label:focus-within{border-color:var(--yellow)}.search svg{flex:none;width:16px;height:16px}.search input{all:unset;font:inherit;color:var(--text);flex:1;min-width:0;font-size:15px}.search input::placeholder{color:var(--muted)}.search input::-webkit-search-cancel-button{-webkit-appearance:none}.note-list{flex:1;padding:0 10px 24px;overflow-y:auto}.group h2{color:var(--muted);margin:16px 8px 6px;font-size:13px;font-weight:700}.group ul{margin:0;padding:0;list-style:none}.group li+li .row:before{content:"";border-top:1px solid var(--divider);position:absolute;top:0;left:14px;right:14px}.row{color:var(--text);border-radius:10px;padding:10px 14px;text-decoration:none;display:block;position:relative}.row:hover{background:var(--hover)}.row[aria-current=page]{background:var(--yellow-row)}.row[aria-current=page]:before,li:has(.row[aria-current=page])+li .row:before{border-top-color:#0000!important}.row-title{white-space:nowrap;text-overflow:ellipsis;align-items:baseline;gap:6px;font-size:15px;font-weight:700;line-height:1.35;display:flex;overflow:hidden}.row-meta{white-space:nowrap;text-overflow:ellipsis;margin-top:2px;font-size:13px;line-height:1.4;display:block;overflow:hidden}.row-meta time{color:var(--text);margin-right:6px}.row-meta .prev{color:var(--muted)}.empty{color:var(--muted);text-align:center;margin:32px 0;font-size:14px}.note-list[data-layout=gallery] .group ul{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;padding:0 4px;display:grid}.note-list[data-layout=gallery] .row{background:var(--bg-note);border:1px solid var(--divider);flex-direction:column;justify-content:flex-end;min-height:120px;padding:12px;display:flex}.note-list[data-layout=gallery] .row:before{display:none}.note-list[data-layout=gallery] .row[aria-current=page]{border-color:var(--yellow);box-shadow:0 0 0 2px var(--yellow);background:var(--bg-note)}.note-list[data-layout=gallery] .row-title{white-space:normal;flex-direction:column;gap:6px}.note-list[data-layout=gallery] .row-title .ic{font-size:28px}.note-list[data-layout=gallery] .row-meta .prev{display:none}.menu{z-index:10;background:var(--bg-note);border:1px solid var(--divider);min-width:220px;box-shadow:var(--shadow);border-radius:12px;padding:6px;font-size:14px;position:absolute;top:46px;right:14px}.menu[hidden]{display:none}.menu-label{color:var(--muted);padding:8px 10px 4px;font-size:12px;font-weight:600}.menu hr{border:0;border-top:1px solid var(--divider);margin:6px 4px}.menu button{all:unset;box-sizing:border-box;cursor:pointer;width:100%;color:var(--text);border-radius:8px;align-items:center;gap:8px;padding:7px 10px;display:flex}.menu button:hover,.menu button:focus-visible{background:var(--yellow-row);outline:none}.menu button .tick{width:14px;color:var(--yellow-text);font-weight:700}.menu button[aria-checked=false] .tick{visibility:hidden}.back{display:none}.note{max-width:720px;margin:0 auto;padding:22px 40px 80px}.note-date{text-align:center;color:var(--muted);margin:0 0 22px;font-size:13px}.note h1{letter-spacing:-.01em;margin:0 0 18px;font-size:30px;font-weight:700;line-height:1.2}.note h1 .ic{margin-right:8px}.prose{font-size:16.5px;line-height:1.6}.prose p{margin:0 0 14px}.prose a{text-decoration:underline;text-decoration-color:var(--yellow);text-underline-offset:3px;text-decoration-thickness:1.5px}.prose a:hover{text-decoration-thickness:2.5px}.prose ul{margin:0 0 14px;padding-left:22px}.prose li{margin:6px 0}.prose h2{margin:0;font-size:20px;display:inline}.prose details.section{margin:18px 0 8px}.prose summary{cursor:pointer;padding:4px 0 10px;list-style:none;position:relative}.prose summary::-webkit-details-marker{display:none}.prose summary:before{content:"▾";color:var(--muted);text-align:center;width:16px;font-size:14px;position:absolute;top:6px;left:-22px}.prose details:not([open])>summary:before{content:"▸"}.prose summary:hover:before{color:var(--yellow-text)}.prose ul.contains-task-list{padding-left:0;list-style:none}.prose li.task-list-item{margin:10px 0;padding-left:33px;position:relative}.prose li.task-list-item input{-webkit-appearance:none;appearance:none;border:1.5px solid var(--muted);background:0 0;border-radius:50%;width:21px;height:21px;margin:0;position:absolute;top:2px;left:0}.prose li.task-list-item input:checked{background:var(--yellow) center / 13px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");border-color:var(--yellow)}.page{max-width:720px;margin:0 auto;padding:22px 24px 80px}.page .home-link{color:var(--yellow-text);margin-bottom:28px;font-size:17px;text-decoration:none;display:inline-block}.page .home-link:hover{text-decoration:underline}@media (width<=767px){.app{height:auto;display:block}.list-pane{border-right:0;min-height:100dvh}.note-list{overflow:visible}.note-pane{min-height:100dvh;overflow:visible}[data-view=home] .note-pane{display:none}[data-view=home] .row[aria-current=page]{background:0 0}[data-view=home] li:has(.row[aria-current=page])+li .row:before{border-top-color:var(--divider)!important}[data-view=note] .list-pane{display:none}.back{color:var(--yellow-text);padding:14px 18px 0;font-size:17px;text-decoration:none;display:inline-block}.note{padding:14px 22px 64px}.note h1{font-size:26px}.prose summary:before{left:-18px}.prose{padding-left:4px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
