.note-cell {display:flex;flex-direction:column;gap:5px;width:190px;min-height:30px;border:0;background:none;text-align:left;padding:0;color:var(--ink);font:inherit;cursor:pointer}
.note-cell>span {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:12px;line-height:1.7}
.note-cell small {color:var(--muted);font-size:10px}
.note-cell:hover {color:var(--green)}
dialog.note-modal {width:min(850px,calc(100vw - 32px));max-width:850px}
.note-toolbar {display:flex;flex-wrap:wrap;gap:5px;background:#f4f7f4;border:1px solid var(--line);border-radius:9px 9px 0 0;padding:9px}
.note-toolbar .button {background:white;min-width:32px;padding:7px 9px;font-size:12px}
.note-toolbar .note-format-active {background:var(--soft);color:var(--green);border-color:#a7c4b5}
.note-command-bold {font-weight:700}.note-command-italic {font-style:italic}.note-command-underline {text-decoration:underline}
.note-body {font-size:14px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap}
.note-body p,.note-body div {margin:0 0 10px;min-height:1em}
.note-body ul,.note-body ol {padding-left:26px;margin:8px 0}
.note-body a {color:var(--green);text-decoration:underline}
.note-body img {display:inline-block;max-width:100%;height:auto;max-height:520px;object-fit:contain;border-radius:5px;vertical-align:middle}
.note-body b,.note-body strong {font-weight:700}.note-body i,.note-body em {font-style:italic}
.note-body blockquote {border-left:3px solid var(--line);padding-left:15px;color:var(--muted)}
.note-align-left {text-align:left}.note-align-center {text-align:center}.note-align-right {text-align:right}.note-align-justify {text-align:justify}
.note-editor {min-height:260px;max-height:50vh;overflow:auto;padding:16px;border:1px solid var(--line);border-top:0;border-radius:0 0 9px 9px;background:white;outline-offset:2px}
.note-link-form {display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px;padding:10px;background:#f4f7f4}
.note-link-form label {flex:1 1 180px;font-size:12px}.note-link-form input {display:block;width:100%;margin-top:5px}
.note-attachments {display:grid;gap:8px;margin-top:12px}
.note-attachment {display:flex;align-items:center;gap:10px;padding:10px 12px;background:#f5f7f4;border:1px solid var(--line);border-radius:8px}
.note-attachment a {display:flex;align-items:center;gap:8px;flex:1;min-width:0;font-size:13px;overflow-wrap:anywhere;text-decoration:none}
.note-attachment small {display:block;color:var(--muted);font-size:11px}.note-attachment .icon-button {flex-shrink:0}
@media(max-width:600px){.note-toolbar {gap:4px;padding:7px}.note-toolbar .button {font-size:11px;padding:7px}.note-editor {padding:12px;min-height:220px}.note-body img {max-height:320px}}
