/* Notes (B15) — page layout only. Components, tokens, icons and themes come from lifeos.css («مِحْوَر»). */

.nt-page [hidden] { display: none !important; }
.nt-split { grid-template-columns: 360px minmax(0, 1fr); }
.nt-search { flex: 0 1 260px; }

/* list */
.nt-rows > li { list-style: none; }
.nt-row { width: 100%; text-align: start; }
.nt-row .t { overflow-wrap: anywhere; }
.nt-preview { max-width: 220px; }
.nt-row .m .ic { width: 14px; height: 14px; vertical-align: -2px; }
.nt-empty { margin-top: 12px; }

/* editor */
.nt-top { gap: 8px 12px; }
.nt-title { font-size: 20px; font-weight: 600; min-height: 48px; flex: 1 1 320px; }
.nt-body { min-height: 260px; font-size: 16px; line-height: 1.75; }
.nt-back { display: none; }
.nt-pick { align-items: flex-start; }
.nt-pick .ic-24 { color: var(--ink-3); }
.nt-cmp-title { font-weight: 600; margin-bottom: 6px; overflow-wrap: anywhere; }
.nt-cmp-body { font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.nt-original { font-family: var(--font-ui); direction: rtl; unicode-bidi: plaintext; text-align: start; margin: 0; }
.nt-links { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.nt-links li { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; }
.nt-links .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.nt-issues { margin-top: 4px; padding-inline-start: 18px; list-style: disc; }

.w4b-fold > summary { cursor: pointer; font-size: 13px; color: var(--ink-2); padding: 6px 0; }
.w4b-fold[open] > summary { margin-bottom: 6px; }

@media (max-width: 1023px) {
  .nt-split { grid-template-columns: 1fr; }
  .nt-split[data-view="editor"] .nt-list { display: none; }
  .nt-split[data-view="list"] .nt-editor { display: none; }
  .nt-back { display: inline-flex; }
}
@media (max-width: 640px) {
  .nt-page .btn, .nt-page .chip-btn, .nt-row { min-height: 44px; }
  .nt-page .btn-icon.btn-sm { width: 44px; }
  .nt-title, .nt-page .input, .nt-page .select, .nt-search input { font-size: 16px; }
  .nt-title { flex-basis: 100%; }
  .nt-search { flex: 1 1 100%; }
  .nt-preview { max-width: 100%; }
  .nt-body { min-height: 200px; }
  .w4b-fold > summary { min-height: 44px; display: flex; align-items: center; }
}
