.np { display: grid; gap: 18px; }
@media (min-width: 860px) { .np { grid-template-columns: 230px minmax(0, 1fr); gap: 24px; } }

/* Lista de notas */
.np-side { display: grid; gap: 10px; align-content: start; min-width: 0; }
.np-side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.np-side-head h2 { font-size: 1.05rem; font-weight: 720; }
.np-side-head .kv-btn { padding: 8px 12px; min-height: 38px; font-size: 0.95rem; }
.np-search { max-width: none; width: 100%; }
.np-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 180px; overflow: auto; }
@media (min-width: 860px) { .np-list { max-height: 520px; } }
.np-item {
  display: grid; gap: 2px; width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  padding: 8px 10px; border: 1.5px solid transparent; border-radius: 8px; background: transparent;
}
.np-item:hover { background: var(--sunken); }
.np-item[aria-current='true'] { background: var(--kit-soft); border-color: var(--ink); }
.np-item-title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-item-meta { color: var(--muted); font-size: 0.85rem; }

/* Editor */
.np-main { display: grid; gap: 10px; min-width: 0; align-content: start; }
.np-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.np-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.np-bar .kv-btn { min-height: 40px; padding: 8px 12px; font-size: 0.95rem; }
.np-bar .kv-icon-btn { width: 42px; padding: 0; font-weight: 750; }
.np-font span { padding: 7px 12px; font-size: 0.92rem; }
.np-open { position: relative; overflow: hidden; }
.np-open input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.np-open:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.np-del:hover { color: var(--err); }

.np-text {
  width: 100%; min-height: 460px; resize: vertical; padding: 16px 18px;
  font: inherit; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--surface);
  border: 2px solid var(--ink); border-radius: 12px; tab-size: 4;
}
.np-text:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.np-text.is-mono { font-family: ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', Menlo, Consolas, monospace; line-height: 1.5; }
.np-text.is-nowrap { white-space: pre; overflow-x: auto; overflow-wrap: normal; }

.np-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.np-saved { font-weight: 650; color: var(--ok); }
.np-saved::before { content: '✓ '; }
.np-saved.is-pending { color: var(--muted); }
.np-saved.is-pending::before { content: ''; }
.np-opts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-left: auto; }
.np-opts .kv-check input { width: 18px; height: 18px; }
.np .kv-msg { margin: 0; }
.np-undo { font: inherit; font-weight: 700; background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; }

/* Tela cheia: só o editor */
.np-main:fullscreen { background: var(--bg); padding: 20px clamp(16px, 8vw, 120px); grid-template-rows: auto 1fr auto auto; }
.np-main:fullscreen .np-text { min-height: 0; height: 100%; resize: none; }
