.notes-main{max-width:920px;padding-bottom:36px}
.notes-heading{padding:22px 0 18px}
.notes-heading h1{margin:0;font-family:Georgia,"Songti SC","Noto Serif CJK SC",serif;font-size:34px;font-weight:500;line-height:1.4;letter-spacing:.04em}
.notes-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.notes-compose{background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:16px 18px;margin-bottom:20px}
.notes-compose:focus-within{border-color:var(--focus);box-shadow:0 0 0 3px var(--focus-shadow)}
.notes-compose textarea,.note-edit textarea{display:block;width:100%;padding:0;resize:vertical;min-height:64px;max-height:360px;border:0;background:transparent;font:inherit;font-size:16px;line-height:1.8;color:var(--ink);outline:none}
.notes-compose textarea::placeholder{color:var(--placeholder)}
.compose-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
#note-status{min-width:0;overflow-wrap:anywhere;margin:0;color:var(--muted);font-size:14px;line-height:1.6}
.note-primary,.note-secondary{border:1px solid var(--button-bg);border-radius:8px;background:var(--button-bg);color:var(--button-ink);padding:9px 20px;cursor:pointer;min-height:44px;font-size:15px;line-height:1.6;white-space:nowrap}
.note-primary:hover{background:var(--button-hover);border-color:var(--button-hover)}
.note-secondary{border-color:var(--line);background:var(--paper);color:var(--muted)}
.note-secondary:hover{background:var(--soft);color:var(--ink)}
.notes-main button:disabled{cursor:wait;opacity:.6}
.note-error{padding:13px 16px;margin:0 0 22px;border:1px solid var(--accent-border);background:var(--soft);border-radius:8px;color:var(--accent);font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.notes-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.notes-filters{display:flex;gap:4px}
.notes-filters button{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);cursor:pointer;min-height:44px;font-size:14px;white-space:nowrap}
.notes-filters button[aria-pressed=true]{color:var(--accent);background:var(--soft);border-color:var(--selected-border);font-weight:550}
.notes-filters button:hover{background:var(--soft)}
.notes-filters span{font-size:14px;min-width:14px;text-align:center;font-variant-numeric:tabular-nums}
.note-tools{display:flex;align-items:center;gap:10px;min-width:0}
.note-search{display:flex;align-items:center;gap:9px;color:var(--muted);max-width:180px;min-width:0;padding:0 10px;border:1px solid var(--control-border);border-radius:8px;background:var(--paper)}
.note-search input{width:100%;min-width:0;border:0;outline:none;color:var(--ink);background:transparent;font:inherit;font-size:16px;line-height:2.5}
.note-search input::placeholder{color:var(--placeholder)}
.note-search:focus-within{border-color:var(--focus);outline:2px solid var(--focus-ring)}
.note-refresh{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--muted);cursor:pointer}
.note-refresh:hover{color:var(--accent);background:var(--soft)}
.note-list{list-style:none;padding:0;margin:0}
.note-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:8px;align-items:start;padding:16px 0;border-bottom:1px solid var(--line)}
.note-checkbox{appearance:none;-webkit-appearance:none;display:grid;place-items:center;margin:0;width:44px;height:44px;border:11px solid transparent;border-radius:16px;background:var(--paper);background-clip:padding-box;box-shadow:inset 0 0 0 1.5px var(--silver);cursor:pointer}
.note-checkbox:checked{background:var(--button-bg);background-clip:padding-box;box-shadow:none}
.note-checkbox:checked::after{content:'✓';color:var(--button-ink);font-size:16px;line-height:1;font-weight:600}
.note-checkbox:hover{box-shadow:inset 0 0 0 1.5px var(--accent)}
.note-checkbox:focus-visible,.notes-main button:focus-visible,.notes-main textarea:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
.notes-compose textarea:focus-visible{outline:0}
.note-content{min-width:0}
.note-text{margin:5px 0 0;color:var(--ink);font-size:16px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
.note-row[data-completed=true] .note-text{color:var(--muted);text-decoration:line-through;text-decoration-color:var(--silver)}
.note-date{display:block;margin-top:8px;color:var(--muted);font-size:14px;line-height:1.6;font-variant-numeric:tabular-nums}
.note-edit-button{min-height:44px;min-width:44px;border:0;background:transparent;cursor:pointer;padding:4px 3px;font-size:14px;color:var(--muted)}
.note-edit-button:hover{color:var(--accent);text-decoration:underline}
.note-edit{grid-column:2/-1}
.note-edit textarea{padding:11px 13px;border:1px solid var(--silver);border-radius:8px;background:var(--paper)}
.note-edit-actions{display:flex;align-items:center;gap:9px;margin-top:12px}
.note-edit .note-primary,.note-edit .note-secondary{padding:7px 16px}
.note-empty{padding:24px 16px;text-align:center}
.note-empty h2{margin:0;color:var(--muted);font-size:16px;font-weight:400}
.note-empty p{margin:6px 0 0;color:var(--muted);font-size:14px;line-height:1.8}
.note-empty p:empty{display:none}
@media(max-width:760px){.notes-main{padding-bottom:32px}.notes-heading{padding:22px 0 18px}.notes-heading h1{font-size:30px}.notes-compose{padding:14px 16px;margin-bottom:18px}.notes-toolbar{gap:12px}.notes-filters{gap:2px}.notes-filters button{padding:8px 10px;gap:6px}.note-search{max-width:160px}.note-tools{gap:8px}.note-row{gap:8px;padding:14px 0}}
@media(max-width:560px){.notes-toolbar{flex-wrap:wrap;gap:14px}.notes-filters{width:100%}.notes-filters button{flex:1;justify-content:center}.note-tools{width:100%}.note-search{flex:1;max-width:none}.note-row{grid-template-columns:44px minmax(0,1fr) auto;gap:6px}.note-primary{padding:9px 18px}.notes-compose textarea{min-height:60px}}
.note-conflict{padding:12px 14px;margin-bottom:12px;border-left:3px solid var(--accent);background:var(--soft);border-radius:4px}
.note-conflict-label{margin:0;color:var(--accent);font-size:14px;line-height:1.7}
.note-edit-actions{flex-wrap:wrap}
