.np-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 759px) { .np-wrap { grid-template-columns: 1fr; gap: 10px; } }
.np-drawer { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.np-drawer > summary { cursor: pointer; font-weight: 800; padding: 10px 14px; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.np-drawer > summary::-webkit-details-marker { display: none; }
.np-drawer > summary::after { content: "▾"; color: var(--muted); transition: transform .15s; }
.np-drawer:not([open]) > summary::after { transform: rotate(-90deg); }
.np-side-in { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 8px; }
.np-newbtn { width: 100%; }
.np-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 52vh; overflow-y: auto; }
.np-list button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; padding: 8px 10px; border-radius: 10px; cursor: pointer; min-width: 0; }
.np-list button:hover { background: var(--card); }
.np-list button:focus-visible { outline: 2px solid var(--c); }
.np-list li.on button { background: var(--card); box-shadow: inset 3px 0 0 var(--c); }
.np-list b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-list small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-empty { color: var(--muted); font-size: 14px; padding: 6px 10px; }
.np-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; min-width: 0; }
.np-title { font-weight: 800; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.np-saved { color: var(--ok); font-size: 13px; font-weight: 700; white-space: nowrap; flex: none; }
.np-saved.bad { color: var(--bad); white-space: normal; }
.np-text { min-height: 52vh; line-height: 1.6; font-size: 17px; background: color-mix(in srgb, var(--card) 94%, var(--c)); background-image: linear-gradient(transparent calc(1.6em - 1px), color-mix(in srgb, var(--c) 10%, transparent) 1px); background-size: 100% 1.6em; background-attachment: local; padding-top: 0; }
.np-stats { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }
.np-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.np-tools .btn { padding: 9px 14px; min-height: 44px; font-size: 15px; }
.np-del { color: var(--bad); }
.np-size { display: inline-flex; gap: 4px; margin-left: auto; }
.np-size .btn { min-width: 46px; padding: 9px 10px; }
@media (max-width: 559px) { .np-tools .btn:not(.np-size .btn) { flex: 1 1 140px; } .np-size { margin-left: 0; } }
.np-warn { font-size: 13px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; margin: 14px 0 0; }
