/* ===== MẠNH LIFE V40: stability, smooth scroll, compact music ===== */
.ml-current-task-list,
.ml-task-list,
.ml-task-detail-zone,
.ml-subtask-list,
.ml-history-list,
.ml-journal-list{
  overscroll-behavior-y:auto !important;
  scroll-behavior:auto !important;
  -webkit-overflow-scrolling:touch !important;
}
.ml-current-task-list{
  overflow:visible !important;
  max-height:none !important;
}
.ml-task-detail-zone,
.ml-subtask-list{
  overscroll-behavior-y:auto !important;
}
.ml-task-item,
.ml-task-item:hover,
.ml-task-actions .ml-btn:hover,
.ml-drag-handle:hover{
  transform:none !important;
}
.ml-task-item{
  will-change:auto !important;
  contain:layout paint style !important;
}
.ml-user-typing .ml-task-item,
.ml-user-typing .ml-task-item:hover{
  transform:none !important;
  transition:none !important;
}
.ml-inline-edit-title[contenteditable="true"],
.ml-inline-edit-subtask[contenteditable="true"],
.ml-inline-subtask-add:focus,
.ml-tag-manager-input:focus,
.ml-journal-form input:focus,
.ml-journal-form textarea:focus,
.ml-top-task-form input:focus,
.ml-top-task-form textarea:focus,
.ml-day-template-settings input:focus,
.ml-day-template-settings textarea:focus{
  scroll-margin:110px !important;
}
.ml-v40-focus-music{
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:4px !important;
  height:32px !important;
  padding:3px 5px !important;
  border:1px solid #fed7aa !important;
  background:#fff7ed !important;
  border-radius:999px !important;
  max-width:min(100%,520px) !important;
  white-space:nowrap !important;
  flex-wrap:nowrap !important;
}
.ml-v40-focus-music button{
  width:26px !important;
  height:26px !important;
  min-width:26px !important;
  border:0 !important;
  border-radius:999px !important;
  padding:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#fff !important;
  color:#9a3412 !important;
  font-size:13px !important;
  font-weight:1000 !important;
  cursor:pointer !important;
  transform:none !important;
}
.ml-v40-focus-music button.playing,
#mlV40MusicPlay.playing,
#mlV40YtPlay.playing{
  background:#0f172a !important;
  color:#fff !important;
}
#mlV40MusicTrack{
  height:26px !important;
  max-width:92px !important;
  border:0 !important;
  border-radius:999px !important;
  background:#fff !important;
  color:#334155 !important;
  font-size:11px !important;
  font-weight:900 !important;
  padding:0 6px !important;
  outline:none !important;
}
.ml-v40-volume{
  display:inline-flex !important;
  align-items:center !important;
  gap:2px !important;
  height:26px !important;
  padding:0 5px !important;
  background:#fff !important;
  border-radius:999px !important;
  color:#9a3412 !important;
  font-size:11px !important;
}
#mlV40MusicVol{
  width:58px !important;
  accent-color:#f97316 !important;
}
#mlV40MusicNote{
  max-width:92px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  color:#9a3412 !important;
  font-size:10.5px !important;
  font-weight:850 !important;
}
.ml-v40-yt-panel{
  position:absolute !important;
  top:38px !important;
  right:0 !important;
  z-index:50 !important;
  width:min(340px,calc(100vw - 28px)) !important;
  padding:10px !important;
  border:1px solid #fed7aa !important;
  border-radius:16px !important;
  background:#fff !important;
  box-shadow:0 18px 42px rgba(15,23,42,.16) !important;
  display:grid !important;
  gap:7px !important;
}
.ml-v40-yt-panel[hidden]{display:none !important;}
.ml-v40-yt-row{display:flex !important;align-items:center !important;gap:6px !important;min-width:0 !important;}
.ml-v40-yt-row input,
.ml-v40-yt-row select{
  min-width:0 !important;
  flex:1 1 auto !important;
  height:30px !important;
  border:1px solid #e2e8f0 !important;
  border-radius:10px !important;
  padding:0 8px !important;
  font-size:12px !important;
  font-weight:800 !important;
  outline:none !important;
}
.ml-v40-yt-row button{flex:0 0 28px !important;width:28px !important;height:28px !important;background:#fff7ed !important;color:#9a3412 !important;}
.ml-v40-yt-frame iframe{display:block !important;width:220px !important;height:220px !important;max-width:100% !important;border:0 !important;border-radius:12px !important;background:#0f172a !important;}
.ml-v40-yt-panel small{color:#64748b !important;font-size:11px !important;font-weight:750 !important;line-height:1.3 !important;}
@media(max-width:720px){
  .ml-v40-focus-music{width:100% !important;max-width:100% !important;}
  #mlV40MusicNote{display:none !important;}
  #mlV40MusicTrack{max-width:108px !important;}
}
