.notes-body {
  background: var(--inset);
  color: var(--fg);
  min-height: 100vh;
}

.note-app {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 880px;
  height: 100vh;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.5rem;
}

.note-head {
  flex: 0 0 auto;
}

.note-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.note-brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--radius);
  background: #1f2328;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
}

.note-sub {
  color: var(--fg-muted);
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.note-pane {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.note-center {
  flex: 1 1 auto;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.75rem;
}

.note-app .btn {
  white-space: nowrap;
  text-decoration: none;
}

.note-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.note-text {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  resize: none;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--fg);
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  white-space: pre-wrap;
  word-break: break-word;
  outline: none;
}

.note-text:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.25);
}

.note-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.6rem;
}

.note-hint {
  color: var(--fg-muted);
  font-size: 0.8rem;
}

.note-hint.over {
  color: var(--danger);
}

.note-linkrow {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.note-linkrow .form-control {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.85rem;
}

.note-linkrow .btn {
  flex: 0 0 auto;
}

.note-status {
  font-size: 0.9rem;
  margin: 0;
}

.note-status.ok { color: var(--primary); }
.note-status.warn { color: #9a6700; }
.note-status.err { color: var(--danger); }

.note-status.err[hidden] { display: none; }
