/* Keep the library at desktop list density; the mini program and note drawer are unchanged. */
body[data-surface=pc][data-secondary-page=notes] #main.lps-secondary{padding:24px 28px 48px}
body[data-surface=pc][data-secondary-page=notes] #main>.lps-render-root{max-width:none}
.nb-desktop .wb-sidebar-heading{padding-top:4px}
.nb-desktop .wb-heading{margin-bottom:12px}
.nb-desktop .wb-heading .nb-new{background:var(--wb-accent);color:#fff;border:0;box-shadow:none;min-height:44px;font-size:14px}
.nb-desktop .wb-heading .nb-new:hover{background:#245db8}
.nb-toolbar{display:flex;align-items:center;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--wb-line)}
.nb-toolbar .un-note-tabs{margin:0;flex:none}
.nb-toolbar .un-note-tabs button{min-width:58px;padding:8px 12px}
.nb-search{display:flex;flex:1;align-items:center;gap:8px;margin:0;min-width:0}
.nb-search>label{display:block;margin:0;min-width:0}
.nb-search>label:first-child{flex:1}
.nb-search :is(input,select,.refined-select-trigger){width:100%;height:44px;min-height:44px;padding:10px 12px;margin:0;border:1px solid #dce5ef;border-radius:9px;background:#fff;color:var(--wb-ink);box-shadow:none}
.nb-search .refined-select{width:132px}
.nb-search .refined-select-trigger{display:flex;align-items:center;justify-content:space-between}
.nb-search input::placeholder{color:#91a0b2}
.nb-desktop .nb-favorites{flex:none;background:transparent;padding-inline:10px}
.nb-desktop .nb-favorites[aria-pressed=true]{background:var(--wb-soft);color:var(--wb-accent)}
.nb-results-heading{display:flex;align-items:center;justify-content:space-between;min-height:44px;margin:4px 0;font-size:12px;color:var(--wb-muted)}
.nb-desktop .nb-clear{padding:6px 10px;background:transparent;font-size:12px}
.nb-list{border:1px solid var(--wb-line);border-radius:12px;overflow:hidden;background:#fff}
.nb-row{margin:0;padding:0;border-bottom:1px solid var(--wb-line)}
.nb-row:last-child{border:0}
.nb-row details{margin:0}
.nb-row summary{display:grid;grid-template-columns:28px minmax(0,1fr) 84px 116px 18px;gap:12px;align-items:center;min-height:72px;padding:12px 18px;cursor:pointer;list-style:none}
.nb-row summary::-webkit-details-marker{display:none}
.nb-row summary::marker{content:''}
.nb-row summary:hover,.nb-row details[open]>summary{background:#f8faff}
.nb-row details[open]>summary{border-bottom:1px solid var(--wb-line)}
.nb-row details[open] .wb-chevron{transform:rotate(180deg)}
.nb-copy{min-width:0}
.nb-copy>b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:15px;line-height:1.6;font-weight:500;color:#304c6d}
.nb-copy>span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:1.7;color:#8a9ab0;margin-top:2px}
.nb-record-type,.nb-row summary time{font-size:12px;line-height:1.6;color:var(--wb-muted)}
.nb-record-type{white-space:nowrap;text-align:right}
.nb-record-type [aria-label=已收藏]{color:#a67b2d}
.nb-row summary time{text-align:right;font-variant-numeric:tabular-nums}
.nb-row .wb-number{padding-top:0}
.nb-row .wb-chevron{margin:0}
.nb-body{padding:18px 20px 18px 60px}
.nb-full-text,.nb-quote{font-size:16px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 14px;color:#38526d}
.nb-quote{padding:14px 16px;background:#f7f9fc;border:0;border-radius:8px}
.nb-body .lr-actions{margin-top:10px}
.nb-desktop .lr-notice{font-size:13px;margin-bottom:12px}
.nb-list>.wb-empty{border:0;border-radius:0;padding:40px 20px}
@media(max-width:1200px){.nb-toolbar{flex-wrap:wrap}.nb-search{order:3;flex-basis:100%}.nb-desktop .nb-favorites{margin-left:auto}.nb-row summary{grid-template-columns:24px minmax(0,1fr) 72px 18px}.nb-row summary time{display:none}}
@media(max-width:700px){body[data-surface=pc][data-secondary-page=notes] #main.lps-secondary{padding:18px 16px 32px}.nb-row summary{grid-template-columns:20px minmax(0,1fr) 18px;padding:12px;gap:8px}.nb-record-type{display:none}.nb-search{flex-wrap:wrap}.nb-search>label:first-child{flex-basis:100%}.nb-search>label:nth-child(2){flex:1}.nb-search .refined-select{width:100%}.nb-body{padding:16px}.nb-toolbar{gap:8px}}

.nb-desktop .wb-heading>.nb-heading-actions{display:flex;align-items:center;gap:10px;flex:none;margin-left:auto}
