.litcrm-notes-panel {
  position: fixed;
  top: 84px;
  right: 18px;
  width: 360px;
  height: calc(100vh - 110px);
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(calc(100% + 30px));
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
}

.litcrm-notes-panel.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.litcrm-notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, #eef6ff 0%, #e8f2fd 100%);
  border-bottom: 1px solid #dbe7f3;
}

.litcrm-notes-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #0f172a;
}

.litcrm-notes-icon {
  font-size: 16px;
}

.litcrm-notes-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.litcrm-notes-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #0f172a;
  border-radius: 10px;
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.litcrm-notes-btn:hover {
  background: #f8fafc;
}

#litcrmNotesCloseBtn {
  width: 34px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.litcrm-notes-body {
  flex: 1;
  min-height: 0;
  padding: 0;
}

.litcrm-notes-textarea {
  width: 100%;
  height: 100%;
  min-height: 100%;
  resize: none;
  border: none;
  outline: none;
  padding: 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #0f172a;
  background: #fff;
}

.litcrm-notes-textarea::placeholder {
  color: #94a3b8;
}

.litcrm-notes-footer {
  padding: 10px 14px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.litcrm-notes-status {
  font-size: 12px;
  color: #64748b;
}

.litcrm-notes-status.is-saving {
  color: #b45309;
}

.litcrm-notes-status.is-error {
  color: #b91c1c;
}

@media (max-width: 980px) {
  .litcrm-notes-panel {
    top: 76px;
    right: 10px;
    left: 10px;
    width: auto;
    height: calc(100vh - 96px);
  }
}