/* ===========================
   GRID CONTAINER / SURFACE
   =========================== */
.grid-section {
  width: 90%;
margin-top: 1em !important;
margin: 0em auto;
}

.grid-stack {
  width: 100%;
  min-height: 900px;
  background: var(--surface-panel) !important;
  border-radius: 16px;
  box-sizing: border-box;
  backdrop-filter: saturate(110%) blur(1px);
  overflow: visible;
}

/* ===========================
   TILE TOOLBAR
   =========================== */
.grid-item-toolbar {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 5;
}

.grid-stack-item:hover .grid-item-toolbar { opacity: 1; }

.grid-edit-btn,
.grid-delete-btn {
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,.35);
}

.grid-edit-btn:hover,
.grid-delete-btn:hover {
  background: rgba(0,0,0,.55);
}

.grid-stack-item.is-editing .grid-edit-btn {
  display: none !important;
}

.grid-stack-item-content {
background: var(--card-bg);
border: 5px solid var(--card-border);
border-radius: 10px;
padding: 1em;
scrollbar-width: none;
overflow: visible !important;
text-align: center;
}

.note-card { 
scrollbar-width: none;
max-height: 90%;
overflow: scroll !important;
}

.grid-stack-item.is-editing .note-editor .note-editable { 
scrollbar-width: none !important;
max-height: 700px;
overflow: scroll !important;
}
/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 640px) {
  .grid-section {
    padding: 0 8px;
  }
}
