.un-note-tabs{display:flex;align-items:center;gap:6px;padding:4px;border-radius:12px;background:#edf2f8;width:max-content;max-width:100%;margin:0 0 16px}
.un-note-tabs button{display:inline-flex;align-items:center;justify-content:center;min-width:76px;min-height:44px;padding:8px 18px;border:0;border-radius:9px;background:transparent;color:#60758f;font:inherit;font-size:14px;line-height:1.5;cursor:pointer;box-shadow:none}
.un-note-tabs button[aria-pressed=true]{background:#fff;color:#245fbc;font-weight:600}
.un-note-tabs button:hover{color:#245fbc;background:#f7faff}
.un-note-tabs button:focus-visible,.un-drawer-search input:focus-visible{outline:2px solid #2865dc;outline-offset:2px}
.un-mark-quote{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 16px;padding:12px 16px;border:0;border-left:3px solid #e5bc61;border-radius:0 8px 8px 0;background:#fff9e9;color:#425975;font-size:15px;line-height:1.8}
.un-mark-quote[data-reader-color=blue]{border-color:#79a5dd;background:#f0f6ff}.un-mark-quote[data-reader-color=green]{border-color:#72b49a;background:#eff8f3}.un-mark-quote[data-reader-color=red]{border-color:#d58c88;background:#fff2f0}.un-mark-quote[data-reader-color=purple]{border-color:#a493ce;background:#f6f3fc}
.un-record-kind{font-size:12px;line-height:1.5;color:#74879f;margin-bottom:8px}
#floating-notes-entries .notes-item{padding:16px;margin:0 0 12px;border:1px solid #e1e8f1;border-radius:14px;background:#fff;box-shadow:none}
#floating-notes-entries .notes-content{font-size:15px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 12px}
#floating-notes-entries .notes-meta{display:flex;align-items:start;justify-content:space-between;gap:10px;font-size:12px;line-height:1.6;color:#73869c}
#floating-notes-entries .notes-meta time{white-space:nowrap}
#floating-notes-entries .notes-item-actions{display:flex;justify-content:flex-end;align-items:center;gap:6px;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid #e7edf5}
#floating-notes-entries .notes-item-actions button{min-height:44px;padding:8px 10px;border:0;border-radius:8px;background:#f3f6fa;color:#42658d;font:inherit;font-size:13px;box-shadow:none;cursor:pointer}
.un-drawer-search{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#677d96;margin:0 0 14px}
.un-drawer-search input{min-height:44px;padding:10px 12px;border:1px solid #dce5f0;border-radius:10px;font:inherit;font-size:14px;background:#fff;color:#35516f}
#un-mark-form{display:flex;flex-direction:column;gap:12px}#un-mark-form .un-mark-quote{max-height:200px;overflow:auto;margin:0}#un-mark-form textarea{min-height:120px;padding:12px;border:1px solid #cedaea;border-radius:10px;font:inherit;line-height:1.7;resize:vertical}
.un-empty{padding:36px 16px;color:#71849d;text-align:center}
@media(max-width:480px){.un-note-tabs{width:100%}.un-note-tabs button{flex:1;min-width:0;padding:8px 12px}#floating-notes-entries .notes-meta{flex-direction:column;gap:4px}}

#floating-notes-entries .un-record-list>.notes-item{margin:0}

/* Align the injected note filters with the drawer's existing content gutter. */
body[data-surface=pc] #floating-notes-panel>.un-note-tabs{flex:none;align-self:flex-start;margin:16px 24px;max-width:calc(100% - 48px);box-sizing:border-box}
body[data-surface=pc] #floating-notes-panel>.un-drawer-search{flex:none;margin:0 24px 16px;min-width:0;box-sizing:border-box}
body[data-surface=pc] #floating-notes-panel>.un-drawer-search input{width:100%;min-width:0;box-sizing:border-box}
body[data-surface=pc] #floating-notes-panel>.nd-drawer-filters{padding-top:0}
@media(max-width:600px){body[data-surface=pc] #floating-notes-panel>.un-note-tabs{margin-inline:18px;max-width:calc(100% - 36px)}body[data-surface=pc] #floating-notes-panel>.un-drawer-search{margin-inline:18px}}
