/* ===================================================================
   NOTES PAGE — Full-screen immersive layout
   Apple Notes-style personal notebook with continuous editor.
   =================================================================== */

.notes {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-modal, 300);
  background: var(--color-bg-primary);
  font-family: var(--font-family);
}

/* --- Sidebar ---------------------------------------------------- */

.notes__sidebar {
  width: 280px;
  min-width: 280px;
  height: 100vh;
  background: var(--color-bg-secondary);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: margin-left 0.25s ease, opacity 0.25s ease;
  overflow: hidden;
}

.notes__sidebar--collapsed {
  margin-left: -280px;
  opacity: 0;
  pointer-events: none;
}

.notes__sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border);
  min-height: 48px;
}

.notes__back-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: none;
  border: none;
  color: var(--color-brand-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.notes__back-btn:hover {
  background: var(--color-bg-hover);
}

.notes__search {
  padding: var(--space-sm) var(--space-md);
}

.notes__search-input {
  width: 100%;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-primary);
  font-size: var(--font-size-sm);
  font-family: var(--font-family);
  outline: none;
  transition: border-color var(--transition-fast);
  box-sizing: border-box;
}

.notes__search-input:focus {
  border-color: var(--color-brand-primary);
}

.notes__search-input::placeholder {
  color: var(--color-text-tertiary);
}

/* Folder actions */

.notes__folder-actions {
  padding: 0 var(--space-md) var(--space-sm);
}

.notes__add-folder-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  cursor: pointer;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.notes__add-folder-btn:hover {
  color: var(--color-brand-primary);
}

/* Note list container */

.notes__list-container {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--space-sm);
}

.notes__section-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: var(--space-sm) var(--space-sm) var(--space-xs);
}

/* Folder item */

.notes__folder {
  margin-bottom: var(--space-xs);
}

.notes__folder-header {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  transition: background var(--transition-fast);
  user-select: none;
}

.notes__folder-header:hover {
  background: var(--color-bg-hover);
}

.notes__folder-icon {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.notes__folder--collapsed .notes__folder-icon {
  transform: rotate(-90deg);
}

.notes__folder-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notes__folder-count {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
}

.notes__folder-items {
  padding-left: var(--space-md);
}

.notes__folder--collapsed .notes__folder-items {
  display: none;
}

/* Folder action buttons (rename, delete) */

.notes__folder-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.notes__folder-header:hover .notes__folder-action-btn {
  opacity: 1;
}

.notes__folder-action-btn:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
}

.notes__folder-action-btn--danger:hover {
  color: var(--color-error);
}

/* Note item in sidebar */

.notes__note-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
  position: relative;
}

.notes__note-item:hover {
  background: var(--color-bg-hover);
}

.notes__note-item--active {
  background: var(--color-brand-light);
}

.notes__note-item--done .notes__note-title {
  text-decoration: line-through;
  color: var(--color-text-tertiary);
}

.notes__note-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.notes__note-info {
  flex: 1;
  min-width: 0;
}

.notes__note-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notes__note-preview {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.notes__note-date {
  font-size: 10px;
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

.notes__note-done-badge {
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--color-success);
}

/* Drag over state */

.notes__folder--drag-over > .notes__folder-header {
  background: var(--color-brand-subtle);
  outline: 2px dashed var(--color-brand-primary);
  outline-offset: -2px;
}

.notes__note-item--dragging {
  opacity: 0.4;
}

/* Remove from folder button */

.notes__note-remove-folder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  border-radius: 50%;
  font-size: 10px;
  opacity: 0;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  margin-top: 4px;
}

.notes__note-item:hover .notes__note-remove-folder {
  opacity: 1;
}

.notes__note-remove-folder:hover {
  background: var(--color-bg-hover);
  color: var(--color-error);
}

/* Shared with me — collapsible folder */

.notes__shared-folder {
  margin-bottom: var(--space-xs);
}

.notes__shared-folder-header {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  cursor: pointer;
  user-select: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.notes__shared-folder-header:hover {
  background: var(--color-bg-hover);
}

.notes__shared-folder--collapsed .notes__folder-icon {
  transform: rotate(-90deg);
}

.notes__shared-folder--collapsed .notes__shared-folder-items {
  display: none;
}

.notes__shared-folder-items {
  padding-left: var(--space-md);
}

/* Tags section */

.notes__tags-section {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--color-border);
}

.notes__tag-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  transition: background var(--transition-fast);
}

.notes__tag-item:hover {
  background: var(--color-bg-hover);
}

.notes__tag-item--active {
  background: var(--color-brand-light);
  color: var(--color-brand-primary);
  font-weight: var(--font-weight-medium);
}

.notes__tag-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.notes__tag-label {
  flex: 1;
}

.notes__tag-count {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
}

/* Hide done toggle */

.notes__hide-done {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  user-select: none;
}

.notes__hide-done input {
  accent-color: var(--color-brand-primary);
}

/* Shared section owner label */

.notes__shared-owner {
  font-size: 10px;
  color: var(--color-text-tertiary);
  font-style: italic;
}

/* New note button */

.notes__new-note-area {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--color-border);
}

.notes__new-note-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background: var(--color-brand-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.notes__new-note-btn:hover {
  opacity: 0.9;
}

/* --- Main Content Area ------------------------------------------ */

.notes__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 0;
  position: relative;
}

.notes__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border);
  min-height: 48px;
  background: var(--color-bg-primary);
}

.notes__topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}

.notes__toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 18px;
  transition: background var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}

.notes__toggle-btn:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
}

.notes__current-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notes__topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.notes__action-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.notes__action-btn:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
}

.notes__action-btn--done {
  color: var(--color-success);
  border-color: var(--color-success);
}

.notes__action-btn--reopen {
  color: var(--color-text-tertiary);
}

.notes__action-btn--danger {
  color: var(--color-error);
  border-color: var(--color-error);
}

.notes__action-btn--danger:hover {
  background: var(--color-error-bg);
}

/* Tag selector dropdown */

.notes__tag-selector {
  position: relative;
}

.notes__tag-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--space-xs);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-xs);
  z-index: 10;
  min-width: 140px;
  display: none;
}

.notes__tag-dropdown--open {
  display: block;
}

.notes__tag-option {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--font-size-sm);
  transition: background var(--transition-fast);
}

.notes__tag-option:hover {
  background: var(--color-bg-hover);
}

.notes__tag-option--active {
  font-weight: var(--font-weight-medium);
  background: var(--color-bg-hover);
}

/* Share dropdown */

.notes__share-wrapper {
  position: relative;
}

.notes__share-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--space-xs);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-md);
  z-index: 10;
  min-width: 240px;
  display: none;
}

.notes__share-dropdown--open {
  display: block;
}

.notes__share-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
}

.notes__share-search {
  width: 100%;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-family: var(--font-family);
  outline: none;
  margin-bottom: var(--space-sm);
  box-sizing: border-box;
}

.notes__share-search:focus {
  border-color: var(--color-brand-primary);
}

.notes__share-user-list {
  max-height: 200px;
  overflow-y: auto;
}

.notes__share-user {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  font-size: var(--font-size-sm);
  cursor: pointer;
}

.notes__share-user input {
  accent-color: var(--color-brand-primary);
}

.notes__share-apply-btn {
  margin-top: var(--space-sm);
  width: 100%;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-brand-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.notes__share-apply-btn:hover {
  opacity: 0.9;
}

/* --- Toolbar (between topbar and content) ----------------------- */

.notes__main > .notes__toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: var(--space-xs) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-primary);
  flex-shrink: 0;
}

/* --- Content Layout — single continuous notebook page ----------- */

.notes__content-split {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding: var(--space-md) var(--space-lg);
}

.notes__committed-sections {
  flex: 0 0 auto;
}

.notes__committed-sections--readonly {
  flex: 1;
}

.notes__committed-sections:empty {
  display: none;
}

.notes__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-text-tertiary);
  font-size: var(--font-size-md);
}

.notes__message-block {
  position: relative;
  padding: var(--space-md) 0;
}

.notes__message-content {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-primary);
  word-wrap: break-word;
  cursor: text;
}

/* Checklist inside messages */
.notes__message-content .note-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: 2px 0;
}

.notes__message-content .note-checkbox,
.notes__writer .note-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.notes__message-content .note-checkbox--checked,
.notes__writer .note-checkbox--checked {
  background: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
}

.notes__message-content .note-checkbox--checked::after,
.notes__writer .note-checkbox--checked::after {
  content: '\2713';
  color: white;
  font-size: 11px;
}

.notes__message-content .note-checklist-text--checked,
.notes__writer .note-checklist-text--checked {
  text-decoration: line-through;
  color: var(--color-text-tertiary);
}

/* Indented items (Tab offset) */
.notes__message-content .note-indent-1,
.notes__writer .note-indent-1 { padding-left: 24px; }
.notes__message-content .note-indent-2,
.notes__writer .note-indent-2 { padding-left: 48px; }
.notes__message-content .note-indent-3,
.notes__writer .note-indent-3 { padding-left: 72px; }
.notes__message-content .note-indent-4,
.notes__writer .note-indent-4 { padding-left: 96px; }

/* Timestamp */
.notes__message-timestamp {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
}

.notes__message-edited {
  cursor: pointer;
  text-decoration: underline dotted;
}

.notes__message-edited:hover {
  color: var(--color-brand-primary);
}

/* Edit history popup */
.notes__edit-history {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  min-width: 160px;
  z-index: 5;
}

.notes__edit-history-item {
  padding: 2px 0;
}

/* Divider between messages */
.notes__message-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
  position: relative;
}

.notes__divider-delete {
  position: absolute;
  right: 0;
  top: -12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-tertiary);
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-fast), color var(--transition-fast);
  z-index: 2;
}

.notes__message-divider:hover .notes__divider-delete {
  opacity: 1;
}

.notes__divider-delete:hover {
  color: var(--color-error);
  border-color: var(--color-error);
}

/* Message edit mode */
.notes__message-block--editing {
  border: 2px dashed var(--color-brand-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin: var(--space-xs) calc(-1 * var(--space-md));
}

.notes__message-block--editing .notes__message-content {
  outline: none;
}

/* --- Writing Area ----------------------------------------------- */

.notes__writing-area {
  flex: 1 0 33.33vh; /* min 1/3 of viewport */
  display: flex;
  flex-direction: column;
  min-height: 33.33vh;
}

.notes__writer {
  flex: 1;
  font-size: var(--font-size-md);
  font-family: var(--font-family);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-primary);
  outline: none;
  word-wrap: break-word;
  padding: var(--space-sm) 0;
}

.notes__writer:empty::before {
  content: attr(data-placeholder);
  color: var(--color-text-tertiary);
}

/* Checklist items inside writer */
.notes__writer .note-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.notes__toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: var(--space-xs);
}

.notes__toolbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition-fast);
  user-select: none;
}

.notes__toolbar-btn:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
}

.notes__toolbar-btn[data-cmd="italic"] {
  font-style: italic;
}

.notes__toolbar-btn[data-cmd="underline"] {
  text-decoration: underline;
}

.notes__toolbar-btn[data-cmd="strikethrough"] {
  text-decoration: line-through;
}

.notes__toolbar-btn--active {
  background: var(--color-brand-light);
  color: var(--color-brand-primary);
  border-color: var(--color-brand-subtle);
}

/* Edit mode floating toolbar */
.notes__edit-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: var(--space-xs);
}

/* --- Mobile Responsive ------------------------------------------ */

@media (max-width: 768px) {
  .notes__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 280px;
    box-shadow: var(--shadow-lg);
  }

  .notes__sidebar--collapsed {
    margin-left: 0;
    transform: translateX(-100%);
  }

  .notes__sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-bg-overlay);
    z-index: 99;
    display: none;
  }

  .notes__sidebar-overlay--visible {
    display: block;
  }

  .notes__content-split {
    padding: var(--space-sm) var(--space-md);
  }

  .notes__toolbar-btn {
    width: 36px;
    height: 36px;
  }

  .notes__topbar-actions {
    gap: 2px;
  }

  .notes__action-btn {
    padding: var(--space-xs);
    font-size: var(--font-size-xs);
  }
}

/* Desktop: overlay hidden */
@media (min-width: 769px) {
  .notes__sidebar-overlay {
    display: none !important;
  }
}

/* Folder inline edit */
.notes__folder-edit-input {
  width: 100%;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-brand-primary);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-family: var(--font-family);
  outline: none;
  background: var(--color-bg-primary);
}

/* Context menu (for right-click / long-press) */
.notes__context-menu {
  position: fixed;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xs);
  z-index: 200;
  min-width: 160px;
}

.notes__context-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  transition: background var(--transition-fast);
}

.notes__context-menu-item:hover {
  background: var(--color-bg-hover);
}

.notes__context-menu-item--danger {
  color: var(--color-error);
}

/* Toast notification */

.notes__toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-text-primary);
  color: var(--color-bg-primary);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 400;
  pointer-events: none;
}

.notes__toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Title rename button */

.notes__title-rename-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.notes__title-rename-btn:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
}

/* Title edit input */

.notes__title-edit-input {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-family);
  padding: 2px var(--space-xs);
  border: 1px solid var(--color-brand-primary);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--color-bg-primary);
  min-width: 200px;
}
