.note-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem .9rem;
}

.note-head h2 { margin: 0; font-size: 1.05rem; }
.save-state { color: var(--green); font-size: .78rem; font-weight: 750; }

.editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  padding: .58rem .7rem;
  background: #faf8f6;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.editor-toolbar button {
  min-width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 0 .55rem;
  font-size: .8rem;
  font-weight: 700;
}

.editor-toolbar button:hover { background: #fff; border-color: var(--line); }
.toolbar-separator { width: 1px; height: 22px; background: var(--line); margin: 0 .2rem; }
.editor-toolbar .color-dot { min-width: 22px; width: 22px; height: 22px; padding: 0; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #d8d0ca; }
.color-dot.ink { background: #25211f; }
.color-dot.orange { background: #f36b21; }
.color-dot.red { background: #c34040; }
.color-dot.green { background: #23845f; }
.color-dot.blue { background: #2563eb; }
.color-dot.purple { background: #7c3aed; }

.rich-editor {
  min-height: 430px;
  padding: 1.4rem 1.5rem;
  outline: none;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

.rich-editor:focus { box-shadow: inset 0 0 0 3px rgba(243,107,33,.1); }
.rich-editor:empty::before { content: attr(data-placeholder); color: #aaa19b; pointer-events: none; }
.rich-editor p { margin: 0 0 .85rem; }
.rich-editor ul,.rich-editor ol { padding-left: 1.5rem; }
.rich-editor h2,.rich-editor h3 { margin: 1.2rem 0 .55rem; }
.rich-editor h3 { font-size: 1rem; color: var(--orange-dark); }

.editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.editor-footer small { color: var(--muted); line-height: 1.4; }
.client-preview { margin-top: .7rem!important; padding-top: .65rem; border-top: 1px solid var(--line); line-height: 1.4; }

@media (max-width: 800px) {
  .sidebar nav { grid-template-columns: repeat(2, 1fr); }
  .rich-editor { min-height: 350px; padding: 1rem; }
  .editor-footer { align-items: stretch; flex-direction: column; }
  .editor-footer .btn { width: 100%; }
  .toolbar-separator { display: none; }
}
