/* === Dashboard Top === */
.dashboard-header {
  padding-bottom: 1rem;
}

.dashboard-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.storage-banner,
.local-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(44,44,44,0.08);
  background: rgba(255,255,255,0.72);
  box-shadow: 0 10px 24px rgba(44,44,44,0.08);
  backdrop-filter: blur(8px);
}

.storage-copy,
.local-prompt-copy {
  min-width: 0;
}

.storage-label,
.local-prompt-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8f775f;
  margin-bottom: 0.22rem;
}

.storage-message,
.local-prompt-sub {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #555;
}

.storage-actions,
.local-prompt-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.storage-toggle {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(44,44,44,0.08);
}

.storage-toggle button {
  border: none;
  background: transparent;
  color: #555;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.storage-toggle button.active {
  background: #2c2c2c;
  color: #fff;
  box-shadow: 0 8px 16px rgba(44,44,44,0.22);
}

.board-wrap {
  min-height: 220px;
}

/* === Empty State / Hero === */
.empty-state {
  padding: 1rem 0 2rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 2.4rem 2rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.9), transparent 32%),
    linear-gradient(135deg, #fff2d2 0%, #f6d2ab 45%, #edb8a1 100%);
  box-shadow:
    0 18px 40px rgba(137, 93, 58, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.55);
  text-align: left;
}

.hero-card::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}

.hero-card.compact {
  padding: 1.7rem 1.6rem;
  border-radius: 22px;
}

.hero-card.compact .hero-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  max-width: 14ch;
}

.hero-card.compact .hero-sub {
  max-width: 560px;
}

.hero-kicker {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(92, 57, 26, 0.7);
  margin-bottom: 0.7rem;
}

.hero-title {
  position: relative;
  z-index: 1;
  max-width: 11ch;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: #40281b;
}

.hero-sub {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin-top: 0.9rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(64, 40, 27, 0.82);
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.hero-primary {
  box-shadow: 0 12px 24px rgba(44,44,44,0.18);
}

.hero-link {
  background: rgba(255,255,255,0.72);
}

/* === Floating Action Button === */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #2c2c2c;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 2px 4px 16px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 100;
}

.fab:hover {
  background: #e07b4c;
  transform: scale(1.08);
}

.fab.active {
  transform: rotate(45deg);
  background: #c0392b;
}

/* === Note Type Menu === */
.note-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.note-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

.note-menu-panel {
  position: relative;
  z-index: 201;
  background: #f5f0e8;
  border-radius: 16px 16px 0 0;
  padding: 1.5rem;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.note-menu-panel h3 {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 1rem;
}

.note-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.note-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 0.5rem;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
}

.note-type-btn:hover {
  border-color: #e07b4c;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.nt-icon {
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nt-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #2c2c2c;
}

.nt-desc {
  font-size: 0.75rem;
  color: #888;
}

/* === Modal === */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.modal-content {
  position: relative;
  z-index: 301;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 4px 6px 20px rgba(0,0,0,0.2);
  animation: fadeIn 0.15s ease;
  transform: rotate(0deg) !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* === Editor Fields === */
.editor-input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  font-size: 0.92rem;
  background: rgba(255,255,255,0.6);
  outline: none;
  margin-bottom: 0.6rem;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.editor-input:focus {
  border-color: #e07b4c;
}

/* === Rich Text Editor === */
.rt-toolbar {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem;
  background: rgba(0,0,0,0.05);
  border-radius: 4px 4px 0 0;
  border: 2px solid rgba(0,0,0,0.1);
  border-bottom: none;
  flex-wrap: wrap;
}

.rt-toolbar button {
  width: 30px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 3px;
  font-size: 0.85rem;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
}

.rt-toolbar button:hover {
  background: rgba(0,0,0,0.1);
}

.rt-toolbar button.rt-active {
  background: rgba(0,0,0,0.18);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}

[data-theme="dark"] .rt-toolbar button.rt-active {
  background: rgba(255,255,255,0.2);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

.rt-toolbar select {
  height: 30px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 3px;
  font-size: 0.88rem;
  background: rgba(255,255,255,0.6);
  min-width: 7rem;
  cursor: pointer;
  padding: 0 0.3rem;
}

.rt-sep {
  width: 1px;
  height: 20px;
  background: rgba(0,0,0,0.15);
  margin: 0 0.2rem;
}

.rt-color-btn {
  position: relative;
  width: 30px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
  overflow: hidden;
  border-bottom: 3px solid currentColor;
}

.rt-color-btn:hover {
  background: rgba(0,0,0,0.1);
}

.rt-auto-color-btn {
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(0,0,0,0.04);
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0 0.35rem;
  height: 28px;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.15s, background 0.15s;
}

.rt-auto-color-btn:hover {
  opacity: 1;
  background: rgba(0,0,0,0.1);
}

/* Title format row */
.title-format-row {
  margin-bottom: 0.6rem;
}

.title-format-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  padding: 0.3rem;
  background: rgba(0,0,0,0.05);
  border-radius: 4px 4px 0 0;
  border: 2px solid rgba(0,0,0,0.1);
  border-bottom: none;
}

.editor-title-input {
  margin-bottom: 0.6rem;
  border-radius: 0 0 4px 4px;
  border-top: none;
}

.rt-font-select {
  height: 30px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 3px;
  font-size: 0.88rem;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0 0.4rem;
  color: inherit;
  min-width: 7rem;
}

[data-theme="dark"] .rt-font-select {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: #f0f0f0;
}

.fmt-btn {
  width: 30px;
  height: 28px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.85rem;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
}

.fmt-btn:hover {
  background: rgba(0,0,0,0.08);
}

.fmt-btn.active {
  background: rgba(0,0,0,0.18);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}

[data-theme="dark"] .fmt-btn {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
}

[data-theme="dark"] .fmt-btn:hover {
  background: rgba(255,255,255,0.15);
}

[data-theme="dark"] .fmt-btn.active {
  background: rgba(255,255,255,0.25);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

[data-theme="dark"] .title-format-controls {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

/* Size input group */
.rt-size-group {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.rt-size-input {
  width: 44px;
  height: 26px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 3px;
  font-size: 0.8rem;
  text-align: center;
  background: rgba(255,255,255,0.6);
  padding: 0 0.2rem;
  -moz-appearance: textfield;
}

.rt-size-input::-webkit-inner-spin-button,
.rt-size-input::-webkit-outer-spin-button {
  opacity: 1;
  height: 22px;
}

.rt-size-label {
  font-size: 0.7rem;
  color: inherit;
  opacity: 0.5;
}

.editor-richtext {
  width: 100%;
  min-height: 120px;
  max-height: 300px;
  overflow-y: auto;
  padding: 0.6rem 0.7rem;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 0 0 4px 4px;
  font-size: 0.92rem;
  font-family: inherit;
  background: rgba(255,255,255,0.6);
  outline: none;
  margin-bottom: 0.6rem;
  line-height: 1.5;
  transition: border-color 0.15s;
}

.editor-richtext ul,
.editor-richtext ol,
.note-editor-body ul,
.note-editor-body ol {
  padding-left: 1.5rem;
  margin: 0.3rem 0;
  list-style: revert;
}

.editor-richtext ul,
.note-editor-body ul {
  list-style-type: disc;
}

.editor-richtext ol,
.note-editor-body ol {
  list-style-type: decimal;
}

.editor-richtext li,
.note-editor-body li {
  padding: 0;
  border-bottom: none;
  display: list-item;
  justify-content: revert;
  align-items: revert;
  gap: revert;
  font-size: inherit;
}

.editor-richtext:focus {
  border-color: #e07b4c;
}

.editor-richtext:empty::before {
  content: attr(data-placeholder);
  color: #999;
  font-style: italic;
}

.editor-textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  font-size: 0.92rem;
  font-family: inherit;
  background: rgba(255,255,255,0.6);
  outline: none;
  resize: vertical;
  margin-bottom: 0.6rem;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.editor-textarea:focus {
  border-color: #e07b4c;
}

.editor-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.3rem;
}

.editor-hint {
  font-size: 0.82rem;
  color: #888;
  font-style: italic;
  margin-top: 0.3rem;
}

.editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-small {
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 4px;
  background: #2c2c2c;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-small:hover {
  background: #e07b4c;
}

.btn-details {
  padding: 0.5rem 1rem;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: 4px;
  background: transparent;
  color: #555;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-details:hover {
  border-color: #e07b4c;
  color: #e07b4c;
}

.btn-details.active {
  border-color: #e07b4c;
  background: #e07b4c;
  color: #fff;
}

/* === Color Picker === */
.color-picker {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}

.color-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.12);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-dot:hover { transform: scale(1.15); }

.color-dot.active {
  border-color: #2c2c2c;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2c2c2c;
}

.color-yellow { background: #fff9b1; }
.color-blue   { background: #b1d4ff; }
.color-green  { background: #b8f0b1; }
.color-pink   { background: #ffb1d0; }
.color-purple { background: #d4b1ff; }
.color-white  { background: #ffffff; }

.color-custom {
  background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
  border: none;
  overflow: hidden;
  position: relative;
}

.custom-color-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  padding: 0;
  border-radius: 50%;
}

.hidden-color-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: pointer;
}

/* Spacing between header, colors, and fields */
.note-header {
  margin-bottom: 0.8rem;
}

.color-picker {
  margin-bottom: 1rem;
}

/* === Details Panel (back of the note) === */
.details-panel {
  margin-top: 0.5rem;
  animation: fadeIn 0.15s ease;
}

.details-divider {
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,0.15) 0,
    rgba(0,0,0,0.15) 6px,
    transparent 6px,
    transparent 12px
  );
  margin: 0.8rem 0;
}

.details-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: #555;
  margin-bottom: 0.7rem;
}

.details-row {
  margin-bottom: 0.5rem;
}

.details-value {
  font-size: 0.85rem;
  color: #666;
}

.category-row {
  position: relative;
}

/* === Note Cards on Board — POST-IT STYLE === */
.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.8rem;
  justify-content: center;
}

.board .note {
  cursor: default;
  position: relative;
  width: min(100%, 250px);
  aspect-ratio: 1 / 1;
  min-height: 250px;
  overflow: hidden;
  padding: 1rem 1rem 0.9rem;
  justify-self: center;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transform-origin: 50% 10%;
  box-shadow:
    0 4px 5px rgba(0,0,0,0.08),
    0 16px 22px rgba(0,0,0,0.16),
    inset 0 -2px 4px rgba(0,0,0,0.04);
}

.board .note::before {
  content: '';
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: -14px;
  height: 22px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.08) 45%, rgba(0,0,0,0) 75%);
  filter: blur(7px);
  opacity: 0.85;
  pointer-events: none;
  z-index: -1;
}

.board .note::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 3rem;
  height: 56px;
  background: linear-gradient(transparent, var(--note-bg, #fff9b1));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.board .note.is-truncated::after {
  opacity: 1;
}

.note .note-actions {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: flex;
  gap: 0.2rem;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 2;
}

.note:hover .note-actions {
  opacity: 1;
}

.note-actions button {
  background: rgba(128,128,128,0.25);
  border: none;
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: inherit;
  transition: all 0.15s;
}

.note-actions button:hover {
  background: rgba(128,128,128,0.45);
}

.note-content-text {
  font-size: 0.85rem;
  line-height: 1.45;
  color: inherit;
  word-break: break-word;
}

.note-content-text ul,
.note-content-text ol {
  padding-left: 1.35rem;
  margin: 0.35rem 0;
  list-style: revert;
}

.note-content-text ul {
  list-style-type: disc;
}

.note-content-text ol {
  list-style-type: decimal;
}

.note-content-text li {
  display: list-item;
  justify-content: revert;
  align-items: revert;
  gap: revert;
  padding: 0.1rem 0;
  border-bottom: none;
  font-size: inherit;
}

.card-header-band {
  padding: 0.45rem 1rem 0.5rem;
  margin: -1rem -1rem 0.4rem -1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-header-title {
  font-weight: 700;
  font-size: 0.95rem;
  flex: 1;
  min-width: 0;
  overflow: visible;
  white-space: nowrap;
  line-height: 2;
}

.note-preview-shell {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.note-preview-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.note-meta {
  font-size: 0.7rem;
  color: inherit;
  opacity: 0.6;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  min-height: 1.8rem;
}

.note-category-badge {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  background: rgba(128,128,128,0.2);
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  color: inherit;
}

/* Expand button on truncated card */
.note-expand-btn {
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.42);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  font-size: 1.15rem;
  line-height: 1;
  color: inherit;
  cursor: pointer;
  opacity: 0.92;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.note-expand-btn:hover {
  transform: translateY(-1px) scale(1.04);
  opacity: 1;
  background: rgba(255,255,255,0.7);
}

.note-meta span:first-child {
  min-width: 0;
}

.note-meta span:first-child,
.note-meta .note-category-badge {
  overflow-wrap: anywhere;
}

/* Checklist in card */
.note-checklist {
  list-style: none;
  padding: 0;
}

.note-preview-body .note-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.note-checklist li {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.35rem;
  padding: 0.15rem 0;
  font-size: 0.82rem;
  border-bottom: none;
  text-align: left;
}

.note-checklist li > span {
  flex: 1;
  min-width: 0;
  text-align: left;
  word-break: break-word;
}

.note-checklist li.checked {
  text-decoration: line-through;
  color: #999;
}

.note-checklist li.priority > span {
  font-weight: 700;
}

.note-checklist input[type="checkbox"] {
  cursor: pointer;
  accent-color: #e07b4c;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.checklist-priority-marker {
  color: #e07b4c;
  font-weight: 900;
  font-size: 1em;
  flex-shrink: 0;
}

.note-preview-body .note-status {
  max-width: fit-content;
}

.note-preview-body .note-content-text p:first-child,
.detail-note-content p:first-child {
  margin-top: 0;
}

.note-preview-body .note-content-text p:last-child,
.detail-note-content p:last-child {
  margin-bottom: 0;
}

/* Impulse / Commitment status badges */
.note-status {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.4rem;
}

.note-status.waiting { background: rgba(0,0,0,0.08); color: #666; }
.note-status.ready { background: #e07b4c; color: #fff; cursor: pointer; border: none; }
.note-status.skipped { background: #27ae60; color: #fff; }
.note-status.bought { background: #c0392b; color: #fff; cursor: pointer; border: none; }
.note-status.yes { background: #27ae60; color: #fff; }
.note-status.no { background: #c0392b; color: #fff; }

.note-price {
  font-weight: 700;
  color: #c0392b;
  font-size: 1rem;
}

/* Purple & white note color */
.note-purple { background: #d4b1ff; }
.note-white { background: #ffffff; border: 1px solid rgba(0,0,0,0.08); }

/* === View-mode Details Card === */
#note-details-card {
  padding-top: 0;
  padding-bottom: 4.3rem;
  overflow: hidden;
}

.detail-header-band {
  display: flex;
  align-items: center;
  padding: 1.1rem 1.5rem;
  margin: 0 -1.5rem 0 -1.5rem;
  gap: 0.5rem;
}

.detail-header-title {
  font-weight: 700;
  font-size: 1rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-header-type {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
  white-space: nowrap;
}

.detail-header-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
  padding: 0 0 0 0.3rem;
}

.detail-header-close:hover {
  opacity: 1;
}

.detail-note-preview {
  padding: 1rem 0 1.8rem 0;
}

.detail-section-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-bottom: 0.4rem;
}

.detail-note-title {
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.detail-note-content {
  font-size: 0.95rem;
  line-height: 1.55;
  word-break: break-word;
}

.detail-note-content ul,
.detail-note-content ol {
  margin: 0.5rem 0;
  padding-left: 1.4rem;
}

.detail-note-content ul {
  list-style-type: disc;
}

.detail-note-content ol {
  list-style-type: decimal;
}

.detail-note-content li {
  display: list-item;
  padding: 0;
  border-bottom: none;
  font-size: inherit;
}

.detail-note-empty {
  font-size: 0.88rem;
  font-style: italic;
  opacity: 0.65;
}

.detail-note-checklist,
.detail-note-options {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-note-checklist li,
.detail-note-options li {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(128,128,128,0.18);
  text-align: left;
}

.detail-note-checklist li > span {
  flex: 1;
  min-width: 0;
  text-align: left;
  word-break: break-word;
}

.detail-note-checklist li.checked {
  text-decoration: line-through;
  opacity: 0.7;
}

.detail-note-checklist li.priority > span {
  font-weight: 700;
}

.detail-note-checklist input[type="checkbox"] {
  margin-top: 0.15rem;
  accent-color: #e07b4c;
  cursor: pointer;
  flex-shrink: 0;
}

.detail-note-options li::before {
  content: '•';
  font-weight: 700;
}

.detail-note-price {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.detail-note-status {
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 0.25rem;
}

.detail-note-result {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.note-metadata-panel {
  margin-top: 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(128,128,128,0.25);
  animation: fadeIn 0.15s ease;
}

.note-metadata-panel .detail-line {
  display: flex;
  justify-content: space-between;
  padding: 0.38rem 0;
  font-size: 0.88rem;
}

.note-metadata-panel .detail-label {
  font-weight: 700;
  color: inherit;
  opacity: 0.75;
}

.note-metadata-panel .detail-value {
  color: inherit;
  font-weight: 400;
}

.note-info-btn {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.42);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  color: inherit;
  font-size: 1rem;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
  cursor: pointer;
  opacity: 0.92;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.note-info-btn:hover,
.note-info-btn.active {
  transform: translateY(-1px) scale(1.04);
  opacity: 1;
  background: rgba(255,255,255,0.7);
}

/* === Checklist Items in Editor === */
.checklist-editor-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.checklist-editor-item input[type="text"] {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  font-size: 0.88rem;
  background: rgba(255,255,255,0.5);
}

.checklist-editor-item .checklist-remove-btn {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 0.3rem;
}

.checklist-editor-item .checklist-remove-btn:hover { color: #c0392b; }

.checklist-editor-item .checklist-priority-btn {
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  color: #888;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 900;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}

.checklist-editor-item .checklist-priority-btn:hover {
  background: rgba(0,0,0,0.12);
}

.checklist-editor-item .checklist-priority-btn.active {
  background: #e07b4c;
  color: #fff;
  border-color: #e07b4c;
}

.checklist-editor-item.priority input[type="text"] {
  font-weight: 700;
}

/* Decision options in editor */
.decision-option-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.decision-option-item span {
  flex: 1;
  padding: 0.4rem 0.6rem;
  background: rgba(255,255,255,0.5);
  border-radius: 4px;
  font-size: 0.88rem;
}

.decision-option-item button {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 1.1rem;
}

.decision-option-item button:hover { color: #c0392b; }

/* === Pin indicator === */
.pin-indicator {
  font-size: 0.75rem;
  color: #e07b4c;
  margin-left: 0.2rem;
}

/* === Close button on modals === */
.modal-content .remove-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.modal-content .remove-btn:hover {
  opacity: 1;
}

/* === Dark theme adjustments (for dark note backgrounds) === */
[data-theme="dark"] .editor-title-rich {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: #f0f0f0;
}

[data-theme="dark"] .editor-title-rich:empty::before {
  color: rgba(255,255,255,0.4);
}

[data-theme="dark"] .rt-size-input {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: #f0f0f0;
}

[data-theme="dark"] .editor-input,
[data-theme="dark"] .editor-textarea,
[data-theme="dark"] .editor-richtext {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: #f0f0f0;
}

[data-theme="dark"] .editor-input::placeholder,
[data-theme="dark"] .editor-textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

[data-theme="dark"] .editor-richtext:empty::before {
  color: rgba(255,255,255,0.4);
}

[data-theme="dark"] .editor-input:focus,
[data-theme="dark"] .editor-textarea:focus,
[data-theme="dark"] .editor-richtext:focus {
  border-color: #e07b4c;
}

[data-theme="dark"] .rt-toolbar {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

[data-theme="dark"] .rt-toolbar button {
  color: #f0f0f0;
}

[data-theme="dark"] .rt-toolbar button:hover {
  background: rgba(255,255,255,0.15);
}

[data-theme="dark"] .rt-toolbar select {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: #f0f0f0;
}

[data-theme="dark"] .rt-sep {
  background: rgba(255,255,255,0.2);
}

[data-theme="dark"] .rt-color-btn {
  color: #f0f0f0;
}

[data-theme="dark"] .rt-auto-color-btn {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
}

[data-theme="dark"] .editor-label {
  color: rgba(255,255,255,0.7);
}

[data-theme="dark"] .editor-hint {
  color: rgba(255,255,255,0.5);
}

[data-theme="dark"] .note-header h2 {
  color: #f0f0f0;
}

[data-theme="dark"] .remove-btn,
[data-theme="dark"] .modal-content > .note-header .remove-btn {
  color: rgba(255,255,255,0.7);
}

[data-theme="dark"] .remove-btn:hover {
  color: #fff;
}

[data-theme="dark"] .btn-details {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}

[data-theme="dark"] .btn-details:hover {
  border-color: #e07b4c;
  color: #e07b4c;
}

[data-theme="dark"] .btn-details.active {
  background: #e07b4c;
  border-color: #e07b4c;
  color: #fff;
}

[data-theme="dark"] .details-divider {
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.2) 0,
    rgba(255,255,255,0.2) 6px,
    transparent 6px,
    transparent 12px
  );
}

[data-theme="dark"] .details-heading {
  color: rgba(255,255,255,0.8);
}

[data-theme="dark"] .details-value {
  color: rgba(255,255,255,0.7);
}

[data-theme="dark"] .color-dot {
  border-color: rgba(255,255,255,0.25);
}

[data-theme="dark"] .color-dot.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.3), 0 0 0 4px #fff;
}

[data-theme="dark"] .checklist-editor-item input[type="text"] {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: #f0f0f0;
}

[data-theme="dark"] .checklist-editor-item .checklist-remove-btn {
  color: rgba(255,255,255,0.5);
}

[data-theme="dark"] .checklist-editor-item .checklist-priority-btn {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
}

[data-theme="dark"] .checklist-editor-item .checklist-priority-btn:hover {
  background: rgba(255,255,255,0.15);
}

[data-theme="dark"] .decision-option-item span {
  background: rgba(255,255,255,0.12);
  color: #f0f0f0;
}

[data-theme="dark"] .decision-option-item button {
  color: rgba(255,255,255,0.5);
}

/* Details modal dark theme */

[data-theme="dark"] .detail-note-preview {
  border-bottom-color: rgba(255,255,255,0.18);
}

[data-theme="dark"] .detail-note-checklist li,
[data-theme="dark"] .detail-note-options li {
  border-bottom-color: rgba(255,255,255,0.12);
}

[data-theme="dark"] .detail-label {
  color: rgba(255,255,255,0.85);
}

[data-theme="dark"] .detail-value {
  color: #fff;
}

[data-theme="dark"] .note-expand-btn {
  background: rgba(0,0,0,0.18);
}

[data-theme="dark"] .note-expand-btn:hover,
[data-theme="dark"] .note-info-btn:hover,
[data-theme="dark"] .note-info-btn.active {
  background: rgba(0,0,0,0.3);
}

[data-theme="dark"] .note-metadata-panel {
  border-top-color: rgba(255,255,255,0.18);
}

[data-theme="dark"] .note-info-btn {
  background: rgba(0,0,0,0.18);
}

[data-theme="dark"] h2,
[data-theme="dark"] h3 {
  color: #fff;
}

/* === Resizable Standard Note Editor === */
#standard-editor-wrap {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  overscroll-behavior: contain;
}

.note-editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  touch-action: none;
}

.note-editor-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  z-index: 301;
  position: relative;
  animation: fadeIn 0.15s ease;
  max-width: 95vw;
  max-height: 95vh;
}

/* --- Font toolbar — horizontal, top --- */
.note-font-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.6rem;
  background: #2a2a2a;
  color: #eee;
  border-radius: 8px 8px 0 0;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.note-font-toolbar button {
  height: 30px;
  min-width: 30px;
  padding: 0 0.4rem;
  border: none;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  color: #eee;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.note-font-toolbar button:hover { background: rgba(255,255,255,0.18); }
.note-font-toolbar button.rt-active {
  background: rgba(255,255,255,0.25);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

.note-font-toolbar .editor-close-btn {
  margin-left: auto;
  background: none;
  font-size: 1.3rem;
  opacity: 0.7;
  min-width: auto;
  padding: 0 0.3rem;
}
.note-font-toolbar .editor-close-btn:hover { opacity: 1; background: none; }

.toolbar-sep {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.15);
  margin: 0 0.1rem;
}

.toolbar-size-group {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  overflow: hidden;
  height: 30px;
}

.size-step-btn {
  width: 28px;
  height: 100%;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #eee;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  padding: 0;
}

.size-step-btn:hover {
  background: rgba(255,255,255,0.2);
}

.toolbar-size-display {
  min-width: 28px;
  text-align: center;
  font-size: 0.8rem;
  color: #eee;
  user-select: none;
  padding: 0 0.15rem;
  border-left: 1px solid rgba(255,255,255,0.12);
  border-right: 1px solid rgba(255,255,255,0.12);
  line-height: 30px;
}

.toolbar-font-select {
  height: 28px;
  min-width: 80px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  background: rgba(40,40,40,0.95);
  color: #eee;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0 0.3rem;
}

.toolbar-font-select option {
  background: #2a2a2a;
  color: #eee;
}

.toolbar-color-btn {
  position: relative;
  height: 30px;
  min-width: 30px;
  padding: 0 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #eee;
  border-bottom: 3px solid currentColor;
}

.note-font-toolbar .rt-auto-color-btn {
  height: 26px;
  font-size: 0.65rem;
  padding: 0 0.35rem;
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #eee;
}

/* Focus-dependent visibility in toolbar */
.title-only-btn { display: none; }
.body-only-btn { display: flex; }
.note-font-toolbar.focus-title .title-only-btn { display: flex; }
.note-font-toolbar.focus-title .body-only-btn { display: none; }

/* --- Note scroll area (allows scrolling on mobile) --- */
.note-editor-scroll-area {
  flex: 1;
  overflow: auto;
  min-height: 0;
  display: flex;
  justify-content: center;
}

/* --- The note itself --- */
.note-editor-resizable {
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 6px 20px rgba(0,0,0,0.2);
  overflow: hidden;
  min-width: 300px;
  min-height: 250px;
  flex-shrink: 0;
}

.editor-header-band {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  gap: 0.5rem;
  flex-shrink: 0;
}

.editor-header-title-input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  flex: 1;
  font-weight: 700;
  font-size: 1rem;
  color: inherit;
  font-family: inherit;
  line-height: 2;
  padding: 0;
  margin: 0;
}

.editor-header-title-input::placeholder {
  color: inherit;
  opacity: 0.4;
}

.note-editor-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.6rem 0.7rem;
  outline: none;
  font-size: 0.92rem;
  line-height: 1.5;
  font-family: inherit;
  color: inherit;
}

.note-editor-body:empty::before {
  content: attr(data-placeholder);
  color: inherit;
  opacity: 0.35;
  pointer-events: none;
}

/* Bottom bar inside note: actions + resize grip */
.editor-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.4rem 1.8rem 0.4rem 0.7rem;
  gap: 0.4rem;
}

/* More right padding when locked (grip hidden) */
.note-editor-resizable.size-locked .editor-bottom-bar {
  padding-right: 0.7rem;
}

.editor-bottom-actions {
  display: flex;
  gap: 0.4rem;
}

/* Resize grip — triangle with diagonal stripes, bottom-right corner */
.resize-grip {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  cursor: se-resize;
  overflow: hidden;
  z-index: 5;
}

.resize-grip::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.3) 3px,
    rgba(0,0,0,0.3) 5px
  );
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* Resize handles (invisible, on edges + corners) */
.resize-handle {
  position: absolute;
  z-index: 5;
}

.resize-handle[data-dir="n"]  { top: -3px; left: 10px; right: 10px; height: 6px; cursor: n-resize; }
.resize-handle[data-dir="s"]  { bottom: -3px; left: 10px; right: 10px; height: 6px; cursor: s-resize; }
.resize-handle[data-dir="e"]  { right: -3px; top: 10px; bottom: 10px; width: 6px; cursor: e-resize; }
.resize-handle[data-dir="w"]  { left: -3px; top: 10px; bottom: 10px; width: 6px; cursor: w-resize; }
.resize-handle[data-dir="ne"] { top: -3px; right: -3px; width: 14px; height: 14px; cursor: ne-resize; }
.resize-handle[data-dir="nw"] { top: -3px; left: -3px; width: 14px; height: 14px; cursor: nw-resize; }
.resize-handle[data-dir="sw"] { bottom: -3px; left: -3px; width: 14px; height: 14px; cursor: sw-resize; }

/* When locked, hide all resize handles + grip */
.note-editor-resizable.size-locked .resize-handle,
.note-editor-resizable.size-locked .resize-grip { display: none; }

/* --- Bottom toolbar: colors (left) + lock (right) --- */
.note-bottom-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  background: #2a2a2a;
  border-radius: 0 0 8px 8px;
  box-sizing: border-box;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  gap: 0.5rem;
}

.bottom-toolbar-colors {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.bottom-toolbar-colors .color-dot {
  width: 22px;
  height: 22px;
}

.bottom-toolbar-lock {
  border: none;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  font-size: 0.85rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.15s, background 0.15s;
  flex-shrink: 0;
}

.bottom-toolbar-lock:hover { opacity: 1; }
.bottom-toolbar-lock.locked { opacity: 1; background: rgba(224,123,76,0.35); }

/* Resize details panel inside note */
#resize-details-panel {
  padding: 0 0.7rem 0.5rem;
}

#resize-details-panel .editor-input {
  background: rgba(255,255,255,0.4);
}

/* --- Mobile: locked width, 75% height, no resize --- */
@media (max-width: 700px) {
  .note-editor-container {
    width: 92vw;
    height: 75vh;
    max-width: 92vw;
    max-height: 90vh;
    border-radius: 8px;
    overflow: hidden;
  }

  .note-font-toolbar {
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
  }

  .note-bottom-toolbar {
    border-radius: 0 0 8px 8px;
    flex-shrink: 0;
  }

  .note-editor-scroll-area {
    flex: 1;
    overflow: hidden;
    overscroll-behavior: contain;
  }

  .note-editor-resizable {
    width: 100% !important;
    height: 100% !important;
    flex: 1;
    max-width: none !important;
    max-height: none !important;
    min-width: unset;
    min-height: unset;
    border-radius: 0;
  }

  /* Hide resize handles and grip on mobile */
  .resize-handle,
  .resize-grip {
    display: none !important;
  }

  /* No padding needed for grip */
  .editor-bottom-bar {
    padding-right: 0.7rem;
  }

  /* Body scrolls internally */
  .note-editor-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}

/* === Responsive === */
@media (max-width: 600px) {
  .dashboard-shell {
    padding: 0 1rem 2.5rem;
  }

  .storage-banner,
  .local-prompt {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.95rem 1rem;
  }

  .storage-actions,
  .local-prompt-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .storage-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .storage-toggle button {
    flex: 1 1 0;
  }

  .hero-card {
    padding: 1.7rem 1.3rem;
    border-radius: 22px;
  }

  .hero-title {
    max-width: none;
    font-size: 2.1rem;
  }

  .board {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
  }

  .board .note {
    width: min(100%, 210px);
    min-height: 210px;
    padding: 0.9rem 0.9rem 0.8rem;
  }

  .board .note::after {
    left: 0.9rem;
    right: 0.9rem;
    bottom: 2.7rem;
  }

  .fab {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 52px;
    height: 52px;
  }

  .note-menu-panel {
    border-radius: 12px 12px 0 0;
    padding: 1.2rem;
  }

  .note-menu-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .modal-content {
    max-height: 90vh;
    margin: 0;
  }

  .rt-toolbar {
    gap: 0.1rem;
  }
}
