/* =========================================================
   HIDDEN PATTERN — NOTE EDITOR PRO (v2.0)
   Usa os tokens do Design System existente (--sb-*).
   ========================================================= */

.editor-page.nep-page {
  overflow: auto;
  padding-top: 0;
  padding-bottom: 0;
  scroll-padding-top: 80px;
}
.knowledge-view-content > .editor-page.nep-page { overflow: auto; }

/* ---------- Barra de ferramentas ---------- */
.nep-toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 -14px 26px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(7, 17, 28, .97) 70%, rgba(7, 17, 28, .86));
  border-bottom: 1px solid var(--sb-border);
  backdrop-filter: blur(10px);
}
.nep-group {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(148, 163, 184, .06);
  border: 1px solid rgba(148, 163, 184, .08);
}
.nep-btn,
.nep-block-select {
  height: 32px;
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--sb-text-secondary);
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
}
.nep-btn:hover { background: rgba(124, 92, 255, .16); color: var(--sb-text); }
.nep-btn:active { transform: scale(.94); }
.nep-btn:focus-visible,
.nep-block-select:focus-visible { outline: 2px solid var(--sb-primary); outline-offset: 1px; }
.nep-btn[aria-pressed="true"],
.nep-btn.is-active { background: rgba(124, 92, 255, .28); color: #fff; box-shadow: inset 0 0 0 1px rgba(143, 114, 255, .55); }
.nep-btn:disabled { opacity: .35; cursor: default; }
.nep-block-select {
  padding: 0 28px 0 10px;
  font: 600 13px var(--sb-font-family);
  color: var(--sb-text);
  appearance: none;
  background: rgba(148, 163, 184, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23aebaca' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  min-width: 128px;
}
.nep-block-select option { background: #0b1420; color: var(--sb-text); }

/* ---------- Conteúdo ---------- */
:is(.editor-text, .kv-aux-editor).semantic-rich-editor {
  height: auto;
  min-height: 52vh;
  padding-bottom: 40px;
  caret-color: var(--sb-primary-strong);
}
:is(.editor-text, .kv-aux-editor):empty::before {
  content: attr(data-placeholder);
  color: var(--sb-text-disabled);
  pointer-events: none;
}
:is(.editor-text, .kv-aux-editor) h1, :is(.editor-text, .kv-aux-editor) h2, :is(.editor-text, .kv-aux-editor) h3 { line-height: 1.25; margin: 1.1em 0 .45em; letter-spacing: -.01em; }
:is(.editor-text, .kv-aux-editor) h1 { font-size: 1.75em; }
:is(.editor-text, .kv-aux-editor) h2 { font-size: 1.4em; color: #e7e2ff; }
:is(.editor-text, .kv-aux-editor) h3 { font-size: 1.15em; color: #cfd8ff; }
:is(.editor-text, .kv-aux-editor) blockquote {
  margin: 1em 0;
  padding: .35em 1.1em;
  border-left: 3px solid var(--sb-primary);
  background: rgba(124, 92, 255, .07);
  border-radius: 0 10px 10px 0;
  color: var(--sb-text-secondary);
}
:is(.editor-text, .kv-aux-editor) pre {
  margin: 1em 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: #050b14;
  border: 1px solid var(--sb-border);
  font: 15px/1.55 ui-monospace, "Cascadia Code", Consolas, monospace;
  white-space: pre-wrap;
  color: #c7f5ec;
}
:is(.editor-text, .kv-aux-editor) code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .88em;
  padding: .12em .38em;
  border-radius: 5px;
  background: rgba(77, 156, 255, .14);
  color: #b9dcff;
}
:is(.editor-text, .kv-aux-editor) pre code { background: none; padding: 0; color: inherit; }
:is(.editor-text, .kv-aux-editor) hr { border: 0; height: 1px; margin: 1.6em 0; background: linear-gradient(90deg, transparent, rgba(143, 114, 255, .7), transparent); }
:is(.editor-text, .kv-aux-editor) ul, :is(.editor-text, .kv-aux-editor) ol { padding-left: 1.5em; margin: .5em 0; }
:is(.editor-text, .kv-aux-editor) li { margin: .15em 0; }
:is(.editor-text, .kv-aux-editor) mark { background: rgba(245, 185, 77, .35); color: inherit; border-radius: 3px; }

:is(.editor-text, .kv-aux-editor) ul[data-type="checklist"] { list-style: none; padding-left: .2em; }
:is(.editor-text, .kv-aux-editor) ul[data-type="checklist"] > li { position: relative; padding-left: 1.75em; }
:is(.editor-text, .kv-aux-editor) ul[data-type="checklist"] > li::before {
  content: "";
  position: absolute;
  left: 0; top: .32em;
  width: 1.05em; height: 1.05em;
  border-radius: 5px;
  border: 1.5px solid rgba(174, 186, 202, .6);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
:is(.editor-text, .kv-aux-editor) ul[data-type="checklist"] > li[data-checked="true"]::before {
  background: var(--sb-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/80% no-repeat;
  border-color: var(--sb-primary);
}
:is(.editor-text, .kv-aux-editor) ul[data-type="checklist"] > li[data-checked="true"] { color: var(--sb-text-muted); text-decoration: line-through; text-decoration-color: rgba(143, 157, 177, .6); }

/* Links */
:is(.editor-text, .kv-aux-editor) a.note-external-link { color: #8fc3ff; text-decoration: underline; text-decoration-color: rgba(143, 195, 255, .45); text-underline-offset: 3px; cursor: text; }
:is(.editor-text, .kv-aux-editor) a.note-external-link:hover { text-decoration-color: currentColor; }
:is(.editor-text, .kv-aux-editor) a.note-link {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  padding: .02em .5em .06em;
  margin: 0 .05em;
  border-radius: 999px;
  font-size: .92em;
  color: #e9e3ff;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(124, 92, 255, .3), rgba(77, 156, 255, .22));
  border: 1px solid rgba(143, 114, 255, .5);
  cursor: pointer;
  user-select: all;
  white-space: nowrap;
}
:is(.editor-text, .kv-aux-editor) a.note-link::before { content: "◉"; font-size: .75em; color: #b8a6ff; }
:is(.editor-text, .kv-aux-editor) a.note-link:hover { border-color: #b8a6ff; box-shadow: 0 0 14px rgba(124, 92, 255, .45); }
:is(.editor-text, .kv-aux-editor) a.note-link.is-broken { background: rgba(251, 113, 133, .12); border-color: rgba(251, 113, 133, .55); color: #fecdd3; text-decoration: line-through; }
:is(.editor-text, .kv-aux-editor) a.note-link.is-broken::before { content: "⚠"; color: var(--sb-error); }

/* ---------- Figuras ---------- */
:is(.editor-text, .kv-aux-editor) figure.note-figure {
  --fig-width: 100%;
  position: relative;
  width: var(--fig-width);
  max-width: 100%;
  margin: 1.2em auto;
  border-radius: 12px;
  outline: none;
  transition: box-shadow .18s;
  user-select: none;
}
:is(.editor-text, .kv-aux-editor) figure.note-figure[data-align="left"] { float: left; margin: .35em 1.4em .9em 0; }
:is(.editor-text, .kv-aux-editor) figure.note-figure[data-align="right"] { float: right; margin: .35em 0 .9em 1.4em; }
:is(.editor-text, .kv-aux-editor) figure.note-figure[data-align="wide"] { width: 100%; }
:is(.editor-text, .kv-aux-editor) figure.note-figure img[data-image-id] {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
:is(.editor-text, .kv-aux-editor) figure.note-figure figcaption {
  margin-top: .55em;
  font-size: .8em;
  line-height: 1.45;
  text-align: center;
  color: var(--sb-text-muted);
}
:is(.editor-text, .kv-aux-editor) figure.note-figure:hover img { box-shadow: 0 0 0 2px rgba(143, 114, 255, .35), 0 10px 30px rgba(0, 0, 0, .35); }
:is(.editor-text, .kv-aux-editor) figure.note-figure.is-selected img,
:is(.editor-text, .kv-aux-editor) figure.note-figure:focus-visible img { box-shadow: 0 0 0 3px var(--sb-primary), 0 0 30px rgba(124, 92, 255, .35); }
:is(.editor-text, .kv-aux-editor) figure.nep-busy { opacity: .55; }
:is(.editor-text, .kv-aux-editor)::after { content: ""; display: block; clear: both; }
:is(.editor-text, .kv-aux-editor) img.note-inline-legacy { cursor: pointer; }
:is(.editor-text, .kv-aux-editor).nep-drop-target { outline: 2px dashed rgba(124, 92, 255, .6); outline-offset: 10px; border-radius: 8px; }

.nep-loading { width: min(420px, 100%) !important; }
.nep-loading-box {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  min-height: 140px; padding: 20px;
  border-radius: 12px; border: 1px dashed rgba(148, 163, 184, .4);
  background: rgba(15, 23, 42, .55);
  font-size: 14px; color: var(--sb-text-secondary);
}
.nep-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(143, 114, 255, .25); border-top-color: var(--sb-primary); animation: nepSpin .8s linear infinite; }
@keyframes nepSpin { to { transform: rotate(360deg); } }

/* ---------- Overlay de imagem ---------- */
.nep-image-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 9000; }
.nep-frame { position: fixed; pointer-events: none; border-radius: 12px; }
.nep-handle {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--sb-primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, .25), 0 2px 8px rgba(0, 0, 0, .5);
  pointer-events: auto;
  touch-action: none;
}
.nep-h-nw { left: -7px; top: -7px; cursor: nwse-resize; }
.nep-h-ne { right: -7px; top: -7px; cursor: nesw-resize; }
.nep-h-sw { left: -7px; bottom: -7px; cursor: nesw-resize; }
.nep-h-se { right: -7px; bottom: -7px; cursor: nwse-resize; }
.nep-h-e { right: -6px; top: calc(50% - 16px); width: 8px; height: 32px; border-radius: 6px; cursor: ew-resize; }
.nep-h-w { left: -6px; top: calc(50% - 16px); width: 8px; height: 32px; border-radius: 6px; cursor: ew-resize; }
.nep-size-badge {
  position: absolute; right: 8px; bottom: 8px;
  padding: 3px 8px; border-radius: 6px;
  font: 600 11px var(--sb-font-family); color: #fff;
  background: rgba(5, 7, 13, .78);
  opacity: 0; transition: opacity .15s;
}
.nep-image-overlay.is-resizing .nep-size-badge,
.nep-frame:hover .nep-size-badge { opacity: 1; }
.nep-image-overlay.is-resizing .nep-image-bar { opacity: .2; }

.nep-image-bar,
.nep-context-menu,
.nep-popover {
  background: rgba(13, 21, 34, .97);
  border: 1px solid rgba(148, 163, 184, .2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(124, 92, 255, .08);
  backdrop-filter: blur(14px);
  color: var(--sb-text);
  font-family: var(--sb-font-family);
}
.nep-image-bar {
  position: fixed;
  display: flex; align-items: center; gap: 2px;
  padding: 5px;
  border-radius: 12px;
  pointer-events: auto;
  animation: nepPop .14s ease-out;
}
.nep-image-bar button,
.nep-menu-row button {
  height: 30px; min-width: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 7px;
  background: transparent; color: var(--sb-text-secondary);
  cursor: pointer;
}
.nep-image-bar button:hover,
.nep-menu-row button:hover { background: rgba(124, 92, 255, .18); color: #fff; }
.nep-image-bar button.is-active { background: rgba(124, 92, 255, .32); color: #fff; }
.nep-image-bar button.danger:hover { background: rgba(251, 113, 133, .2); color: #fecdd3; }
.nep-txt { font: 600 11.5px var(--sb-font-family); padding: 0 6px; }
.nep-sep { width: 1px; height: 20px; margin: 0 4px; background: rgba(148, 163, 184, .2); }
@keyframes nepPop { from { opacity: 0; transform: translateY(4px) scale(.98); } }

/* ---------- Menus ---------- */
.nep-context-menu {
  position: fixed; z-index: 9500;
  min-width: 230px; padding: 6px;
  border-radius: 12px;
  animation: nepPop .12s ease-out;
}
.nep-menu-row { display: flex; gap: 2px; padding: 2px; }
.nep-menu-row + .nep-menu-row { border-top: 1px solid rgba(148, 163, 184, .12); margin-top: 2px; padding-top: 4px; }
.nep-menu-row button { flex: 1; }
.nep-menu-item {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--sb-text);
  font: 14px var(--sb-font-family); text-align: left;
  cursor: pointer;
}
.nep-menu-item svg { color: var(--sb-text-muted); flex: none; }
.nep-menu-item span { flex: 1; }
.nep-menu-item kbd { font: 11px var(--sb-font-family); color: var(--sb-text-muted); }
.nep-menu-item:hover, .nep-menu-item:focus-visible { background: rgba(124, 92, 255, .2); outline: none; }
.nep-menu-item.danger { color: #fda4af; }
.nep-menu-item.danger svg { color: #fb7185; }
.nep-menu-item.danger:hover { background: rgba(251, 113, 133, .16); }
.nep-menu-sep { height: 1px; margin: 5px 4px; background: rgba(148, 163, 184, .14); }

/* ---------- Popovers ---------- */
.nep-popover {
  position: fixed; z-index: 9600;
  width: min(420px, calc(100vw - 16px));
  padding: 12px;
  border-radius: 14px;
  animation: nepPop .14s ease-out;
}
.nep-pop-title { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--sb-text-secondary); }
.nep-pop-row { display: flex; gap: 6px; }
.nep-popover input {
  flex: 1; min-width: 0; width: 100%;
  height: 36px; padding: 0 12px;
  border-radius: 9px; border: 1px solid rgba(148, 163, 184, .25);
  background: #050b14; color: var(--sb-text);
  font: 14px var(--sb-font-family);
  outline: none;
}
.nep-popover input:focus { border-color: var(--sb-primary); box-shadow: 0 0 0 3px rgba(124, 92, 255, .25); }
.nep-pop-row button {
  height: 36px; padding: 0 12px;
  border-radius: 9px; border: 1px solid rgba(148, 163, 184, .2);
  background: rgba(148, 163, 184, .08); color: var(--sb-text);
  cursor: pointer; display: inline-flex; align-items: center;
}
.nep-pop-row .nep-pop-primary { background: var(--sb-primary); border-color: var(--sb-primary); font-weight: 600; }
.nep-pop-error { min-height: 0; font-size: 12px; color: var(--sb-error); margin-top: 6px; }
.nep-pop-error:empty { display: none; }
.nep-note-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 280px; overflow: auto; }
.nep-note-list li {
  display: flex; flex-direction: column; gap: 1px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.nep-note-list li small { font-size: 11.5px; color: var(--sb-text-muted); }
.nep-note-list li[aria-selected="true"], .nep-note-list li:hover { background: rgba(124, 92, 255, .2); }
.nep-note-list .nep-empty { color: var(--sb-text-muted); cursor: default; }
.nep-pop-hint { margin-top: 8px; font-size: 11px; color: var(--sb-text-disabled); }

/* ---------- Lightbox / atalhos ---------- */
.nep-lightbox {
  position: fixed; inset: 0; z-index: 9800;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 40px;
  background: rgba(2, 4, 10, .88);
  backdrop-filter: blur(6px);
  animation: nepFade .18s ease-out;
  outline: none;
}
.nep-lightbox > img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 10px; box-shadow: 0 30px 90px rgba(0, 0, 0, .7); }
.nep-lightbox-cap { color: var(--sb-text-secondary); font-size: 14px; }
.nep-lightbox > button {
  position: absolute; top: 18px; right: 22px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06);
  color: #fff; font-size: 22px; cursor: pointer;
}
@keyframes nepFade { from { opacity: 0; } }
.nep-shortcuts-card {
  width: min(560px, 100%);
  padding: 22px 24px;
  border-radius: 16px;
  background: #0b1420; border: 1px solid var(--sb-border);
  color: var(--sb-text);
}
.nep-shortcuts-card h3 { margin: 0 0 14px; }
.nep-shortcuts-card dl { margin: 0; display: grid; gap: 6px; }
.nep-shortcuts-card dl div { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; }
.nep-shortcuts-card dd { margin: 0; color: var(--sb-text-secondary); text-align: right; }
.nep-shortcuts-card kbd, .nep-links kbd {
  font: 12px ui-monospace, Consolas, monospace;
  padding: 2px 6px; border-radius: 5px;
  background: rgba(148, 163, 184, .12); border: 1px solid rgba(148, 163, 184, .2);
}
.nep-shortcuts-card > button {
  margin-top: 16px; height: 36px; padding: 0 16px; border-radius: 9px;
  border: 0; background: var(--sb-primary); color: #fff; font-weight: 600; cursor: pointer;
}

/* ---------- Painel de ligações ---------- */
.nep-links {
  clear: both;
  margin: 36px 0 30px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--sb-border);
  background: linear-gradient(160deg, rgba(124, 92, 255, .06), rgba(77, 156, 255, .03));
  font-size: 14px;
  color: var(--sb-text);
}
.nep-links header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.nep-links h3 { margin: 0; font-size: 15px; letter-spacing: .02em; }
.nep-links header span { font-size: 12px; color: var(--sb-text-muted); }
.nep-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.nep-links h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--sb-text-secondary); }
.nep-links h4 em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--sb-text-disabled); margin-left: 4px; }
.nep-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nep-links li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nep-link-chip {
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: auto 1fr; column-gap: 8px;
  padding: 7px 10px; border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .14);
  background: rgba(5, 11, 20, .5); color: var(--sb-text);
  text-align: left; cursor: pointer; font-family: var(--sb-font-family);
}
.nep-link-chip:hover { border-color: rgba(143, 114, 255, .5); background: rgba(124, 92, 255, .1); }
.nep-link-chip .nep-dot { grid-row: span 2; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--sb-primary); box-shadow: 0 0 10px var(--sb-primary); }
.nep-link-chip strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nep-link-chip small { font-size: 11px; color: var(--sb-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nep-proposal-actions { display: flex; gap: 4px; }
.nep-proposal-actions button {
  height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12px; cursor: pointer;
  border: 1px solid rgba(148, 163, 184, .2); background: transparent; color: var(--sb-text-secondary);
}
.nep-proposal-actions button[data-confirm] { border-color: rgba(52, 211, 153, .5); color: #a7f3d0; }
.nep-proposal-actions button:hover { background: rgba(148, 163, 184, .12); }
.nep-muted { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--sb-text-muted); }
.nep-broken { color: #fda4af; font-size: 12.5px; }

/* ---------- Rodapé ---------- */
.nep-footer {
  position: sticky; bottom: 0; z-index: 25;
  display: flex; justify-content: space-between; gap: 16px;
  margin: 0 -14px; padding: 8px 14px;
  font-size: 12px; color: var(--sb-text-muted);
  background: linear-gradient(0deg, rgba(7, 17, 28, .97), rgba(7, 17, 28, .82));
  border-top: 1px solid rgba(148, 163, 184, .08);
}
.nep-save-state::before { content: "●"; margin-right: 6px; color: var(--sb-success); }
.nep-save-state.is-error { color: var(--sb-error); }
.nep-save-state.is-error::before { color: var(--sb-error); }

/* ---------- Aviso de armazenamento ---------- */
.hp-storage-banner {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 30000;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: min(760px, calc(100vw - 24px));
  padding: 12px 14px 12px 18px;
  border-radius: 14px;
  background: #2a0e18; border: 1px solid rgba(251, 113, 133, .6);
  color: #ffe4e6; font: 13.5px/1.4 var(--sb-font-family);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .6);
}
.hp-storage-banner span { flex: 1 1 260px; color: #fecdd3; }
.hp-storage-banner button { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.hp-storage-banner button[data-hp-act="export"] { background: #e11d48; border-color: #e11d48; font-weight: 600; }

.hp-storage-meter { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--sb-border); background: rgba(11, 20, 32, .7); color: var(--sb-text); font-size: 13px; }
.hp-storage-meter-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.hp-storage-meter-head span, .hp-storage-meter small { color: var(--sb-text-muted); }
.hp-storage-meter-bar { height: 8px; border-radius: 999px; background: rgba(148, 163, 184, .14); overflow: hidden; margin-bottom: 8px; }
.hp-storage-meter-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--sb-primary), var(--sb-secondary)); border-radius: inherit; }
.hp-storage-meter-bar span.warn { background: linear-gradient(90deg, var(--sb-warning), var(--sb-error)); }

@media (max-width: 760px) {
  .nep-toolbar { gap: 4px; padding: 8px; }
  .nep-block-select { min-width: 100px; }
  :is(.editor-text, .kv-aux-editor) figure.note-figure[data-align="left"],
  :is(.editor-text, .kv-aux-editor) figure.note-figure[data-align="right"] { float: none; margin: 1em auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .nep-image-bar, .nep-context-menu, .nep-popover, .nep-lightbox { animation: none; }
}

/* Pesquisa global: resultado ativo por teclado */
.global-search-result.is-active { outline: 2px solid var(--sb-primary); outline-offset: -2px; background: rgba(124, 92, 255, .14); }
